> 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 response > Normalized LLM response data types. Normalized LLM response types produced by response codecs. 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`. Normalized LLM response data types. Normalized LLM response types produced by response codecs. This module defines [`AnnotatedLlmResponse`](/reference/api/rust-library-reference/nemo-relay/struct-annotatedllmresponse) and its supporting types for structured, API-agnostic access to LLM response data. ## Structs * [AnnotatedLlmResponse](/reference/api/rust-library-reference/nemo-relay/codec/response/struct-annotatedllmresponse): Structured view of an LLM response, produced by a response codec from raw JSON API output. * [CacheWriteTokenCounts](/reference/api/rust-library-reference/nemo-relay/codec/response/struct-cachewritetokencounts): Prompt-cache write tokens retained for one cache duration. * [CostEstimate](/reference/api/rust-library-reference/nemo-relay/codec/response/struct-costestimate): Normalized LLM response cost. * [ResponseToolCall](/reference/api/rust-library-reference/nemo-relay/codec/response/struct-responsetoolcall): A tool call requested by the model in its response. * [Usage](/reference/api/rust-library-reference/nemo-relay/codec/response/struct-usage): Token usage statistics from an LLM API response. ## Enums * [ApiSpecificResponse](/reference/api/rust-library-reference/nemo-relay/codec/response/enum-apispecificresponse): API-specific response data that cannot be normalized across providers. * [CostSource](/reference/api/rust-library-reference/nemo-relay/codec/response/enum-costsource): Source of a normalized cost value. * [FinishReason](/reference/api/rust-library-reference/nemo-relay/codec/response/enum-finishreason): Normalized reason why the model stopped generating. ## Constants * [CACHE_WRITE_ONE_HOUR_SECONDS](/reference/api/rust-library-reference/nemo-relay/codec/response/constant-cache-write-one-hour-seconds): One-hour prompt-cache duration, in seconds. ## Docs - [Struct Annotated LlmResponse](https://docs.nvidia.com/nemo/relay/v1.0.0/reference/api/rust-library-reference/nemo-relay/codec/response/struct-annotatedllmresponse.md): Structured view of an LLM response, produced by a response codec from raw JSON API output. - [Struct Cache Write Token Counts](https://docs.nvidia.com/nemo/relay/v1.0.0/reference/api/rust-library-reference/nemo-relay/codec/response/struct-cachewritetokencounts.md): Prompt-cache write tokens retained for one cache duration. - [Struct Cost Estimate](https://docs.nvidia.com/nemo/relay/v1.0.0/reference/api/rust-library-reference/nemo-relay/codec/response/struct-costestimate.md): Normalized LLM response cost. - [Struct Response Tool Call](https://docs.nvidia.com/nemo/relay/v1.0.0/reference/api/rust-library-reference/nemo-relay/codec/response/struct-responsetoolcall.md): A tool call requested by the model in its response. - [Struct Usage](https://docs.nvidia.com/nemo/relay/v1.0.0/reference/api/rust-library-reference/nemo-relay/codec/response/struct-usage.md): Token usage statistics from an LLM API response. - [Enum ApiSpecific Response](https://docs.nvidia.com/nemo/relay/v1.0.0/reference/api/rust-library-reference/nemo-relay/codec/response/enum-apispecificresponse.md): API-specific response data that cannot be normalized across providers. - [Enum Cost Source](https://docs.nvidia.com/nemo/relay/v1.0.0/reference/api/rust-library-reference/nemo-relay/codec/response/enum-costsource.md): Source of a normalized cost value. - [Enum Finish Reason](https://docs.nvidia.com/nemo/relay/v1.0.0/reference/api/rust-library-reference/nemo-relay/codec/response/enum-finishreason.md): Normalized reason why the model stopped generating. - [Constant CACHE_WRITE_ONE_HOUR_SECONDS](https://docs.nvidia.com/nemo/relay/v1.0.0/reference/api/rust-library-reference/nemo-relay/codec/response/constant-cache-write-one-hour-seconds.md): One-hour prompt-cache duration, in seconds.