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.

Shared in-process plugin contracts, stable native ABI, and Rust authoring helpers.

This crate intentionally does not depend on the nemo-relay runtime crate. Native plugins built with it communicate with a host through versioned checked ABI-safe values and foreign futures.

Re-exports

  • pub use nemo_relay_plugin_abi as abi;

Modules

  • abi_value: Lossless SDK JSON conversions. Typed JSON conversion without encoding or parsing JSON text.
  • component: Shared built-in component contracts. In-process plugin contracts shared by built-in components and runtime hosts.
  • diagnostics: Diagnostic submission and authorized reads. Native diagnostic authoring and explicitly authorized canonical reads. Recording is synchronous, state-only, and independent of operational logs. Disabled/unsupported facades skip factories. Diagnostic errors must not be propagated as plugin execution failures unless the application chooses so.

Macros

  • nemo_relay_checked_plugin: Export a native plugin with SDK-derived checked contract metadata.
  • nemo_relay_plugin: Export a checked native plugin with its SDK-required contract version.
  • relay_debug: Emit a formatted debug-level native-plugin record through the Relay host.
  • relay_error: Emit a formatted error-level native-plugin record through the Relay host.
  • relay_info: Emit a formatted info-level native-plugin record through the Relay host.
  • relay_trace: Emit a formatted trace-level native-plugin record through the Relay host.
  • relay_warn: Emit a formatted warn-level native-plugin record through the Relay host.

Structs

Enums

  • BuiltinLlmCodec: Relay’s built-in LLM codec identities.
  • ContentSelection: Selection applied before extraction. Invalid source/selection pairs are errors.
  • ContentSource: Borrowed normalized input for content inspection; no provider decoding occurs.
  • DiagnosticLevel: Severity of a plugin configuration or activation diagnostic.
  • Event: Tagged union covering the two ATOF event kinds emitted by the runtime.
  • HandleAttributes: Attribute bitflags attached to a concrete handle kind.
  • LlmCodecIdentity: Per-call LLM codec identity supplied to sanitizer and SDK callbacks.
  • LlmOptimizationEvidenceQuality: Whether token evidence was observed directly or estimated.
  • LlmOptimizationSummaryStatus: Completeness of close-time optimization accounting.
  • LogSeverity: Severity attached to a mark that may be projected as an OpenTelemetry log.
  • MetricKind: OpenTelemetry instrument kind represented by a metric measurement mark.
  • MetricValueType: Numeric representation used by a metric measurement.
  • PluginError: Error type for generic plugin operations.
  • PluginLogLevel: Operational log severity routed through the component runtime.
  • RuntimeRegistrationKind: A global runtime registration surface that can be selected by a conditional middleware guardrail.
  • RuntimeRegistrationOwnerKind: The owner category reported for a global runtime registration.
  • ScopeCategory: Agent Trajectory Observability Format (ATOF) lifecycle phase for a scope event.
  • ScopeType: Semantic category attached to a scope lifecycle span.

Constants

Traits

Functions

  • http_error_message: Formats an upstream HTTP error for transport through string-based plugin callbacks.

Type Aliases