Use this section when you want to package reusable NeMo Relay behavior as a plugin that can be activated from configuration.
Plugins are the configuration-driven packaging layer for shared runtime behavior. A plugin can validate component-local config, register middleware and subscribers through a component-scoped context, and rely on the plugin system to report diagnostics and roll back partial setup when activation fails.
Plugins prevent repeated registration code for policies, request transforms, exporters, and related runtime components. They give shared behavior a stable kind name, a structured config document, and a clear activation lifecycle.
Use these signals to decide whether this documentation path matches your current task.
If the behavior applies to only one request or tenant, consider scope-local middleware before turning it into a process-level plugin.
Use these guide links to move from the overview into task-specific instructions.
plugins.toml file discovery, precedence, merge behavior, and editor controls for the CLI gateway.PluginContext.PluginContext usage.nemo_guardrails component.Start by deciding which runtime surfaces the plugin owns: middleware, subscribers, or a combination of related runtime behavior. Define the smallest JSON-compatible config that can drive that behavior, validate it before registration, and keep external objects or callables out of the config document.
Use plugins for reusable process-level behavior. Keep request-specific behavior scope-local so it is cleaned up with the owning scope.