How it fits together
- Capture original conversations. The SDK uploads snapshots in the background. A trace is the ordered record of messages, tool calls, and tool results from one execution or conversation.
- Investigate recurring failures. Use the captured evidence to understand what went wrong and write narrowly scoped guidance.
- Preview and activate a correction. Check where the saved version matches, review exclusions, then activate it when ready.
- Retrieve context at each user turn. In active mode, the SDK can return relevant text. Your application appends it before making its normal model call.
Connect your agent
Install the Node.js SDK and add capture and context retrieval.
Review a correction
Understand preview, activation, and what the results establish.