langchain.js
    Preparing search index...

    Type Alias SerializedAgentT<TType, FromLLMInput, ConstructorInput>

    SerializedAgentT: { _type: TType; 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