fix(patch): cherry-pick 8432bce to release/v0.34.0-preview.1-pr-22069 to patch version v0.34.0-preview.1 and create version 0.34.0-preview.2#22205
Conversation
…rds in subagents (#22069)
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refactors the handling of Multi-Component Protocol (MCP) tool names and their registration within the agent system. It introduces a standardized naming convention for MCP tools, enhances support for wildcard tool selection, and simplifies the internal logic for registering and retrieving tool schemas. These changes aim to improve the flexibility and robustness of tool configuration for agents, allowing for more dynamic and expressive tool assignments. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces support for wildcard tool names in agent definitions (e.g., *, mcp_*, mcp_server_*) and refactors the naming convention for MCP tools to a more explicit mcp_server_tool format. The changes are consistently applied across agent loading, execution, and tool validation logic. This includes updating the agent loader schema, adding wildcard expansion logic in the LocalAgentExecutor, and adjusting the tool name validation. The removal of the asFullyQualifiedTool method and related logic simplifies the tool registration process. The accompanying test updates correctly reflect these new features and refactoring. The changes appear solid and I have no high or critical severity concerns.
|
Size Change: +168 B (0%) Total Size: 26.5 MB ℹ️ View Unchanged
|
This commit fixes an issue where LocalAgentExecutor would push the schema of an instantiated tool twice during agent invocation, leading to 'Duplicate function declaration' API errors.
4085b4f
into
release/v0.34.0-preview.1-pr-22069
This PR automatically cherry-picks commit 8432bce to patch version v0.34.0-preview.1 in the preview release to create version 0.34.0-preview.2.