Google ADK for Go 1.6.0

Last reviewed Sep 20, 2026

Export as PDF

Prompt Details

Prompt Composition

2prompts
  1. Go 1.27130 lines · 5.5K tokens
  2. Google ADK for Go 1.6.081 lines · 3.3K tokens
Total211 lines · 8.8K tokens

CWE Coverage

  • 15
  • 20
  • 22
  • 59
  • 78
  • 79
  • 89
  • 94
  • 117
  • 190
  • 201
  • 208
  • 209
  • 250
  • 252
  • 257
  • 287
  • 295
  • 307
  • 323
  • 327
  • 338
  • 345
  • 347
  • 352
  • 362
  • 367
  • 378
  • 426
  • 444
  • 488
  • 489
  • 494
  • 532
  • 639
  • 732
  • 759
  • 770
  • 772
  • 807
  • 841
  • 862
  • 863
  • 915
  • 916
  • 918
  • 922
  • 942
  • 1004
  • 1275
  • 1395
  • 1426
  • 1427

Prompt Preview

Apply the Go 1.27 baseline first. These rules describe exactly google.golang.org/adk v1.6.0, whose module declares Go 1.25.0 as its minimum. The agent/remoteagent/v2 and server/adka2a/v2 adapters discussed here belong to this v1 module.

Version and execution limits

  • On v1.6.0, which predates the confirmation-request trust checks and A2A transfer controls that v1.6.1 carries and the fetched-card origin and deploy-input validation that v1.7.0 added, keep the compensating controls below in place, and don't assume a later fix is present until go list -m google.golang.org/adk shows a release that has it. ADK lands fixes on its v2 line first and backports some of them to v1 later, so check the v1 release notes for each v2 security fix you rely on.
  • Set a positive loopagent.Config.MaxIterations; zero permits indefinite iteration, and the loop itself does not check context cancellation between iterations.
  • Bound Runner.Run with a deadline and application-enforced model-call, token, and cost budgets; agent.RunConfig has no maximum-model-call setting.
  • Enforce Live session duration, traffic, and cost limits outside LiveRunConfig.MaxLLMCalls, which is declared but not enforced by the v1.6.0 flow. Close LiveSession and cancel its context on disconnect or budget exhaustion.
  • Limit model-produced FunctionCall counts before dispatch and enforce concurrency and spending quotas inside tools; the flow starts a goroutine for each call, including resumed calls.

Agent configuration and instructions

  • Build llmagent.Config, gemini.NewModel client