Enum Nemo Relay Native Async Middleware Kind

View as Markdown

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.

#[repr(u32)]pub enum NemoRelayNativeAsyncMiddlewareKind {
Show 15 variants ToolSanitizeRequest = 0,
ToolSanitizeResponse = 1,
ToolConditionalExecution = 2,
ToolRequestIntercept = 3,
ToolExecutionIntercept = 4,
LlmSanitizeRequest = 5,
LlmSanitizeResponse = 6,
LlmConditionalExecution = 7,
LlmRequestIntercept = 8,
LlmExecutionIntercept = 9,
LlmStreamExecutionIntercept = 10,
MarkSanitize = 11,
ScopeSanitizeStart = 12,
ScopeSanitizeEnd = 13,
EventMetadataInjector = 14,
}

Middleware surface selected by the native async registration hook.

The host only exposes this through the ABI-v3 extension table. It keeps every asynchronous callback shape uniform while allowing the host to deserialize the surface-specific invocation and result payloads.

Variants

ToolSanitizeRequest = 0

ToolSanitizeRequest = 0

Tool start-event request sanitizer.

ToolSanitizeResponse = 1

ToolSanitizeResponse = 1

Tool end-event response sanitizer.

ToolConditionalExecution = 2

ToolConditionalExecution = 2

Tool execution admission guardrail.

ToolRequestIntercept = 3

ToolRequestIntercept = 3

Tool request rewrite intercept.

ToolExecutionIntercept = 4

ToolExecutionIntercept = 4

Tool execution intercept with a continuation.

LlmSanitizeRequest = 5

LlmSanitizeRequest = 5

LLM start-event request sanitizer.

LlmSanitizeResponse = 6

LlmSanitizeResponse = 6

LLM end-event response sanitizer.

LlmConditionalExecution = 7

LlmConditionalExecution = 7

LLM execution admission guardrail.

LlmRequestIntercept = 8

LlmRequestIntercept = 8

LLM request rewrite intercept.

LlmExecutionIntercept = 9

LlmExecutionIntercept = 9

LLM execution intercept with a continuation.

LlmStreamExecutionIntercept = 10

LlmStreamExecutionIntercept = 10

Reserved legacy discriminant for streaming LLM execution intercepts.

Hosts reject this kind from the generic completion-based registration hook. Use plugin_context_register_async_stream_middleware so chunks remain incremental.

MarkSanitize = 11

MarkSanitize = 11

Mark event sanitizer.

ScopeSanitizeStart = 12

ScopeSanitizeStart = 12

Scope-start event sanitizer.

ScopeSanitizeEnd = 13

ScopeSanitizeEnd = 13

Scope-end event sanitizer.

EventMetadataInjector = 14

EventMetadataInjector = 14

Event metadata injector.

Trait Implementations

impl Clone for NemoRelayNativeAsyncMiddlewareKind

impl Clone for NemoRelayNativeAsyncMiddlewareKind

clone

fn clone(&self) -> NemoRelayNativeAsyncMiddlewareKind

clone_from

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

impl Debug for NemoRelayNativeAsyncMiddlewareKind

impl Debug for NemoRelayNativeAsyncMiddlewareKind

fmt

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

impl PartialEq for NemoRelayNativeAsyncMiddlewareKind

impl PartialEq for NemoRelayNativeAsyncMiddlewareKind

eq

fn eq(&self, other: &NemoRelayNativeAsyncMiddlewareKind) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl TryFrom<u32> for NemoRelayNativeAsyncMiddlewareKind

impl TryFrom<u32> for NemoRelayNativeAsyncMiddlewareKind

Error

type Error = ()

try_from

fn try_from(value: u32) -> Result<Self, Self::Error>

impl Copy for NemoRelayNativeAsyncMiddlewareKind

impl Copy for NemoRelayNativeAsyncMiddlewareKind

impl Eq for NemoRelayNativeAsyncMiddlewareKind

impl Eq for NemoRelayNativeAsyncMiddlewareKind

impl StructuralPartialEq for NemoRelayNativeAsyncMiddlewareKind

impl StructuralPartialEq for NemoRelayNativeAsyncMiddlewareKind