start_streaming

Function start_streaming 

Source
pub async fn start_streaming(
    config: &StreamingConfig,
    prompt: &str,
    tool_schemas: Option<ProviderToolSchemas>,
    tx: Sender<StreamChunk>,
    cancel_token: CancellationToken,
) -> Result<(), AppError>
Expand description

Start a streaming LLM request based on config.

Returns an error if the selected provider is not configured.