Trace context
AgentResponse and PlatformFeedback both carry an optional trace context: vendor-neutral tracing metadata for a single assistant turn. Set it on your responses so a consumer can correlate any response back to its trace. The platform echoes it back on PlatformFeedback that references the response.
TraceContext
Attach it once per turn.
Node
Python
The convenience senders (sendContentChunk, sendStatusUpdate, sendTranscript) take an optional third argument to stamp responseId / traceContext on the emitted AgentResponse:
If you build on an adapter, prefer its onTraceContext hook and createTraceparent helper (see Custom adapter (Node)) rather than populating this by hand.
Trace context is additive: older SDKs and adapters keep working and do not emit or observe it until they upgrade.
Next steps
- Monitor your agents: where these traces land
- Receiving platform feedback: the echoed trace context on feedback