google-agents-cli-adk-code

tarafından google

Bu beceri, kullanıcı "ajan kodu yazmak", "ADK ile ajan oluşturmak", "araç eklemek", "geri çağrı oluşturmak", "ajan tanımlamak", "durum yönetimi kullanmak" istediğinde veya ADK (Agent Development Kit) Python API kalıpları ve kod örneklerine ihtiyaç duyduğunda kullanılmalıdır. Google ADK beceri paketinin bir parçasıdır. Ajan türleri, araç tanımları, orkestrasyon kalıpları, geri çağrılar ve durum yönetimi için hızlı bir başvuru sağlar. Yeni projeler oluşturmak (google-agents-cli-scaffold kullanın) veya dağıtım için KULLANMAYIN...

npx skills add https://github.com/google/agents-cli --skill google-agents-cli-adk-code

ADK Code Reference

Activate /google-agents-cli-workflow first for required development phases and scaffolding steps.

1. Study Recipes (No Project Needed)

Read the topic index in references/samples.md before answering "how do I build X". Worked implementations exist for: sandboxed/per-user code execution, agent-loadable SKILL.md skills, cross-session memory, approval gates before risky actions, tool guardrails, per-user credentials, and scheduled/event-driven runs.

The index only gives you a name; the recipe is the code. Clone it and read its AGENTS.md before you implement anything it covers. Hand-writing a Docker or E2B sandbox wrapper, a skill loader, a moderation callback or a memory store — for a capability the index lists — means you stopped at the name.

2. Prerequisites for Writing Code

Do NOT write agent code until a project is scaffolded.

  1. Verify project: run agents-cli info (proceed if config exists).
  2. New project: run agents-cli scaffold create <name>.
  3. Existing code: run agents-cli scaffold enhance ..

Language Support: This reference covers the Python ADK SDK. Support for other languages coming soon.

Quick Reference — Most Common Patterns

from google.adk.agents import Agent

def get_weather(city: str) -> dict:
    """Get current weather for a city."""
    return {"city": city, "temp": "22°C", "condition": "sunny"}

root_agent = Agent(
    name="my_agent",
    model="gemini-3.7-flash",
    instruction="You are a helpful assistant that ...",
    tools=[get_weather],
)

References

Use cheatsheets for common patterns. For deep knowledge, fetch the docs index or inspect the installed package.

ReferenceWhen to read
references/samples.mdTopic-indexed catalog of ADK reference recipes. Read in workflow Phase 1 — before scaffolding and before writing code — maps a capability to the recipe that implements it.
references/adk-python.mdCore ADK API: Agent, tools, callbacks, plugins, state, artifacts, multi-agent systems, SequentialAgent / ParallelAgent / LoopAgent, custom BaseAgent, ManagedAgent (server-hosted first-party agents), A2A protocol, A2UI. Default for most agents.
references/adk-workflows.mdGraph-based Workflow API (ADK 2.0): nodes, edges, fan-out/fan-in, HITL, parallel processing. Use when you need explicit graph topology.
curl https://adk.dev/llms.txtDocs index (every page title + URL). Fetch it, then WebFetch the specific page for anything beyond the cheatsheets.
Installed ADK packageExact signatures and symbols — inspect the source (see "Inspecting ADK Source Code" in references/adk-python.md).

Related Skills

  • /google-agents-cli-workflow — Development workflow, coding guidelines, and operational rules
  • /google-agents-cli-scaffold — Project creation and enhancement with agents-cli scaffold create / scaffold enhance
  • /google-agents-cli-eval — Evaluation methodology, dataset schema, and the eval-fix loop
  • /google-agents-cli-deploy — Deployment targets, CI/CD pipelines, and production workflows

google tarafından daha fazla skill

