Closed leehuwuj closed 2 months ago
Latest commit: 099f626586156c9999732e33fc73c1a848ec560e
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
[!WARNING]
Rate Limit Exceeded
@leehuwuj has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 0 minutes and 52 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between d8bc271a218649923c1903c9447dce8bb6ef5c65 and 099f626586156c9999732e33fc73c1a848ec560e.
The changes introduce three new tools—OpenAPI, HTTP Request, and OpenAPI action—into the supportedTools
array within helpers/tools.ts
. These tools enable interaction with OpenAPI schemas and HTTP requests. Additionally, caching is implemented in load_tools
using cachetools
in __init__.py
, and a new OpenAPIActionToolSpec
class is added in openapi_action.py
to parse OpenAPI specs and make requests.
Files/Paths | Change Summary |
---|---|
helpers/tools.ts |
Added three new tools: "OpenAPI", "HTTP Request", and "OpenAPI action" with their specifications and environment variables. |
.../python/agent/tools/__init__.py |
Introduced json and cachetools imports, and added a @cached decorator to the load_tools method in ToolFactory class. |
.../python/agent/tools/openapi_action.py |
Added a new OpenAPIActionToolSpec class with methods to load OpenAPI specs from URIs. |
sequenceDiagram
participant User
participant ToolFactory
participant OpenAPIActionToolSpec
participant HTTPRequestTool
User->>ToolFactory: Request to load tools
ToolFactory->>OpenAPIActionToolSpec: Load OpenAPI spec
OpenAPIActionToolSpec->>HTTPRequestTool: Make HTTP request
HTTPRequestTool->>OpenAPIActionToolSpec: Return response
OpenAPIActionToolSpec->>ToolFactory: Return loaded tool
ToolFactory->>User: Return tools
In the land of code where tools do thrive,
OpenAPI and HTTP now arrive.
With specs and requests, they dance in glee,
A cached embrace for efficiency.
The rabbit cheers this grand debut,
For agents now, much more they do! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Example config: Simple:
Add authentication:
Summary by CodeRabbit
New Features
Performance Improvements