Skip to main content

output_request

Function output_request 

Source
pub fn output_request(
    format: Option<String>,
    instructions: Option<String>,
    schema: Option<String>,
) -> Result<Option<OutputSpec>>
Expand description

Build the caller’s requested output shape from the --output-* flags, or None when none were given (leaving whatever the blueprint declares).

The format label is passed through untouched and never matched against a known set, which is what lets --output-format a2ui work without a line of a2ui-specific code. Only --output-schema is interpreted, and only as JSON, because it is the one thing the runtime will actually check.