Type Alias CreateToolCallingAgentParams

CreateToolCallingAgentParams: {
    llm: LanguageModelLike;
    prompt: ChatPromptTemplate;
    streamRunnable?: boolean;
    tools: StructuredToolInterface[] | ToolDefinition[];
}

Params used by the createOpenAIToolsAgent function.

Type declaration

  • llm: LanguageModelLike

    LLM to use as the agent. Should work with OpenAI tool calling, so must either be an OpenAI model that supports that or a wrapper of a different model that adds in equivalent support.

  • prompt: ChatPromptTemplate

    The prompt to use, must have an input key of 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.