Một số công cụ có các phần phụ thuộc mà bạn phải cài đặt hoặc bật trước khi sử dụng. Sau đây là một số ví dụ về các phần phụ thuộc có thể cần thiết:
Bạn có thể cần cài đặt một tiện ích trong IDE.
Bạn có thể cần bật một sản phẩm hoặc dịch vụ trong dự án Google Cloud .
Bạn có thể cần tạo tài khoản hoặc dự án cho một dịch vụ.
Bạn sẽ được nhắc thực hiện các hành động bắt buộc trong lần đầu tiên bạn nhắc một công cụ trong cuộc trò chuyện của tính năng Gemini Code Assist.
Định cấu hình một công cụ để sử dụng trong IDE
Trong IDE, hãy chuyển đến cuộc trò chuyện Trợ giúp mã Gemini và nhắc công cụ bạn muốn sử dụng bằng cách sử dụng biểu tượng @, theo sau là tên của công cụ.
Ví dụ: lời nhắc sau đây được gửi đến công cụ Google Tài liệu:
@GoogleDocs get my docs
Bạn sẽ được nhắc kết nối công cụ.
Nhấp vào đường liên kết để kết nối công cụ. Trang Agents & Tools (Trình đại diện và công cụ) của Gemini Code Assist sẽ mở ra.
Tìm công cụ mà bạn muốn sử dụng rồi nhấp vào Kết nối tài khoản của bạn. Trang chi tiết về công cụ sẽ mở ra.
Trên trang chi tiết về công cụ, hãy nhấp vào Kết nối rồi làm theo hướng dẫn để xác thực với dịch vụ công cụ và kết nối tài khoản của bạn.
Để biết danh sách các công cụ và một số câu lệnh gợi ý, hãy xem phần các công cụ có sẵn.
Xoá quyền uỷ quyền khỏi một công cụ
Để xoá quyền uỷ quyền khỏi một công cụ trong IDE, hãy hoàn tất các bước sau:
Tìm trình kết nối tài khoản cho dịch vụ công cụ mà bạn muốn xoá, sau đó nhấp vào tên của trình kết nối tài khoản. Trang chi tiết về trình kết nối sẽ mở ra.
Trong hàng chứa tài khoản của bạn, hãy nhấp vào biểu tượng more_vertTuỳ chọn khác.
Nhấp vào Xóa.
Tài khoản của bạn sẽ bị xoá khỏi trình kết nối tài khoản. Công cụ này không còn được uỷ quyền truy cập vào dịch vụ của công cụ đó từ IDE của bạn.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Khó hiểu","hardToUnderstand","thumb-down"],["Thông tin hoặc mã mẫu không chính xác","incorrectInformationOrSampleCode","thumb-down"],["Thiếu thông tin/mẫu tôi cần","missingTheInformationSamplesINeed","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-06-11 UTC."],[],[],null,["# Configure Gemini Code Assist tools\n\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis document describes how to configure Gemini Code Assist tools for\nuse in your IDE.\n\nTo learn more about Gemini Code Assist tools and view all available\ntools, read the [Gemini Code Assist tools overview](/gemini/docs/codeassist/tools-agents/tools-overview).\n\nBefore you begin\n----------------\n\n1. Ask your administrator to do the following:\n\n 1. [Set up Gemini Code Assist Standard and Enterprise](/gemini/docs/discover/set-up-gemini).\n 2. [Enable Gemini Code Assist tools](/gemini/docs/codeassist/tools-agents/enable-tools).\n2. [Install the Gemini Code Assist plugin in your IDE](/gemini/docs/discover/set-up-gemini#use-ide).\n\n### Required roles\n\n\nTo get the permissions that\nyou need to use Gemini Code Assist tools,\n\nask your administrator to grant you the\n\n\n[Gemini Code Assist Tools User](/iam/docs/roles-permissions/cloudaicompanion#cloudaicompanion.codeToolsUser) (`roles/cloudaicompanion.codeToolsUser`)\nIAM role on the Google Cloud project.\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nYou might also be able to get\nthe required permissions through [custom\nroles](/iam/docs/creating-custom-roles) or other [predefined\nroles](/iam/docs/roles-overview#predefined).\n\n### Dependencies\n\nSome tools have dependencies you must install or enable before use. Some\nexamples of dependencies that might be required are:\n\n- An extension might need to be installed in your IDE.\n- A product or service might need to be enabled in your Google Cloud project.\n- An account or project might need to be created for a service.\n\nYou will be prompted to take the required actions the first time you prompt a\ntool in the Gemini Code Assist chat.\n\nConfigure a tool for use in the IDE\n-----------------------------------\n\n1. In your IDE, navigate to the Gemini Code Assist chat and prompt\n the tool you want to use by using the `@` symbol followed by the name of\n the tool.\n\n For example, the following prompt is sent to the Google Docs tool: \n\n @GoogleDocs get my docs\n\n You are prompted to connect the tool.\n2. Click the link to connect the tool. The Gemini Code Assist\n **Agents \\& Tools** page opens.\n\n3. Locate the tool that you want to use and then click\n **Connect your account**. The tool details page opens.\n\n | **Note:** you can't connect your account if the tool hasn't been enabled by an administrator.\n4. In the tool details page, click **Connect** and then follow the instructions\n to authenticate to the tool service and connect your account.\n\nFor a list of tools and some suggested prompts, see\n[available tools](/gemini/docs/codeassist/tools-agents/tools-overview#available-tools).\n\nRemove authorization from a tool\n--------------------------------\n\nTo remove authorization from a tool in your IDE, complete the following steps:\n\n1. Navigate to Developer Connect.\n\n\n [Go to Developer Connect](https://console.cloud.google.com/developer-connect/connections)\n\n \u003cbr /\u003e\n\n2. Find the account connector for the tool service you want to remove, and then\n click the name of the account connector. The connector details page opens.\n\n3. In the row containing your account, click\n more_vert**More options**.\n\n4. Click **Delete**.\n\n Your account is removed from the account connector. The tool is no longer\n authorized to access its service from your IDE.\n | **Note:** if you want to authorize the tool again with a different account, you might need to log out of the tool account and then log back in with the new account you want to authorize.\n\nWhat's next\n-----------\n\n- Try out the GitHub or GitLab tool by following the instructions in [Get started with Gemini Code Assist tools](/gemini/docs/codeassist/tools-agents/get-started-with-tools)."]]