> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct Relay Host Runtime Client

> API documentation for the Rust `RelayHostRuntimeClient` struct in crate `nemo_relay_worker_proto`.

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`.

```rust
pub struct RelayHostRuntimeClient<T> { /* private fields */ }
```

## Implementations

### `impl RelayHostRuntimeClient<Channel>`

<pre />

#### `connect`

<pre />

Attempt to create a new client by connecting to a given endpoint.

### `impl<T> RelayHostRuntimeClient<T>where T: GrpcService<Body>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,`

<pre />

#### `new`

<pre />

#### `with_origin`

<pre />

#### `with_interceptor`

<pre />

#### `send_compressed`

<pre />

Compress requests with the given encoding.

This requires the server to support it otherwise it might respond with an error.

#### `accept_compressed`

<pre />

Enable decompressing responses.

#### `max_decoding_message_size`

<pre />

Limits the maximum size of a decoded message.

Default: `4MB`

#### `max_encoding_message_size`

<pre />

Limits the maximum size of an encoded message.

Default: `usize::MAX`

#### `emit_mark`

<pre />

#### `push_scope`

<pre />

#### `pop_scope`

<pre />

#### `create_scope_stack`

<pre />

#### `drop_scope_stack`

<pre />

#### `tool_next`

<pre />

#### `llm_next`

<pre />

#### `llm_stream_next`

<pre />

## Trait Implementations

### `impl<T: Clone> Clone for RelayHostRuntimeClient<T>`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl<T: Debug> Debug for RelayHostRuntimeClient<T>`

<pre />

#### `fmt`

<pre />