> For clean Markdown of any page, append .md to the page URL. For a task-oriented documentation index, fetch https://docs.nvidia.com/nemo/relay/llms.txt. Use the documentation version matching the installed NeMo Relay package: latest follows the latest stable release, vX.Y.Z identifies a retained release snapshot, and dev documents development changes. Preserve the selected version when following links; do not mix examples or API contracts from different versions. Fetch the relevant section's /llms.txt before individual pages instead of loading a complete version index. # Module gemini_generate_content > Built-in codec for the Gemini generateContent API. Generated from `cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -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. Implements [`LlmCodec`](/reference/api/rust-library-reference/nemo-relay-types/codec/traits/trait-llmcodec) (request decode/encode) and [`LlmResponseCodec`](/reference/api/rust-library-reference/nemo-relay-types/codec/traits/trait-llmresponsecodec) (response decode) for the Gemini generateContent API format. Gemini function-call IDs are normalized as tool-call IDs and echoed in `functionResponse.id`. For legacy responses that omit an ID, the codec uses the function name only when it is unambiguous; duplicate effective IDs are rejected because their function responses cannot be correlated safely. ## Structs * [GeminiGenerateContentCodec](/reference/api/rust-library-reference/nemo-relay-codecs/gemini_generate_content/struct-geminigeneratecontentcodec): Built-in codec for the Gemini generateContent API. * [GeminiGenerateContentStreamingCodec](/reference/api/rust-library-reference/nemo-relay-codecs/gemini_generate_content/struct-geminigeneratecontentstreamingcodec): Streaming counterpart to [`GeminiGenerateContentCodec`](/reference/api/rust-library-reference/nemo-relay-codecs/gemini_generate_content/struct-geminigeneratecontentcodec). ## Docs - [Struct Gemini Generate Content Codec](https://docs.nvidia.com/nemo/relay/v1.0.0/reference/api/rust-library-reference/nemo-relay-codecs/gemini_generate_content/struct-geminigeneratecontentcodec.md): Built-in codec for the Gemini generateContent API. - [Struct Gemini Generate Content Streaming Codec](https://docs.nvidia.com/nemo/relay/v1.0.0/reference/api/rust-library-reference/nemo-relay-codecs/gemini_generate_content/struct-geminigeneratecontentstreamingcodec.md): Streaming counterpart to `GeminiGenerateContentCodec`.