langchain.js
    Preparing search index...

    Function initializeAgentExecutorWithOptions

    • Initialize an agent executor with options.

      Parameters

      • tools: StructuredToolInterface[]

        Array of tools to use in the agent

      • llm: BaseLanguageModelInterface

        LLM or ChatModel to use in the agent

      • options: InitializeAgentExecutorOptionsStructured

        Options for the agent, including agentType, agentArgs, and other options for AgentExecutor.fromAgentAndTools

      Returns Promise<AgentExecutor>

      AgentExecutor

    • Initialize an agent executor with options.

      Parameters

      • tools: ToolInterface[]

        Array of tools to use in the agent

      • llm: BaseLanguageModelInterface

        LLM or ChatModel to use in the agent

      • Optionaloptions: InitializeAgentExecutorOptions

        Options for the agent, including agentType, agentArgs, and other options for AgentExecutor.fromAgentAndTools

      Returns Promise<AgentExecutor>

      AgentExecutor