-
Notifications
You must be signed in to change notification settings - Fork 1
FROM feat/290-api-as-a-tool TO development #293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
WalkthroughThe changes introduce a new dynamic API tool generation module, refactor A2A tool creation to support multiple agents, and update the agent utility to leverage these new capabilities. The agent builder now integrates both A2A and OpenAPI-derived tools. Additionally, a new VSCode debug configuration and a changelog entry for the new feature branch are added. The previous monolithic tool route is replaced by modular sub-routers for tool operations, including custom MCP and A2A info endpoints, tool creation, listing, and invocation. New database models and repositories for tools, agents, servers, settings, threads, and users are introduced, alongside refactoring of model imports. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Agent
participant A2A Tool Factory
participant API Tool Generator
participant Remote Agent
participant API Endpoint
User->>Agent: Request agent construction (abuilder)
Agent->>A2A Tool Factory: create_a2a_tools(a2a_config)
A2A Tool Factory->>Remote Agent: Prepare StructuredTool per agent config
Agent->>API Tool Generator: generate_tools_from_openapi_spec(openapi_url)
API Tool Generator->>API Endpoint: Fetch OpenAPI spec & endpoints
API Tool Generator->>Agent: Return list of StructuredTools
Agent->>User: Agent ready with A2A and API tools
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Closes #290
Summary by CodeRabbit