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.
Set
gen_ai.output.typeoninvoke_agentspans to indicate whether the agent output istextorjson(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'soutput_typeconfiguration.