Skip to main content

encode_stream_event

Function encode_stream_event 

Source
pub fn encode_stream_event(
    state: &mut StreamTranslationState,
    target: impl Into<FormatId>,
    event: LlmResponseChunk,
) -> Vec<Value>
Expand description

Encodes one neutral stream event with the built-in codec registry.