Module response
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 and its supporting types for structured, API-agnostic access to LLM response data.
Structs
- AnnotatedLlmResponse: Structured view of an LLM response, produced by a response codec from raw JSON API output.
- CacheWriteTokenCounts: Prompt-cache write tokens retained for one cache duration.
- CostEstimate: Normalized LLM response cost.
- ResponseToolCall: A tool call requested by the model in its response.
- Usage: Token usage statistics from an LLM API response.
Enums
- ApiSpecificResponse: API-specific response data that cannot be normalized across providers.
- CostSource: Source of a normalized cost value.
- FinishReason: Normalized reason why the model stopped generating.
Constants
- CACHE_WRITE_ONE_HOUR_SECONDS: One-hour prompt-cache duration, in seconds.