Struct Gemini Generate Content Codec
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.
Built-in codec for the Gemini generateContent API.
Trait Implementations
impl LlmCodec for GeminiGenerateContentCodec
impl LlmCodec for GeminiGenerateContentCodec
codec_identity
fn codec_identity(&self) -> LlmCodecIdentity
decode
fn decode(&self, request: &LlmRequest) -> Result<AnnotatedLlmRequest>
encode
fn encode(
&self,
annotated: &AnnotatedLlmRequest,
original: &LlmRequest,
) -> Result<LlmRequest>
impl LlmResponseCodec for GeminiGenerateContentCodec
impl LlmResponseCodec for GeminiGenerateContentCodec
codec_identity
fn codec_identity(&self) -> LlmCodecIdentity
decode_response
fn decode_response(&self, response: &Json) -> Result<AnnotatedLlmResponse>