Skip to main content

print_stream_with_options

Function print_stream_with_options 

Source
pub async fn print_stream_with_options(
    stream: &mut (impl StreamExt<Item = StreamPart> + Unpin),
    print_updates: bool,
    show_thinking: bool,
) -> String
Expand description

Like print_stream but with explicit control over thinking display.

When show_thinking is false, thinking/reasoning content is suppressed.