मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट6.3k · #14372

google-agents-cli-publish

यह क्या करती है

यह स्किल डिप्लॉय किए गए एजेंट को Gemini ऐप और Agent Registry में रजिस्टर करने का मार्गदर्शन करती है। यह उन डेवलपरों के लिए है जो चाहते हैं कि उनका एजेंट Gemini में दिखे और इस्तेमाल हो सके।

कब इस्तेमाल करें

  • ✓जब आपका एजेंट डिप्लॉय हो चुका है और आप उसे Gemini में रजिस्टर करना चाहते हैं।
  • ✓जब आप Agent Registry में एजेंट की सूची देखना, अपडेट करना या हटाना चाहते हैं।
  • ✓जब आप किसी एजेंट के लिए MCP सर्वर रजिस्टर करना चाहते हैं।

Skill का लिंक

https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-publish/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-publish/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरा डिप्लॉय किया हुआ ADK एजेंट Gemini में रजिस्टर कीजिए, ताकि लोग उसे Gemini ऐप से इस्तेमाल कर सकें।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल जाँचती है कि एजेंट डिप्लॉय है और पहुँच में है, फिर agents कमांड-लाइन टूल से उसे रजिस्टर करती है। Agent Runtime के लिए वह डिप्लॉयमेंट विवरण वाली फ़ाइल पढ़कर एजेंट अपने-आप ढूँढती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Gemini Registration

Requires: A deployed agent. For Agent Runtime in Gemini platform, deployment_metadata.json (created by agents-cli deploy) enables auto-detection. For Cloud Run or GKE, provide the agent card URL and flags directly.

Prerequisites

  1. Agent must be deployed — the agent must be running and reachable
  2. Gemini app must exist — Create one in the Google Cloud console before registering
  3. deployment_metadata.json (Agent Runtime only) — Created automatically by agents-cli deploy; contains the Agent Runtime ID, deployment target, the A2A flag, and the agent directory
  4. Text-based agent — Live/voice (bidi) agents are not supported by the Gemini app, which has no /run_live transport. Register a text-based agent instead.

Required Permissions for A2A on Cloud Run

  • roles/run.servicesInvoker granted to the Discovery Engine service account (service-<PROJECT_NUMBER>@gcp-sa-discoveryengine.iam.gserviceaccount.com) on the Cloud Run service.

Registration Modes

A2A Registration

Every scaffolded agent serves the Agent-to-Agent protocol. A2A is the default — and only — registration type on Cloud Run and GKE (no reasoning engine to invoke natively). It also works on Agent Runtime via --registration-type a2a. For an ADK agent there the CLI warns against it, because the Gemini app can invoke Agent Runtime natively via :streamQuery — prefer ADK registration in that case. For an agent built on another framework there is no ADK app to invoke natively, so A2A is the right mode on every target and the warning is expected. Pass the agent card URL and the command fetches the card and registers it; display name and description default to the card's name/description.

# A2A on Cloud Run / GKE. The card path depends on the project's language:
#   Python -> /a2a/{app_name}/.well-known/agent-card.json
#   Go     -> /.well-known/agent-card.json
agents-cli publish gemini \
  --agent-card-url https://my-service-abc123.us-east1.run.app/a2a/app/.well-known/agent-card.json \
  --gemini-app-id projects/123456/locations/global/collections/default_collection/engines/my-app

Pass --display-name / --description to override the card defaults. On Agent Runtime, the card URL auto-builds from deployment_metadata.json if you omit --agent-card-url.

ADK Registration (default on Agent Runtime)

ADK projects only. The agent must be deployed to Agent Runtime as an ADK app, since registration invokes it through :streamQuery. An agent on another framework registers over A2A, so deploy it to Cloud Run or GKE and publish from there.

This is the default and recommended registration for ADK agents on Agent Runtime: the Gemini app invokes the agent natively via :streamQuery on its reasoning engine resource, authenticating end-to-end. Under the hood, :streamQuery dispatches to the AdkApp's streaming_agent_run_with_events method — when debugging an ADK invocation, search the runtime's reasoning_engine_stderr logs for that method name to trace the failure. It's also the path to use when the agent needs an OAuth authorization (--authorization-id). The agent is registered directly via its reasoning engine resource name; no agent card URL is needed.

agents-cli publish gemini \
  --registration-type adk \
  --agent-runtime-id projects/123456/locations/us-east1/reasoningEngines/789 \
  --gemini-app-id projects/123456/locations/global/collections/default_collection/engines/my-app \
  --display-name "My Agent" \
  --description "Handles customer queries" \
  --tool-description "Answers questions about products"

Programmatic Mode (CI/CD)

The command is non-interactive by default — pass all required values via flags or environment variables. This makes it safe for CI/CD pipelines.

Via flags

agents-cli publish gemini \
  --agent-runtime-id "$AGENT_RUNTIME_ID" \
  --gemini-app-id "$GEMINI_APP_ID" \
  --display-name "Production Agent" \
  --registration-type adk

Via environment variables

Most flags have an env var alternative (--metadata-file, --interactive, and --list do not):

export AGENT_RUNTIME_ID="projects/123456/locations/us-east1/reasoningEngines/789"
export GEMINI_APP_ID="projects/123456/locations/global/collections/default_collection/engines/my-app"
export GEMINI_DISPLAY_NAME="Production Agent"
export GEMINI_DESCRIPTION="Handles customer queries"

agents-cli pub
अक्सर पूछे जाने वाले सवाल

रजिस्टर करने से पहले क्या सही होना चाहिए?

एजेंट पहले से डिप्लॉय और पहुँच योग्य होना चाहिए, और Gemini ऐप Cloud console में मौजूद होना चाहिए।

क्या यह लाइव या वॉइस एजेंट के साथ काम करता है?

नहीं, विवरण के अनुसार लाइव या वॉइस एजेंट समर्थित नहीं हैं, इसलिए टेक्स्ट-आधारित एजेंट चाहिए।

क्या Cloud Run पर अतिरिक्त अनुमतियाँ चाहिए?

हाँ, Discovery Engine सर्विस अकाउंट को Cloud Run सर्विस को invoke करने की अनुमति चाहिए।

जानकारी

लेखक का मूल विवरण

This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT

repo: google/agents-cli

लोकप्रियता

GitHub स्टार
6.3k
रैंकिंग में स्थान
#14372
लाइसेंस
Apache-2.0
अपडेट की गई
27/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

google-agents-cli-adk-code

6.3k

आपके एजेंट को Google ADK से AI एजेंट का कोड लिखने में मदद करती है, जिसमें टूल, कॉलबैक, स्टेट और ऑर्केस्ट्रेशन पैटर्न शामिल हैं।

AI और एजेंटएजेंट

google-agents-cli-deploy

6.3k

आपके एजेंट को AI एजेंट को Google Cloud पर डिप्लॉय करने में मदद करती है, जिसमें Agent Runtime, Cloud Run, GKE, सीक्रेट, CI/CD और समस्या-निवारण शामिल हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

google-agents-cli-eval

6.3k

आपके एजेंट को टेस्ट डेटासेट और स्कोरिंग से AI एजेंट का मूल्यांकन करने में मदद करती है, और यह पता लगाती है कि जवाब क्यों विफल होते हैं।

AI और एजेंटएजेंट

google-agents-cli-observability

6.3k

आपके एजेंट को डिप्लॉय किए गए AI एजेंट के लिए ट्रेसिंग, लॉगिंग और मॉनिटरिंग सेट करने में मदद करती है, ताकि आप देख सकें कि वह क्या करता है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

मिलती-जुलती skills