pub fn agent_response_output_schema(
required_policy: SchemaRequiredPolicy,
) -> ValueExpand description
Returns the JSON Schema used for structured assistant output.
The returned value is passed directly to providers that support enforced
output schemas. It starts from the self-descriptive response schema and then
applies compatibility normalization required by schema-enforcing agents.
required_policy selects how strictly optional protocol keys are demanded.