Type Alias SerializedAgentT<TType, FromLLMInput, ConstructorInput>

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

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