Type alias CreateOpenAIFunctionsAgentParams

CreateOpenAIFunctionsAgentParams: {
    llm: Toolkit<Toolkit>;
    prompt: Toolkit;
    tools: Toolkit[];
}

Params used by the createOpenAIFunctionsAgent function.

Type declaration

  • llm: Toolkit<Toolkit>

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

  • prompt: Toolkit

    The prompt to use, must have an input key for agent_scratchpad.

  • tools: Toolkit[]

    Tools this agent has access to.

Generated using TypeDoc