Type Alias CreateStructuredChatAgentParams

CreateStructuredChatAgentParams: {
    llm: Toolkit;
    prompt: Toolkit;
    tools: (Toolkit | Toolkit)[];
    streamRunnable?: boolean;
}

Params used by the createStructuredChatAgent function.

Type declaration

  • llm: Toolkit

    LLM to use as the agent.

  • prompt: Toolkit

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

  • tools: (Toolkit | Toolkit)[]

    Tools this agent has access to.

  • OptionalstreamRunnable?: boolean

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