Type alias CreateStructuredChatAgentParams

CreateStructuredChatAgentParams: {
    llm: BaseLanguageModelInterface;
    prompt: BasePromptTemplate;
    tools: StructuredToolInterface[];
}

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.

  • tools: StructuredToolInterface[]

    Tools this agent has access to.

Generated using TypeDoc