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 trait RelayHostRuntimeService:
    Send
    + Sync
    + 'static {
    type LlmStreamNextStream: Stream<Item = Result<LlmStreamNextResponse, Status>> + Send + 'static;
​
Show 17 methods    // Required methods
    fn log<'life0, 'async_trait>(
        &'life0 self,
        request: Request<LogRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<LogResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn emit_mark<'life0, 'async_trait>(
        &'life0 self,
        request: Request<EmitMarkRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<EmitMarkResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_current_scope_stack_snapshot<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCurrentScopeStackSnapshotRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetCurrentScopeStackSnapshotResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_runtime_diagnostics<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetRuntimeDiagnosticsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetRuntimeDiagnosticsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn push_scope<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PushScopeRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PushScopeResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn pop_scope<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PopScopeRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PopScopeResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_scope_stack<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreateScopeStackRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CreateScopeStackResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn drop_scope_stack<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DropScopeStackRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DropScopeStackResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn tool_next<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ToolNextRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ToolNextResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn llm_next<'life0, 'async_trait>(
        &'life0 self,
        request: Request<LlmNextRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<LlmNextResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn llm_stream_next<'life0, 'async_trait>(
        &'life0 self,
        request: Request<LlmStreamNextRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::LlmStreamNextStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn decode_llm_codec_request<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DecodeLlmCodecRequestRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DecodeLlmCodecRequestResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn encode_llm_codec_request<'life0, 'async_trait>(
        &'life0 self,
        request: Request<EncodeLlmCodecRequestRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<EncodeLlmCodecRequestResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn decode_llm_codec_response<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DecodeLlmCodecResponseRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DecodeLlmCodecResponseResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_runtime_registrations<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListRuntimeRegistrationsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListRuntimeRegistrationsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn register_conditional_middleware_guardrail<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RegisterConditionalMiddlewareGuardrailRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RegisterConditionalMiddlewareGuardrailResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn deregister_conditional_middleware_guardrail<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeregisterConditionalMiddlewareGuardrailRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DeregisterConditionalMiddlewareGuardrailResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Generated trait containing gRPC methods that should be implemented for use with RelayHostRuntimeServiceServer.

Required Associated Types

LlmStreamNextStream

type LlmStreamNextStream: Stream<Item = Result<LlmStreamNextResponse, Status>> + Send + 'static

Server streaming response type for the LlmStreamNext method.

Required Methods

log

fn log<'life0, 'async_trait>(
    &'life0 self,
    request: Request<LogRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<LogResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

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

emit_mark

fn emit_mark<'life0, 'async_trait>(
    &'life0 self,
    request: Request<EmitMarkRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<EmitMarkResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

Materializes a pending mark under the selected host scope context.

get_current_scope_stack_snapshot

fn get_current_scope_stack_snapshot<'life0, 'async_trait>(
    &'life0 self,
    request: Request<GetCurrentScopeStackSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetCurrentScopeStackSnapshotResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

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

get_runtime_diagnostics

fn get_runtime_diagnostics<'life0, 'async_trait>(
    &'life0 self,
    request: Request<GetRuntimeDiagnosticsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetRuntimeDiagnosticsResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

Returns bounded operational diagnostic counters for the active host.

push_scope

fn push_scope<'life0, 'async_trait>(
    &'life0 self,
    request: Request<PushScopeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PushScopeResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

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

pop_scope

fn pop_scope<'life0, 'async_trait>(
    &'life0 self,
    request: Request<PopScopeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PopScopeResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

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

create_scope_stack

fn create_scope_stack<'life0, 'async_trait>(
    &'life0 self,
    request: Request<CreateScopeStackRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateScopeStackResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

Creates an isolated activation-owned scope stack.

drop_scope_stack

fn drop_scope_stack<'life0, 'async_trait>(
    &'life0 self,
    request: Request<DropScopeStackRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DropScopeStackResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

Releases an isolated activation-owned scope stack.

tool_next

fn tool_next<'life0, 'async_trait>(
    &'life0 self,
    request: Request<ToolNextRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ToolNextResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

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

llm_next

fn llm_next<'life0, 'async_trait>(
    &'life0 self,
    request: Request<LlmNextRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<LlmNextResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

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

llm_stream_next

fn llm_stream_next<'life0, 'async_trait>(
    &'life0 self,
    request: Request<LlmStreamNextRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::LlmStreamNextStream>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

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

decode_llm_codec_request

fn decode_llm_codec_request<'life0, 'async_trait>(
    &'life0 self,
    request: Request<DecodeLlmCodecRequestRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DecodeLlmCodecRequestResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

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

encode_llm_codec_request

fn encode_llm_codec_request<'life0, 'async_trait>(
    &'life0 self,
    request: Request<EncodeLlmCodecRequestRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<EncodeLlmCodecRequestResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

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

decode_llm_codec_response

fn decode_llm_codec_response<'life0, 'async_trait>(
    &'life0 self,
    request: Request<DecodeLlmCodecResponseRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DecodeLlmCodecResponseResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

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

list_runtime_registrations

fn list_runtime_registrations<'life0, 'async_trait>(
    &'life0 self,
    request: Request<ListRuntimeRegistrationsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListRuntimeRegistrationsResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

Lists visible runtime registrations, optionally filtered by recognized surfaces.

register_conditional_middleware_guardrail

fn register_conditional_middleware_guardrail<'life0, 'async_trait>(
    &'life0 self,
    request: Request<RegisterConditionalMiddlewareGuardrailRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RegisterConditionalMiddlewareGuardrailResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

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

deregister_conditional_middleware_guardrail

fn deregister_conditional_middleware_guardrail<'life0, 'async_trait>(
    &'life0 self,
    request: Request<DeregisterConditionalMiddlewareGuardrailRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeregisterConditionalMiddlewareGuardrailResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,

Idempotently removes an activation-owned conditional middleware filter.

Implementors