Skip to content

Capture gen_ai.output.type on invoke_agent spans #5837

@ericapisani

Description

@ericapisani

Set gen_ai.output.type on invoke_agent spans to indicate whether the agent output is text or json (structured output).

Pydantic-ai's structured output is a key feature — this attribute (defined by OTel with values text, json, image, speech) would help users understand what kind of output was produced. Can be inferred from the agent's output_type configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions