Type Alias SerializedAgentT<TType, FromLLMInput, ConstructorInput>

SerializedAgentT<TType, FromLLMInput, ConstructorInput>: {
    llmChain: unknown;
    load_from_llm_and_tools: undefined | boolean;
    outputParser: unknown;
    allowedTools?: unknown;
    llm_chain?: undefined | SerializedLLMChain;
}

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