nemo-relay-worker-proto
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.
Versioned gRPC protocol for NeMo Relay out-of-process worker plugins.
The nvidia_worker_v1 contract models Relay-owned DTOs in protobuf and keeps application/provider fields as lossless JSON.
Modules
- conversions: Typed domain conversions for the namespaced worker contract. Typed conversions between shared domain values and protobuf values.
- nvidia_worker_v1: Typed worker contract introduced alongside the legacy API.
- validation: Runtime enforcement of the namespaced protobuf contract. Validate shapes, semantic annotations, and the syntax of open JSON values.
Structs
- CallbackMessageLimitService: Select a generated tonic server’s codec limits before decoding each RPC body.
- WorkerCallbackMessageLimits: Resolved worker transport limits shared by the host and maintained SDKs.
- WorkerCallbackMetadata: Metadata interceptor for callback-scoped worker-to-host runtime calls.
Constants
- DEFAULT_WORKER_MAX_MESSAGE_BYTES: Preserve the gRPC libraries’ default receive limit unless explicitly configured.
- DIAGNOSTIC_NOT_CONSUMED_METADATA: Metadata set to
1on a diagnostic admission rejection before execution. This certifies only that attempt; an earlier lost reply can still be uncertain. - DOWNSTREAM_CONTINUATION_METADATA: Continuation provenance for an error returned as gRPC status metadata. Used for stream-opening failures, where no
WorkerErrorenvelope is returned. - FILE_DESCRIPTOR_SET: Descriptors for the worker contract, including its imported messages.
- WORKER_CALLBACK_METADATA: Binary metadata preserves exact UTF-8 registration names before body decoding.
- WORKER_MAX_MESSAGE_BYTES_BY_NAME_ENV: Host overrides keyed by exact callback registration name, as a JSON byte-limit map.
- WORKER_MAX_MESSAGE_BYTES_ENV: Host-owned limit for a complete worker execution gRPC message, in bytes.
Functions
- callback_name: Read callback identity independently of an RPC method name.
- callback_request: Attach an invocation’s registered callback name to a request.
- parse_worker_max_message_bytes: Parses the positive decimal byte limit shared by Rust and Python workers.
- validate_callback_request: Reject mismatched callback metadata; named limits require the updated host.
- worker_max_message_bytes_from_env: Reads the worker message limit once when creating a host activation or worker.
- worker_max_message_bytes_from_env_with_default: Reads the host override, falling back to a plugin’s execution-message default.