Type Alias CreateStructuredChatAgentParams

CreateStructuredChatAgentParams: {
    llm: BaseLanguageModelInterface;
    prompt: BasePromptTemplate;
    streamRunnable?: boolean;
    tools: (StructuredToolInterface | ToolDefinition)[];
}

Params used by the createStructuredChatAgent function.

Type declaration

  • llm: BaseLanguageModelInterface

    LLM to use as the agent.

  • prompt: BasePromptTemplate

    The prompt to use. Must have input keys for tools, tool_names, and agent_scratchpad.

  • OptionalstreamRunnable?: boolean

    Whether to invoke the underlying model in streaming mode, allowing streaming of intermediate steps. Defaults to true.

  • tools: (StructuredToolInterface | ToolDefinition)[]

    Tools this agent has access to.