Skip to main content

channel_stream

Function channel_stream 

Source
pub fn channel_stream(
    buffer: usize,
) -> (Sender<AssistantMessageEvent>, AssistantStream)
Expand description

Build an AssistantStream from a channel pair. The provider pushes events through the sender from a spawned task.