Skip to main content

query_stream_with_content

Function query_stream_with_content 

Source
pub async fn query_stream_with_content(
    content: Vec<UserContent>,
    config: ClientConfig,
) -> Result<impl Stream<Item = Result<Message>>>
Expand description

Run a streaming multi-modal query, yielding messages as they arrive.

Like query_stream() but accepts structured content blocks. The config.prompt field is ignored — content blocks are sent via stdin.

§Errors

Returns Error::Config if content is empty.