Agents

Agent-aware serving features in Dynamo

View as Markdown

NVIDIA Dynamo adds agent-aware serving features without taking ownership of the agent loop: your harness still manages prompts, tools, subagents, and reasoning state, while Dynamo uses metadata attached to each LLM request to correlate work, improve routing and scheduling, manage KV cache behavior, and produce traces for replay and analysis.

Send Your First Agent Request

Chat completions with session ID and agent hints
$curl http://localhost:8000/v1/chat/completions \
> -H 'Content-Type: application/json' \
> -H 'Authorization: Bearer sk-dummy' \
> -H 'x-dynamo-session-id: research-run-42:researcher' \
> -d '{
> "model": "my-model",
> "messages": [{"role": "user", "content": "..."}],
> "nvext": {
> "agent_hints": {
> "priority": 5,
> "osl": 1024
> }
> }
> }'

Session IDs identify work for tracing and opt-in consumers. Agent hints influence serving behavior. Neither enables sticky placement unless a separate routing policy is configured.

Choose Your Metadata

MetadataWhereRoleUse when
Session IDRequest headerPassive identityYou need traceability across LLM calls, tool spans, and replay
Agent hintsnvext.agent_hints in the request bodyActive serving intentYou want to influence queue order, scheduling, or cache behavior

See Session IDs and Agent Hints for the full contract.

Implementation Checklist

1

Configure a packaged harness when available

Point Codex, Pi, Claude Code, or another supported CLI at Dynamo. Supported harnesses emit native session headers, so you do not need to add X-Dynamo-Session-ID yourself. See Agent Harnesses.

2

Identify agent sessions from a custom client

If you are building a custom client instead of using a packaged harness, send X-Dynamo-Session-ID on every request in a reasoning chain. See Session IDs.

3

Add agent hints when serving intent matters

Set nvext.agent_hints only when you want router or engine behavior to change for that request. See Agent Hints.

4

Enable tracing if you need measurements

Set DYN_REQUEST_TRACE=1 on the frontend to capture timing, tool calls, and session identity. See Agent Tracing.

Where Signals Are Used

LayerSignalOptimization
Frontend APISession headers and nvext request extensionsNormalize agent identity and serving intent across APIs.
RouterPriority, expected output length, and cache-overlap signalsPlace requests for KV reuse and order queued work.
KV cache managementPriority and session metadata forwarded to the backend runtimeInfluence engine scheduling, cache eviction, and subagent KV isolation where the backend supports it.

Next Steps