智能体 UI 工具包使用入门

本指南可帮助您开始使用 Maps Platform Agentic 界面工具包。

1. API 密钥

使用 Google Gemini API 密钥初始化该工具包。您可以从 Google AI Studio 免费获取一个。

您还需要一个 Google Maps Platform API 密钥,以便该工具包能够渲染地图并调用其他地理位置工具。您可以在 Google Cloud 控制台中创建密钥并启用必需的 API。

您的 Google Maps Platform API 密钥必须启用以下 API:

  • Geocoding API
  • Maps JavaScript API
  • Places UI Kit
  • Routes API

如需使用 Grounding Lite MCP,您还必须启用 Maps Grounding Lite API。

2. 在 GitHub 上访问工具包和示例

该工具包可在 GitHub 上获取,示例可在示例代码库中获取。