pub async fn stream_to_stdout<M>(
agent: &'static Agent<M>,
stream: &mut StreamingCompletionResponse<M::StreamingResponse>,
) -> Result<(), Error>where
M: CompletionModel,Expand description
A helper function to stream a completion request to stdout. Tool call deltas are ignored as tool calls are generally much easier to handle when received in their entirety rather than using deltas.