Skip to main content

agent_response_output_schema_json

Function agent_response_output_schema_json 

Source
pub fn agent_response_output_schema_json() -> String
Expand description

Returns a pretty-printed JSON Schema string for prompt instruction templating.

This is used by prompt builders for providers that cannot enforce outputSchema at transport level and must be guided by in-prompt schema text instead, or by native schema-validation flags that accept a serialized schema document.