> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server. # nemo-relay-plugin > Stable native plugin ABI and Rust authoring helpers for NeMo Relay. 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`. Stable native plugin ABI and Rust authoring helpers for NeMo Relay. This crate intentionally does not depend on the `nemo-relay` runtime crate. Native plugins built with it communicate with a host through versioned C-compatible tables and host-owned string handles. ## Macros * [nemo\_relay\_plugin](/reference/api/rust-library-reference/nemo-relay-plugin/macro-nemo-relay-plugin): Exports a concrete plugin constructor as a native plugin entry symbol body. ## Structs * [AnnotatedLlmRequest](/reference/api/rust-library-reference/nemo-relay-plugin/struct-annotatedllmrequest): Structured view of an LLM request, produced by a Codec from opaque [`LlmRequest`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmrequest) content. * [AnnotatedLlmResponse](/reference/api/rust-library-reference/nemo-relay-plugin/struct-annotatedllmresponse): Structured view of an LLM response, produced by a response codec from raw JSON API output. * [CategoryProfile](/reference/api/rust-library-reference/nemo-relay-plugin/struct-categoryprofile): Category-specific profile data. * [ConfigDiagnostic](/reference/api/rust-library-reference/nemo-relay-plugin/struct-configdiagnostic): Structured validation diagnostic for plugin validation. * [EventCategory](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory): Semantic category carried by ATOF `category`. * [LlmAttributes](/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmattributes): Bitflags that modify LLM-call behavior and observability. * [LlmNext](/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmnext): Typed continuation passed to LLM execution intercepts. * [LlmRequest](/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmrequest): JSON-shaped LLM request payload passed through the runtime. * [LlmRequestInterceptOutcome](/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmrequestinterceptoutcome): Result of an LLM request intercept that can schedule lifecycle marks. * [LlmStream](/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmstream): Host- or plugin-owned stream returned across the native LLM stream ABI. * [LlmStreamNext](/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmstreamnext): Typed continuation passed to LLM stream execution intercepts. * [NemoRelayNativeHostApiV1](/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativehostapiv1): Versioned host API table passed to native plugin entry symbols. * [NemoRelayNativeLlmStreamV1](/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativellmstreamv1): Native LLM JSON stream handle table. * [NemoRelayNativePluginContext](/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativeplugincontext): Opaque plugin registration context borrowed from the host during registration. * [NemoRelayNativePluginV1](/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativepluginv1): Versioned plugin descriptor returned by native plugin entry symbols. * [NemoRelayNativeScopeHandle](/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativescopehandle): Opaque host-owned scope handle. * [NemoRelayNativeScopeStack](/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativescopestack): Opaque host-owned scope stack handle. * [NemoRelayNativeScopeStackBinding](/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativescopestackbinding): Opaque host-owned captured scope-stack binding. * [NemoRelayNativeString](/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativestring): Opaque host-owned UTF-8 string or JSON byte buffer. * [PendingMarkSpec](/reference/api/rust-library-reference/nemo-relay-plugin/struct-pendingmarkspec): Mark requested by middleware for materialization by a lifecycle owner. * [PluginContext](/reference/api/rust-library-reference/nemo-relay-plugin/struct-plugincontext): Borrowed safe wrapper around a host plugin registration context. * [PluginRuntime](/reference/api/rust-library-reference/nemo-relay-plugin/struct-pluginruntime): Cloneable high-level runtime handle for host APIs available to native plugins. * [ScopeAttributes](/reference/api/rust-library-reference/nemo-relay-plugin/struct-scopeattributes): Bitflags that modify scope behavior and observability. * [ScopeGuard](/reference/api/rust-library-reference/nemo-relay-plugin/struct-scopeguard): RAII guard for a host scope opened by [`PluginRuntime::scope`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-pluginruntime). * [ScopeHandle](/reference/api/rust-library-reference/nemo-relay-plugin/struct-scopehandle): Host-owned scope handle returned by native scope APIs. * [ScopeStack](/reference/api/rust-library-reference/nemo-relay-plugin/struct-scopestack): Host-owned isolated scope stack returned by native scope-stack APIs. * [ScopeStackBinding](/reference/api/rust-library-reference/nemo-relay-plugin/struct-scopestackbinding): Captured thread-local scope-stack binding. * [ThreadScopeStackGuard](/reference/api/rust-library-reference/nemo-relay-plugin/struct-threadscopestackguard): RAII guard that restores the previous thread-local scope stack on drop. * [ToolAttributes](/reference/api/rust-library-reference/nemo-relay-plugin/struct-toolattributes): Bitflags that modify tool-call behavior and observability. * [ToolExecutionInterceptOutcome](/reference/api/rust-library-reference/nemo-relay-plugin/struct-toolexecutioninterceptoutcome): Canonical result returned by a tool execution intercept. * [ToolNext](/reference/api/rust-library-reference/nemo-relay-plugin/struct-toolnext): Typed continuation passed to tool execution intercepts. ## Enums * [DiagnosticLevel](/reference/api/rust-library-reference/nemo-relay-plugin/enum-diagnosticlevel): Diagnostic severity returned by plugin validation. * [Event](/reference/api/rust-library-reference/nemo-relay-plugin/enum-event): Tagged union covering the two ATOF event kinds emitted by the runtime. * [HandleAttributes](/reference/api/rust-library-reference/nemo-relay-plugin/enum-handleattributes): Attribute bitflags attached to a concrete handle kind. * [NemoRelayNativeScopeType](/reference/api/rust-library-reference/nemo-relay-plugin/enum-nemorelaynativescopetype): Scope category used by native plugins when opening scopes. * [NemoRelayStatus](/reference/api/rust-library-reference/nemo-relay-plugin/enum-nemorelaystatus): Status codes returned by stable native ABI functions. * [ScopeCategory](/reference/api/rust-library-reference/nemo-relay-plugin/enum-scopecategory): Agent Trajectory Observability Format (ATOF) lifecycle phase for a scope event. * [ScopeType](/reference/api/rust-library-reference/nemo-relay-plugin/enum-scopetype): Semantic category attached to a scope lifecycle span. ## Constants * [NEMO\_RELAY\_NATIVE\_ABI\_VERSION](/reference/api/rust-library-reference/nemo-relay-plugin/constant-nemo-relay-native-abi-version): Native plugin ABI version supported by this crate. ## Traits * [NativePlugin](/reference/api/rust-library-reference/nemo-relay-plugin/trait-nativeplugin): Trait implemented by Rust native plugins. ## Functions * [capture\_scope\_stack\_thread](/reference/api/rust-library-reference/nemo-relay-plugin/fn-capture-scope-stack-thread): Captures the current thread-local scope-stack binding. * [create\_scope\_stack](/reference/api/rust-library-reference/nemo-relay-plugin/fn-create-scope-stack): Creates a new independent scope stack. * [current\_scope](/reference/api/rust-library-reference/nemo-relay-plugin/fn-current-scope): Retrieves the current scope handle. * [emit\_mark](/reference/api/rust-library-reference/nemo-relay-plugin/fn-emit-mark): Emits a mark event under the current scope. * [export\_plugin](/reference/api/rust-library-reference/nemo-relay-plugin/fn-export-plugin): Initializes a native plugin descriptor for a Rust SDK plugin value. * [pop\_scope](/reference/api/rust-library-reference/nemo-relay-plugin/fn-pop-scope): Pops a scope and emits its end event. * [push\_scope](/reference/api/rust-library-reference/nemo-relay-plugin/fn-push-scope): Pushes a scope and emits its start event. ## Type Aliases * [Json](/reference/api/rust-library-reference/nemo-relay-plugin/type-json): Type alias for [`serde_json::Value`](https://docs.rs/serde_json/1.0.149/serde_json/value/enum.Value.html), used as the universal JSON representation throughout NeMo Relay APIs. * [LlmJsonStream](/reference/api/rust-library-reference/nemo-relay-plugin/type-llmjsonstream): Synchronous JSON chunk stream used by native LLM stream intercept helpers. * [NemoRelayNativeEventSubscriberCb](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativeeventsubscribercb): Native event subscriber callback. * [NemoRelayNativeFreeFn](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativefreefn): Optional destructor for user data captured by native callbacks. * [NemoRelayNativeJsonCb](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativejsoncb): Native JSON transform callback for LLM response sanitizers. * [NemoRelayNativeLlmConditionalCb](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmconditionalcb): Native LLM conditional-execution callback. * [NemoRelayNativeLlmExecutionCb](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmexecutioncb): Native LLM execution intercept callback. * [NemoRelayNativeLlmNextFn](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmnextfn): Runtime-provided continuation for LLM execution intercepts. * [NemoRelayNativeLlmRequestCb](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmrequestcb): Native LLM request transform callback for request sanitizers. * [NemoRelayNativeLlmRequestInterceptCb](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmrequestinterceptcb): Native LLM request intercept callback. * [NemoRelayNativeLlmStreamCancelFn](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmstreamcancelfn): Optional native stream cancellation callback. * [NemoRelayNativeLlmStreamDropFn](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmstreamdropfn): Optional native stream destructor callback. * [NemoRelayNativeLlmStreamExecutionCb](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmstreamexecutioncb): Native LLM stream execution intercept callback. * [NemoRelayNativeLlmStreamNextFn](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmstreamnextfn): Runtime-provided continuation for LLM stream execution intercepts. * [NemoRelayNativeLlmStreamPollFn](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmstreampollfn): Native stream poll callback. * [NemoRelayNativePluginDropFn](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativeplugindropfn): Native plugin drop callback. * [NemoRelayNativePluginEntry](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativepluginentry): Native entry symbol type loaded by the host. * [NemoRelayNativePluginRegisterFn](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativepluginregisterfn): Native plugin registration callback. * [NemoRelayNativePluginValidateFn](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativepluginvalidatefn): Native plugin validation callback. * [NemoRelayNativeToolConditionalCb](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativetoolconditionalcb): Native tool conditional-execution callback. * [NemoRelayNativeToolExecutionCb](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativetoolexecutioncb): Native tool execution intercept callback. * [NemoRelayNativeToolJsonCb](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativetooljsoncb): Native JSON transform callback for tool request/response sanitizers and tool request intercepts. * [NemoRelayNativeToolNextFn](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativetoolnextfn): Runtime-provided continuation for tool execution intercepts. * [NemoRelayNativeWithScopeStackCb](/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativewithscopestackcb): Native callback executed while a host scope stack is temporarily active. * [Result](/reference/api/rust-library-reference/nemo-relay-plugin/type-result): Result type used by the Rust native plugin SDK. > Stable native plugin ABI and Rust authoring helpers for NeMo Relay. ## Docs - [Macro nemo_relay_plugin](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/macro-nemo-relay-plugin.md): Exports a concrete plugin constructor as a native plugin entry symbol body. - [Struct Annotated LlmRequest](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-annotatedllmrequest.md): Structured view of an LLM request, produced by a Codec from opaque `LlmRequest` content. - [Struct Annotated LlmResponse](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-annotatedllmresponse.md): Structured view of an LLM response, produced by a response codec from raw JSON API output. - [Struct Category Profile](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-categoryprofile.md): Category-specific profile data. - [Struct Config Diagnostic](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-configdiagnostic.md): Structured validation diagnostic for plugin validation. - [Struct Event Category](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory.md): Semantic category carried by ATOF `category`. - [Struct LlmAttributes](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmattributes.md): Bitflags that modify LLM-call behavior and observability. - [Struct LlmNext](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmnext.md): Typed continuation passed to LLM execution intercepts. - [Struct LlmRequest](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmrequest.md): JSON-shaped LLM request payload passed through the runtime. - [Struct LlmRequest Intercept Outcome](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmrequestinterceptoutcome.md): Result of an LLM request intercept that can schedule lifecycle marks. - [Struct LlmStream](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmstream.md): Host- or plugin-owned stream returned across the native LLM stream ABI. - [Struct LlmStream Next](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-llmstreamnext.md): Typed continuation passed to LLM stream execution intercepts. - [Struct Nemo Relay Native Host ApiV1](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativehostapiv1.md): Versioned host API table passed to native plugin entry symbols. - [Struct Nemo Relay Native LlmStream V1](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativellmstreamv1.md): Native LLM JSON stream handle table. - [Struct Nemo Relay Native Plugin Context](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativeplugincontext.md): Opaque plugin registration context borrowed from the host during registration. - [Struct Nemo Relay Native Plugin V1](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativepluginv1.md): Versioned plugin descriptor returned by native plugin entry symbols. - [Struct Nemo Relay Native Scope Handle](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativescopehandle.md): Opaque host-owned scope handle. - [Struct Nemo Relay Native Scope Stack](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativescopestack.md): Opaque host-owned scope stack handle. - [Struct Nemo Relay Native Scope Stack Binding](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativescopestackbinding.md): Opaque host-owned captured scope-stack binding. - [Struct Nemo Relay Native String](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-nemorelaynativestring.md): Opaque host-owned UTF-8 string or JSON byte buffer. - [Struct Pending Mark Spec](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-pendingmarkspec.md): Mark requested by middleware for materialization by a lifecycle owner. - [Struct Plugin Context](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-plugincontext.md): Borrowed safe wrapper around a host plugin registration context. - [Struct Plugin Runtime](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-pluginruntime.md): Cloneable high-level runtime handle for host APIs available to native plugins. - [Struct Scope Attributes](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-scopeattributes.md): Bitflags that modify scope behavior and observability. - [Struct Scope Guard](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-scopeguard.md): RAII guard for a host scope opened by `PluginRuntime::scope`. - [Struct Scope Handle](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-scopehandle.md): Host-owned scope handle returned by native scope APIs. - [Struct Scope Stack](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-scopestack.md): Host-owned isolated scope stack returned by native scope-stack APIs. - [Struct Scope Stack Binding](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-scopestackbinding.md): Captured thread-local scope-stack binding. - [Struct Thread Scope Stack Guard](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-threadscopestackguard.md): RAII guard that restores the previous thread-local scope stack on drop. - [Struct Tool Attributes](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-toolattributes.md): Bitflags that modify tool-call behavior and observability. - [Struct Tool Execution Intercept Outcome](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-toolexecutioninterceptoutcome.md): Canonical result returned by a tool execution intercept. - [Struct Tool Next](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/struct-toolnext.md): Typed continuation passed to tool execution intercepts. - [Enum Diagnostic Level](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/enum-diagnosticlevel.md): Diagnostic severity returned by plugin validation. - [Enum Event](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/enum-event.md): Tagged union covering the two ATOF event kinds emitted by the runtime. - [Enum Handle Attributes](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/enum-handleattributes.md): Attribute bitflags attached to a concrete handle kind. - [Enum Nemo Relay Native Scope Type](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/enum-nemorelaynativescopetype.md): Scope category used by native plugins when opening scopes. - [Enum Nemo Relay Status](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/enum-nemorelaystatus.md): Status codes returned by stable native ABI functions. - [Enum Scope Category](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/enum-scopecategory.md): Agent Trajectory Observability Format (ATOF) lifecycle phase for a scope event. - [Enum Scope Type](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/enum-scopetype.md): Semantic category attached to a scope lifecycle span. - [Constant NEMO_RELAY_NATIVE_ABI_VERSION](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/constant-nemo-relay-native-abi-version.md): Native plugin ABI version supported by this crate. - [Trait Native Plugin](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/trait-nativeplugin.md): Trait implemented by Rust native plugins. - [Function capture_scope_stack_thread](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/fn-capture-scope-stack-thread.md): Captures the current thread-local scope-stack binding. - [Function create_scope_stack](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/fn-create-scope-stack.md): Creates a new independent scope stack. - [Function current_scope](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/fn-current-scope.md): Retrieves the current scope handle. - [Function emit_mark](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/fn-emit-mark.md): Emits a mark event under the current scope. - [Function export_plugin](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/fn-export-plugin.md): Initializes a native plugin descriptor for a Rust SDK plugin value. - [Function pop_scope](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/fn-pop-scope.md): Pops a scope and emits its end event. - [Function push_scope](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/fn-push-scope.md): Pushes a scope and emits its start event. - [Type Alias Json](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-json.md): Type alias for `serde_json::Value`, used as the universal JSON representation throughout NeMo Relay APIs. - [Type Alias LlmJson Stream](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-llmjsonstream.md): Synchronous JSON chunk stream used by native LLM stream intercept helpers. - [Type Alias Nemo Relay Native Event Subscriber Cb](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativeeventsubscribercb.md): Native event subscriber callback. - [Type Alias Nemo Relay Native Free Fn](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativefreefn.md): Optional destructor for user data captured by native callbacks. - [Type Alias Nemo Relay Native Json Cb](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativejsoncb.md): Native JSON transform callback for LLM response sanitizers. - [Type Alias Nemo Relay Native LlmConditional Cb](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmconditionalcb.md): Native LLM conditional-execution callback. - [Type Alias Nemo Relay Native LlmExecution Cb](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmexecutioncb.md): Native LLM execution intercept callback. - [Type Alias Nemo Relay Native LlmNext Fn](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmnextfn.md): Runtime-provided continuation for LLM execution intercepts. - [Type Alias Nemo Relay Native LlmRequest Cb](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmrequestcb.md): Native LLM request transform callback for request sanitizers. - [Type Alias Nemo Relay Native LlmRequest Intercept Cb](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmrequestinterceptcb.md): Native LLM request intercept callback. - [Type Alias Nemo Relay Native LlmStream Cancel Fn](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmstreamcancelfn.md): Optional native stream cancellation callback. - [Type Alias Nemo Relay Native LlmStream Drop Fn](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmstreamdropfn.md): Optional native stream destructor callback. - [Type Alias Nemo Relay Native LlmStream Execution Cb](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmstreamexecutioncb.md): Native LLM stream execution intercept callback. - [Type Alias Nemo Relay Native LlmStream Next Fn](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmstreamnextfn.md): Runtime-provided continuation for LLM stream execution intercepts. - [Type Alias Nemo Relay Native LlmStream Poll Fn](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativellmstreampollfn.md): Native stream poll callback. - [Type Alias Nemo Relay Native Plugin Drop Fn](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativeplugindropfn.md): Native plugin drop callback. - [Type Alias Nemo Relay Native Plugin Entry](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativepluginentry.md): Native entry symbol type loaded by the host. - [Type Alias Nemo Relay Native Plugin Register Fn](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativepluginregisterfn.md): Native plugin registration callback. - [Type Alias Nemo Relay Native Plugin Validate Fn](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativepluginvalidatefn.md): Native plugin validation callback. - [Type Alias Nemo Relay Native Tool Conditional Cb](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativetoolconditionalcb.md): Native tool conditional-execution callback. - [Type Alias Nemo Relay Native Tool Execution Cb](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativetoolexecutioncb.md): Native tool execution intercept callback. - [Type Alias Nemo Relay Native Tool Json Cb](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativetooljsoncb.md): Native JSON transform callback for tool request/response sanitizers and tool request intercepts. - [Type Alias Nemo Relay Native Tool Next Fn](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativetoolnextfn.md): Runtime-provided continuation for tool execution intercepts. - [Type Alias Nemo Relay Native With Scope Stack Cb](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-nemorelaynativewithscopestackcb.md): Native callback executed while a host scope stack is temporarily active. - [Type Alias Result](https://docs.nvidia.com/nemo/relay/v0.5.0/reference/api/rust-library-reference/nemo-relay-plugin/type-result.md): Result type used by the Rust native plugin SDK.