Skip to main content

normalized_response_parts

Function normalized_response_parts 

Source
pub fn normalized_response_parts(
    llm_response: &LlmResponse,
) -> Vec<LlmOutputPart>
Expand description

Convert a raw LlmResponse into a stream of LlmOutputParts that downstream code can iterate. When the response only carries full_text (provider didn’t populate parts), synthesize a single Text part.