> 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. # nemo-relay-worker-proto > Versioned gRPC protocol for NeMo Relay out-of-process worker plugins. 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`. Versioned gRPC protocol for NeMo Relay out-of-process worker plugins. The protobuf schema owns transport control flow and the tool-result wrapper structure. Open application payloads remain lossless JSON values, while other Relay data transfer objects are carried in JSON envelopes. ## Modules * [v1](/reference/api/rust-library-reference/nemo-relay-worker-proto/v1): Generated protobuf and gRPC service definitions. ## Structs * [CallbackMessageLimitService](/reference/api/rust-library-reference/nemo-relay-worker-proto/struct-callbackmessagelimitservice): Select a generated tonic server's codec limits before decoding each RPC body. * [WorkerCallbackMessageLimits](/reference/api/rust-library-reference/nemo-relay-worker-proto/struct-workercallbackmessagelimits): Resolved worker transport limits shared by the host and maintained SDKs. * [WorkerCallbackMetadata](/reference/api/rust-library-reference/nemo-relay-worker-proto/struct-workercallbackmetadata): Metadata interceptor for callback-scoped worker-to-host runtime calls. ## Constants * [DEFAULT_WORKER_MAX_MESSAGE_BYTES](/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-default-worker-max-message-bytes): Preserve the gRPC libraries' default receive limit unless explicitly configured. * [DIAGNOSTIC_NOT_CONSUMED_METADATA](/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-diagnostic-not-consumed-metadata): Metadata set to `1` on a diagnostic admission rejection before execution. This certifies only that attempt; an earlier lost reply can still be uncertain. * [DOWNSTREAM_CONTINUATION_METADATA](/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-downstream-continuation-metadata): Continuation provenance for an error returned as gRPC status metadata. Used for stream-opening failures, where no `WorkerError` envelope is returned. * [WORKER_CALLBACK_METADATA](/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-worker-callback-metadata): Binary metadata preserves exact UTF-8 registration names before body decoding. * [WORKER_MAX_MESSAGE_BYTES_BY_NAME_ENV](/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-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](/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-worker-max-message-bytes-env): Host-owned limit for a complete worker execution gRPC message, in bytes. * [WORKER_PROTOCOL_GRPC_V1](/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-worker-protocol-grpc-v1): Stable worker protocol identifier accepted by `compat.worker_protocol`. ## Functions * [callback_name](/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-callback-name): Read callback identity independently of an RPC method name. * [callback_request](/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-callback-request): Attach an invocation's registered callback name to a request. * [decode_json_envelope](/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-decode-json-envelope): Decodes a JSON envelope into the requested DTO type. * [decode_json_value](/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-decode-json-value): Decodes a lossless protocol JSON value into the requested type. * [json_envelope](/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-json-envelope): Creates a JSON envelope from a serializable DTO. * [json_value](/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-json-value): Creates a lossless protocol JSON value from a serializable value. * [parse_worker_max_message_bytes](/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-parse-worker-max-message-bytes): Parses the positive decimal byte limit shared by Rust and Python workers. * [validate_callback_request](/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-validate-callback-request): Reject mismatched callback metadata; named limits require the updated host. * [worker_max_message_bytes_from_env](/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-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](/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-worker-max-message-bytes-from-env-with-default): Reads the host override, falling back to a plugin's execution-message default. ## Docs - [Module v1](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1.md): Generated protobuf and gRPC service definitions. - [v1](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/llms.txt): section index (llms.txt) listing 100 pages - [diagnostic_code_definition](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/diagnostic_code_definition/llms.txt): section index (llms.txt) listing 1 page - [diagnostic_submission](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/diagnostic_submission/llms.txt): section index (llms.txt) listing 1 page - [invoke_request](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/invoke_request/llms.txt): section index (llms.txt) listing 1 page - [invoke_response](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/invoke_response/llms.txt): section index (llms.txt) listing 1 page - [llm_invocation](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/llm_invocation/llms.txt): section index (llms.txt) listing 1 page - [plugin_worker_client](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/plugin_worker_client/llms.txt): section index (llms.txt) listing 1 page - [plugin_worker_server](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/plugin_worker_server/llms.txt): section index (llms.txt) listing 3 pages - [relay_diagnostics_client](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/relay_diagnostics_client/llms.txt): section index (llms.txt) listing 1 page - [relay_diagnostics_server](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/relay_diagnostics_server/llms.txt): section index (llms.txt) listing 3 pages - [relay_host_runtime_client](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/relay_host_runtime_client/llms.txt): section index (llms.txt) listing 1 page - [relay_host_runtime_server](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/relay_host_runtime_server/llms.txt): section index (llms.txt) listing 3 pages - [stream_chunk](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/v1/stream_chunk/llms.txt): section index (llms.txt) listing 1 page - [Struct Callback Message Limit Service](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/struct-callbackmessagelimitservice.md): Select a generated tonic server's codec limits before decoding each RPC body. - [Struct Worker Callback Message Limits](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/struct-workercallbackmessagelimits.md): Resolved worker transport limits shared by the host and maintained SDKs. - [Struct Worker Callback Metadata](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/struct-workercallbackmetadata.md): Metadata interceptor for callback-scoped worker-to-host runtime calls. - [Constant DEFAULT_WORKER_MAX_MESSAGE_BYTES](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-default-worker-max-message-bytes.md): Preserve the gRPC libraries' default receive limit unless explicitly configured. - [Constant DIAGNOSTIC_NOT_CONSUMED_METADATA](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-diagnostic-not-consumed-metadata.md): Metadata set to `1` on a diagnostic admission rejection before execution. This certifies only that attempt; an earlier lost reply can still be uncertain. - [Constant DOWNSTREAM_CONTINUATION_METADATA](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-downstream-continuation-metadata.md): Continuation provenance for an error returned as gRPC status metadata. Used for stream-opening failures, where no `WorkerError` envelope is returned. - [Constant WORKER_CALLBACK_METADATA](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-worker-callback-metadata.md): Binary metadata preserves exact UTF-8 registration names before body decoding. - [Constant WORKER_MAX_MESSAGE_BYTES_BY_NAME_ENV](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-worker-max-message-bytes-by-name-env.md): Host overrides keyed by exact callback registration name, as a JSON byte-limit map. - [Constant WORKER_MAX_MESSAGE_BYTES_ENV](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-worker-max-message-bytes-env.md): Host-owned limit for a complete worker execution gRPC message, in bytes. - [Constant WORKER_PROTOCOL_GRPC_V1](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/constant-worker-protocol-grpc-v1.md): Stable worker protocol identifier accepted by `compat.worker_protocol`. - [Function callback_name](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-callback-name.md): Read callback identity independently of an RPC method name. - [Function callback_request](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-callback-request.md): Attach an invocation's registered callback name to a request. - [Function decode_json_envelope](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-decode-json-envelope.md): Decodes a JSON envelope into the requested DTO type. - [Function decode_json_value](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-decode-json-value.md): Decodes a lossless protocol JSON value into the requested type. - [Function json_envelope](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-json-envelope.md): Creates a JSON envelope from a serializable DTO. - [Function json_value](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-json-value.md): Creates a lossless protocol JSON value from a serializable value. - [Function parse_worker_max_message_bytes](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-parse-worker-max-message-bytes.md): Parses the positive decimal byte limit shared by Rust and Python workers. - [Function validate_callback_request](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-validate-callback-request.md): Reject mismatched callback metadata; named limits require the updated host. - [Function worker_max_message_bytes_from_env](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-worker-max-message-bytes-from-env.md): Reads the worker message limit once when creating a host activation or worker. - [Function worker_max_message_bytes_from_env_with_default](https://docs.nvidia.com/nemo/relay/v0.11.3/reference/api/rust-library-reference/nemo-relay-worker-proto/fn-worker-max-message-bytes-from-env-with-default.md): Reads the host override, falling back to a plugin's execution-message default.