Struct Gemini Generate Content Streaming Codec

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

1pub struct GeminiGenerateContentStreamingCodec { /* private fields */ }

Streaming counterpart to GeminiGenerateContentCodec.

Accumulates Gemini server-sent event chunks and assembles a complete response that GeminiGenerateContentCodec::decode_response can consume.

Implementations

impl GeminiGenerateContentStreamingCodec

impl GeminiGenerateContentStreamingCodec

new

pub fn new() -> Self

Creates a fresh streaming codec with empty accumulator state.

Trait Implementations

impl Default for GeminiGenerateContentStreamingCodec

impl Default for GeminiGenerateContentStreamingCodec

default

fn default() -> Self

impl StreamingCodec for GeminiGenerateContentStreamingCodec

impl StreamingCodec for GeminiGenerateContentStreamingCodec

collector

fn collector(&self) -> LlmCollectorFn

finalizer

fn finalizer(&self) -> LlmFinalizerFn