google/adk-go

Incorrect comment for OutputSchema field in LLMAgentConfig

Open

#756 aperta il 27 apr 2026

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Go (699 fork)github user discovery
documentationgood first issue

Metriche repository

Star
 (8108 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

The comment for OutputSchema in agent/llmagent/llmagent.go says:

// NOTE: when this is set, agent can only reply and cannot use any tools,
// such as function tools, RAGs, agent transfer, etc.
OutputSchema *genai.Schema

This is inaccurate. OutputSchema can be used together with tools when needed, the framework automatically handles this via the set_model_response tool workaround (see internal/llminternal/outputschema_processor.go).

The comment should be updated to reflect the actual behavior.

File: agent/llmagent/llmagent.go:257

Guida contributor