Skip to navigation

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.

pub struct RelayHostRuntimeServiceClient<T> { /* private fields */ }

Authenticated host runtime operations for scope, continuation, codec, and registration access.

Implementations

impl RelayHostRuntimeServiceClient<Channel>

impl RelayHostRuntimeServiceClient<Channel>

connect

pub async fn connect<D>(dst: D) -> Result<Self, Error>where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>,

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

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

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

new

pub fn new(inner: T) -> Self

with_origin

pub fn with_origin(inner: T, origin: Uri) -> Self

with_interceptor

pub fn with_interceptor<F>(
    inner: T,
    interceptor: F,
) -> RelayHostRuntimeServiceClient<InterceptedService<T, F>>where
    F: Interceptor,
    T::ResponseBody: Default,
    T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>,
    <T as Service<Request<Body>>>::Error: Into<StdError> + Send + Sync,

send_compressed

pub fn send_compressed(self, encoding: CompressionEncoding) -> Self

Compress requests with the given encoding.

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

accept_compressed

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

max_decoding_message_size

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

max_encoding_message_size

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

log

pub async fn log(
    &mut self,
    request: impl IntoRequest<LogRequest>,
) -> Result<Response<LogResponse>, Status>

Submits a process-log record to the host-owned sink and filtering policy.

emit_mark

pub async fn emit_mark(
    &mut self,
    request: impl IntoRequest<EmitMarkRequest>,
) -> Result<Response<EmitMarkResponse>, Status>

Materializes a pending mark under the selected host scope context.

get_current_scope_stack_snapshot

pub async fn get_current_scope_stack_snapshot(
    &mut self,
    request: impl IntoRequest<GetCurrentScopeStackSnapshotRequest>,
) -> Result<Response<GetCurrentScopeStackSnapshotResponse>, Status>

Returns owned root-to-top scope identities or explicit absence of bound context.

get_runtime_diagnostics

pub async fn get_runtime_diagnostics(
    &mut self,
    request: impl IntoRequest<GetRuntimeDiagnosticsRequest>,
) -> Result<Response<GetRuntimeDiagnosticsResponse>, Status>

Returns bounded operational diagnostic counters for the active host.

push_scope

pub async fn push_scope(
    &mut self,
    request: impl IntoRequest<PushScopeRequest>,
) -> Result<Response<PushScopeResponse>, Status>

Creates and binds a scope under the selected stack and parent.

pop_scope

pub async fn pop_scope(
    &mut self,
    request: impl IntoRequest<PopScopeRequest>,
) -> Result<Response<PopScopeResponse>, Status>

Closes an owned scope handle with optional output, metadata, and explicit time.

create_scope_stack

pub async fn create_scope_stack(
    &mut self,
    request: impl IntoRequest<CreateScopeStackRequest>,
) -> Result<Response<CreateScopeStackResponse>, Status>

Creates an isolated activation-owned scope stack.

drop_scope_stack

pub async fn drop_scope_stack(
    &mut self,
    request: impl IntoRequest<DropScopeStackRequest>,
) -> Result<Response<DropScopeStackResponse>, Status>

Releases an isolated activation-owned scope stack.

tool_next

pub async fn tool_next(
    &mut self,
    request: impl IntoRequest<ToolNextRequest>,
) -> Result<Response<ToolNextResponse>, Status>

Calls the current tool continuation and preserves its original downstream failure identity.

llm_next

pub async fn llm_next(
    &mut self,
    request: impl IntoRequest<LlmNextRequest>,
) -> Result<Response<LlmNextResponse>, Status>

Calls the current unary LLM continuation and preserves its original downstream failure identity.

llm_stream_next

pub async fn llm_stream_next(
    &mut self,
    request: impl IntoRequest<LlmStreamNextRequest>,
) -> Result<Response<Streaming<LlmStreamNextResponse>>, Status>

Opens the current streaming LLM continuation; one error item terminates delivery.

decode_llm_codec_request

pub async fn decode_llm_codec_request(
    &mut self,
    request: impl IntoRequest<DecodeLlmCodecRequestRequest>,
) -> Result<Response<DecodeLlmCodecRequestResponse>, Status>

Decodes a provider request through the current invocation’s request codec capability.

encode_llm_codec_request

pub async fn encode_llm_codec_request(
    &mut self,
    request: impl IntoRequest<EncodeLlmCodecRequestRequest>,
) -> Result<Response<EncodeLlmCodecRequestResponse>, Status>

Encodes a normalized annotation relative to the original provider request baseline.

decode_llm_codec_response

pub async fn decode_llm_codec_response(
    &mut self,
    request: impl IntoRequest<DecodeLlmCodecResponseRequest>,
) -> Result<Response<DecodeLlmCodecResponseResponse>, Status>

Decodes a completed provider response through the invocation’s response codec.

list_runtime_registrations

pub async fn list_runtime_registrations(
    &mut self,
    request: impl IntoRequest<ListRuntimeRegistrationsRequest>,
) -> Result<Response<ListRuntimeRegistrationsResponse>, Status>

Lists visible runtime registrations, optionally filtered by recognized surfaces.

register_conditional_middleware_guardrail

pub async fn register_conditional_middleware_guardrail(
    &mut self,
    request: impl IntoRequest<RegisterConditionalMiddlewareGuardrailRequest>,
) -> Result<Response<RegisterConditionalMiddlewareGuardrailResponse>, Status>

Installs an activation-owned conditional middleware filter and returns its handle.

deregister_conditional_middleware_guardrail

pub async fn deregister_conditional_middleware_guardrail(
    &mut self,
    request: impl IntoRequest<DeregisterConditionalMiddlewareGuardrailRequest>,
) -> Result<Response<DeregisterConditionalMiddlewareGuardrailResponse>, Status>

Idempotently removes an activation-owned conditional middleware filter.

Trait Implementations

impl<T: Clone> Clone for RelayHostRuntimeServiceClient<T>

impl<T: Clone> Clone for RelayHostRuntimeServiceClient<T>

clone

fn clone(&self) -> RelayHostRuntimeServiceClient<T>

clone_from

fn clone_from(&mut self, source: &Self)

impl<T: Debug> Debug for RelayHostRuntimeServiceClient<T>

impl<T: Debug> Debug for RelayHostRuntimeServiceClient<T>

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result