pub async fn stream_to_stdout<R>(
stream: &mut Pin<Box<dyn Stream<Item = Result<MultiTurnStreamItem<R>, StreamingError>> + Send>>,
) -> Result<FinalResponse, Error>
Expand description
helper function to stream a completion selfuest to stdout
pub async fn stream_to_stdout<R>(
stream: &mut Pin<Box<dyn Stream<Item = Result<MultiTurnStreamItem<R>, StreamingError>> + Send>>,
) -> Result<FinalResponse, Error>
helper function to stream a completion selfuest to stdout