Skip to main content

collect_response

Function collect_response 

Source
pub async fn collect_response<S>(
    stream: S,
) -> Result<AssistantResponse, LlmError>
where S: Stream<Item = Result<StreamEvent, LlmError>> + Unpin,
Expand description

Collect a chat stream into a single assistant response.