Skip to main content

query_with_content

Function query_with_content 

Source
pub async fn query_with_content(
    content: Vec<UserContent>,
    config: ClientConfig,
) -> Result<Vec<Message>>
Expand description

Run a one-shot multi-modal query and collect all response messages.

Like query() but accepts structured content blocks (text + images) instead of a plain string prompt. The config.prompt field is ignored when content blocks are provided.

ยงErrors

Returns Error::Config if content is empty.