Adaptive Hints
Use Adaptive Hints when downstream model calls or provider adapters can safely receive guidance metadata from the adaptive runtime.
Adaptive hints register as LLM request intercepts. Lower numeric priority values run earlier in the intercept chain. The plugin sets the default priority relative to other middleware rather than as a standalone importance score.
plugins.toml Example
Add the following Adaptive Hints configuration to plugins.toml:
This configuration injects adaptive guidance into outgoing model requests while allowing later request intercepts to continue running.
Plugin Configuration
Use plugin configuration when the application should let NeMo Relay own the Adaptive Hints request-intercept lifecycle. The following examples configure and activate Adaptive Hints through each supported language binding.
validate() checks only the supplied in-memory object. initialize() also
layers discovered plugins.toml configuration. For effective file-backed
validation, refer to Plugin Configuration Files
and run the gateway with the same configuration path that production uses.
Python
Node.js
Rust
Manual API
Use the manual runtime API when an integration needs to own adaptive lifecycle directly instead of activating the top-level plugin component.
Python
Node.js
Rust
Fields
The following table describes Adaptive Hints settings:
Disable break_chain unless the adaptive hint should be the final request
transform. Adjust priority only when adaptive hints need to run before or
after known application middleware.
Expected Output
Outgoing managed LLM requests receive adaptive hint metadata in the configured header and body location. The hints do not replace the application callback or change the returned value by themselves. Downstream code must explicitly interpret the metadata before behavior changes.
Common Configuration and Runtime Issues
- Unknown adaptive hint fields when unknown fields are treated as errors.
inject_body_pathdoes not match the request shape expected by downstream provider adapters.- Hint injection is enabled before downstream model paths can consume or ignore the metadata safely.