Type alias SerializedAgentT<TType, FromLLMInput, ConstructorInput>

SerializedAgentT<TType, FromLLMInput, ConstructorInput>: {
    llm_chain?: SerializedLLMChain;
} & ({
    load_from_llm_and_tools: true;
} & FromLLMInput | {
    load_from_llm_and_tools?: false;
} & ConstructorInput)

Generic type representing a serialized agent in LangChain. It includes the type of the agent, the serialized form of the LLMChain, and additional properties specific to the agent type.

Type Parameters

  • TType extends string = string

  • FromLLMInput extends Record<string, unknown> = Record<string, unknown>

  • ConstructorInput extends AgentInput = AgentInput

Type declaration

Generated using TypeDoc