nemo-relay-tune-adaptive-config
by nvidia
Configure the NeMo Relay adaptive plugin component through the shared plugin system; use this skill for state, telemetry, adaptive_hints, tool_parallelism,…
npx skills add https://github.com/nvidia/nemo-relay --skill nemo-relay-tune-adaptive-configConfigure Adaptive Tuning
Use This When
Use this skill when an application already intends to use NeMo Relay adaptive features and needs the correct plugin configuration shape.
Do Not Use This When
Do not use this skill when the user only needs first-time instrumentation, request-specific middleware, or production trace debugging.
Embedded Configuration Model
- Adaptive tuning is a top-level plugin component with kind
adaptive. - The adaptive object contains
version,agent_id,state,telemetry,adaptive_hints,tool_parallelism,acg, andpolicy. - Wrap the adaptive object in an adaptive
ComponentSpec, insert it into the shared plugin configcomponentslist, validate the plugin config, then initialize the plugin system. - Python uses
nemo_relay.adaptive.AdaptiveConfig(...),nemo_relay.adaptive.ComponentSpec(...), andnemo_relay.plugin.PluginConfig(...). - Node.js uses
require("nemo-relay-node/adaptive")helpers such asdefaultConfig(),inMemoryBackend(),toolParallelismConfig(...), andComponentSpec(...), then activates throughnemo-relay-node/plugin. - Rust uses
nemo_relay_adaptive::{AdaptiveConfig, ComponentSpec, ...}andnemo_relay::plugin::{validate_plugin_config, initialize_plugins}. - Go and raw FFI are source-first or advanced surfaces.
- Plugins install runtime behavior such as subscribers, guardrails, intercepts, and related helpers. Adaptive is a built-in plugin component, not a separate runtime model.
Default Path
- Build the shared plugin config document or binding-native helper config.
- Add one top-level adaptive
ComponentSpec. - Start with
state.backend = in_memory. - Enable telemetry first.
- Add only one active section at a time:
adaptive_hints,tool_parallelism, oracg. - Validate the config before initialization.
- Initialize through the shared plugin system.
- Clear or replace the plugin configuration cleanly when the app lifecycle changes.
Defaults To Remember
adaptive_hints.prioritydefaults to100,break_chaintofalse,inject_headertotrue, andinject_body_pathtonvext.agent_hints.tool_parallelism.modedefaults toobserve_only.acg.providerdefaults topassthrough, with priority50and observation window100.- Redis-backed state is for persistence or cross-worker sharing, not the first local rollout.
Failure Modes To Avoid
- Do not initialize before validation succeeds.
- Do not enable multiple active tuning sections in the first rollout.
- Do not put callables, clients, credentials, or framework objects in plugin config.
- Do not enable active scheduling or request rewriting without a baseline and a rollback path.
Checklist
- Adaptive is modeled as a top-level plugin component.
- Backend chosen, with
in_memoryfirst unless persistence is required. - Adaptive sections chosen explicitly.
- Config validated before initialization.
- Rollout starts from telemetry or observe-only behavior.
- Plugin lifecycle matches the app lifecycle.
Related Skills
nemo-relay-tune-performancenemo-relay-tune-adaptive-hintsnemo-relay-debug-runtime-integrationnemo-relay-build-plugin