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
The comment for
OutputSchemainagent/llmagent/llmagent.gosays:This is inaccurate.
OutputSchemacan be used together with tools when needed, the frameworkautomatically handles this via the
set_model_responsetool workaround (seeinternal/llminternal/outputschema_processor.go).The comment should be updated to reflect the actual behavior.
File:
agent/llmagent/llmagent.go:257