When you run an agent preview conversation (either interactive or programmatic), trace files are recorded and saved in your local DX project. Each customer utterance and agent response of a conversation creates trace data. Analyze the trace data to observe, monitor, investigate, and troubleshoot agent events and behavior.
For a list of agent trace commands, see Salesforce CLI agent trace Command Reference.