«

借助Gemini API文档MCP与智能体技能,提升编码智能体的表现。

qimuai 发布于 阅读:6 一手编译


借助Gemini API文档MCP与智能体技能,提升编码智能体的表现。

内容来源:https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-docsmcp-agent-skills/

内容总结:

谷歌近日针对AI编程助手可能生成过时代码的问题,推出两项互补工具以提升开发效率。由于训练数据存在时效限制,智能体在调用Gemini API时可能输出旧版代码。为此,团队构建了两种解决方案:

一是推出Gemini API文档MCP工具,该工具通过模型上下文协议,将编程助手实时连接至最新的Gemini API文档、软件开发工具包及模型信息,确保代码生成始终基于最新接口与最优配置。

二是新增Gemini API开发者技能模块,该模块通过植入最佳实践指南、资源链接和模式范例,引导智能体遵循当前主流的开发模式。

单独使用任一工具均可优化工作流程,但二者结合能实现效能最大化。测试数据显示,同时采用两种工具可使评估通过率达到96.3%,且每个正确答案的令牌消耗量较基础提示方式减少63%。开发者现可通过谷歌AI官方平台获取完整配置方案。

中文翻译:

由于智能体训练数据的截止日期限制,其生成的Gemini API代码可能已过时。为此我们构建了两款互补工具来解决这一问题。

Gemini API文档MCP工具(https://gemini-api-docs-mcp.dev)通过模型上下文协议,将您的编程智能体与最新的Gemini API文档、软件开发工具包及模型信息实时连接。这确保您的编程智能体能够获取最新的API接口与代码资源,并以最优配置进行构建。

Gemini API开发者技能库则提供最佳实践指南、资源链接和设计模式,引导智能体采用当前最新的SDK开发范式。

这两款工具各自都能提升您的工作流程效率,而结合使用更能释放其全部潜能。我们的评估数据显示,同时使用MCP工具与技能库的组合方案,在测试集上实现了96.3%的通过率,且每个正确答案的令牌消耗量较基础提示方式减少63%。您可通过访问ai.google.dev/gemini-api/docs/coding-agents同时配置这两项工具。

英文来源:

Agents can generate outdated Gemini API code because their training data has a cutoff date. We built two complementary tools to fix this.
The Gemini API Docs MCP (https://gemini-api-docs-mcp.dev) connects your coding agent to the current Gemini API documentation, SDKs and model information via the Model Context Protocol. This ensures that your coding agent has access to the most up-to-date APIs and code and builds with the most optimal configuration settings.
The Gemini API Developer Skills adds best-practice instructions, resources-links and patterns to guide the agent toward current SDK patterns.
While each tool independently improves your workflow, using them together unlocks their full potential. Our evals show that combining MCP and Skills leads to a 96.3% pass rate on our eval set, with 63% fewer tokens per correct answer compared to vanilla prompting. Set up both at ai.google.dev/gemini-api/docs/coding-agents.

谷歌新消息

文章目录


    扫描二维码,在手机上阅读