Skip to main content

single_event_stream

Function single_event_stream 

Source
pub(super) fn single_event_stream(
    event: ChatbotChatStreamEvent,
) -> ChatbotResult<Pin<Box<dyn Stream<Item = ChatbotResult<Bytes>> + Send>>>
Expand description

A stream that carries one event and ends, for a response with no turn behind it.