google-agents-cli-eval
google
Bu beceri, kullanıcının "bir değerlendirme çalıştırmak", "ADK ajanımı değerlendirmek", "bir değerlendirme veri seti yazmak", "değerlendirme başarısızlıklarını analiz etmek", "değerlendirme sonuçlarını karşılaştırmak", "ajanı optimize etmek" istediğinde veya Agent Platform değerlendirme metodolojisi ve Kalite Çarkı hakkında rehberliğe ihtiyaç duyduğunda kullanılmalıdır. Değerlendirme metriklerini, veri seti şemasını, LLM-as-judge puanlamasını ve yaygın başarısızlık nedenlerini kapsar. API kod kalıpları (google-agents-cli-adk-code kullanın), dağıt
developmenttestingdata-analysis
google-agents-cli-workflow
google
Bu beceri, kullanıcının "bir ajan geliştirmek", "ADK kullanarak bir ajan oluşturmak", "ajanı yerel olarak çalıştırmak", "ajan kodunda hata ayıklamak", "bir ajanı test etmek", "bir ajanı dağıtmak", "bir ajanı yayınlamak", "bir ajanı izlemek" istediğinde veya ADK (Ajan Geliştirme Kiti) geliştirme yaşam döngüsü ve kodlama yönergelerine ihtiyaç duyulduğunda kullanılmalıdır. ADK ajanları oluşturmak için giriş noktasıdır. Her zaman aktiftir — tam iş akışını (iskelet oluşturma, derleme, değerlendirme, dağıtma, yayınlama
developmentdevopstesting
google-agents-cli-deploy
google
Bu beceri, kullanıcı "bir ajan dağıtmak", "ADK ajanımı dağıtmak", "CI/CD kurmak", "sırları yapılandırmak", "bir dağıtım sorununu gidermek" istediğinde veya Agent Runtime, Cloud Run ya da GKE dağıtım hedefleri hakkında rehberlik gerektiğinde kullanılmalıdır. Dağıtım iş akışlarını, servis hesaplarını, geri almayı ve üretim altyapısını kapsar. Google ADK (Agent Development Kit) beceri paketinin bir parçasıdır. API kod kalıpları için (google-agents-cli-adk-code kullanın), değerlendirme için (google-agents-cli-eval kullanın) veya... KULLANMAYIN.
developmentdevops
google-agents-cli-scaffold
google
This skill should be used when the user wants to "create an agent project", "start a new ADK project", "build me a new agent", "add CI/CD to my project", "add deployment", "enhance my project", or "upgrade my project". Part of the Google ADK (Agent Development Kit) skills suite. Covers `agents-cli scaffold create`, `scaffold enhance`, and `scaffold upgrade` commands, template options, deployment targets, and the prototype-first workflow. Do NOT use for writing agent code (use...
developmentdevops
google-agents-cli-observability
google
Bu beceri, kullanıcı "izlemeyi ayarlamak", "ADK ajanımı izlemek", "günlüğü yapılandırmak", "gözlemlenebilirlik eklemek", "üretim trafiğini hata ayıklamak" istediğinde veya dağıtılmış ADK (Agent Development Kit) ajanlarının izlenmesi konusunda rehberlik gerektiğinde kullanılmalıdır. Cloud Trace, istem-yanıt günlüğü, BigQuery Agent Analytics, üçüncü taraf entegrasyonları (AgentOps, Phoenix, MLflow, vb.) ve sorun gidermeyi kapsar. Google ADK (Agent Development Kit) beceri paketinin bir parçasıdır. Dağıtım kurulumu için KULLANMAYIN (kullan...
developmentdevopsapi
google-agents-cli-publish
google
Bu beceri, kullanıcı "bir ajan yayınlamak", "ADK ajanımı yayınlamak", "Gemini Enterprise'a bir ajan kaydetmek", "Gemini Enterprise'a yayınlamak" istediğinde veya agents-cli publish gemini-enterprise komutu hakkında rehberlik gerektiğinde kullanılmalıdır. ADK ve A2A kayıt modlarını, programatik ve etkileşimli kullanımı, bayrak referansını, dağıtım meta verilerinden otomatik algılamayı ve sorun gidermeyi kapsar. Google ADK (Agent Development Kit) beceri paketinin bir parçasıdır. Dağıtım için KULLANMAYIN (kullan...
developmentdevopsapi