Agent that interacts with OpenAPI APIs via a hierarchical planning approach.
Maximum length of the response to be returned.
Construct an OpenAI API planner and controller for a given spec.
Inject credentials via requests_wrapper.
We use a top-level "orchestrator" agent to invoke the planner and controller, rather than a top-level planner that invokes a controller with its plan. This is to keep the planner simple.
You need to set allow_dangerous_requests to True to use Agent with BaseRequestsTool. Requests can be dangerous and can lead to security vulnerabilities. For example, users can ask a server to make a request to an internal server. It's recommended to use requests through a proxy server and avoid accepting inputs from untrusted sources without proper sandboxing. Please see: https://python.langchain.com/docs/security for further security information.
A reduced OpenAPI spec.
This is a quick and dirty representation for OpenAPI specs.
Base class for requests tools.
Requests GET tool with LLM-instructed extraction of truncated responses.
Requests POST tool with LLM-instructed extraction of truncated responses.
Requests PATCH tool with LLM-instructed extraction of truncated responses.
Requests PUT tool with LLM-instructed extraction of truncated responses.
Tool that sends a DELETE request and parses the response.