Skip to content

Incorrect comment for OutputSchema field in LLMAgentConfig #756

@merkulovlad

Description

@merkulovlad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions