Skip to main content

decode_unstructured_value

Function decode_unstructured_value 

Source
pub fn decode_unstructured_value(
    value: &SchemaValue,
) -> Result<UnstructuredValueCase<'_>, UnstructuredError>
Expand description

Interpret a SchemaValue as a canonical unstructured variant { inline, url } value, returning the selected case.

Used by every consumer that turns an unstructured value into a transport representation (HTTP body / redirect, MCP content / resource link) so the inline-vs-url dispatch lives in exactly one place.