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.
pub fn encode_stream_event(
state: &mut StreamTranslationState,
target: impl Into<FormatId>,
event: LlmResponseChunk,
) -> Vec<Value>Encodes one neutral stream event with the built-in codec registry.