OpenApiToolkit OpenAPI toolkit. OpenApiToolkit now lives in @langchain/classic. For migration details, see the LangChain v1 migration guide.
The OpenAPIToolkit has access to the following tools:
Setup
This toolkit requires an OpenAPI spec file. The LangChain.js repository has a sample OpenAPI spec file in theexamples directory. You can use this file to test the toolkit.
If you want to get automated tracing from runs of individual tools, you can also set your LangSmith API key by uncommenting below:
Installation
This toolkit lives in thelangchain package:
Instantiation
Now we can instantiate our toolkit. First, we need to define the LLM we would like to use in the toolkit.Tools
View available tools:Use within an agent
First, ensure you have LangGraph installed:API reference
There is currently no dedicated API reference page forOpenApiToolkit in @langchain/classic. For implementation details, see OpenApiToolkit source in langchainjs.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

