Function createOpenApiAgent

  • Creates an OpenAPI agent using a language model, an OpenAPI toolkit, and optional prompt arguments. It creates a prompt for the agent using the OpenAPI tools and the provided prefix and suffix. It then creates a ZeroShotAgent with the prompt and the OpenAPI tools, and returns an AgentExecutor for executing the agent with the tools.

    Parameters

    Returns AgentExecutor

    An AgentExecutor for executing the agent with the tools.

    Security

    Security Notice This agent provides access to external APIs. Use with caution as this agent can make API calls with arbitrary headers. Exposing this agent to users could lead to security vulnerabilities. Consider limiting access to what endpoints it can hit, what actions can be taken, and more.

    Link

    See https://js.langchain.com/docs/security for more information.

Generated using TypeDoc