Skip to main content

agent_response_output_schema_json

Function agent_response_output_schema_json 

Source
pub fn agent_response_output_schema_json(
    required_policy: SchemaRequiredPolicy,
) -> String
Expand description

Returns a pretty-printed, transport-normalized JSON Schema string.

Provider adapters use this serialized schema document when their native structured-output API accepts JSON text. required_policy selects the provider-compatible required field normalization.