@salesforce/plugin-agent 1.39.0 → 1.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +1,67 @@
1
1
  # summary
2
2
 
3
- Read and analyze trace files from an agent preview session.
3
+ Read trace files from an agent preview session.
4
4
 
5
5
  # description
6
6
 
7
- Reads trace files recorded during an agent preview session and outputs them in one of three formats.
7
+ When you run an agent preview conversation (either interactive or programmatic), trace files are automatically recorded and saved in your local DX project. Each turn (utterance or response) of a conversation creates trace data. Use this command to view trace data for a specific preview session, so you can then analyze the trace data to observe, monitor, investigate, and troubleshoot agent events and behavior.
8
8
 
9
- **--format summary** (default): A per-turn narrative showing topic routing, actions executed, and the agent's response. Use this to quickly understand what happened in a session.
9
+ Use the --format flag to specify one of these formats of the outputted trace data:
10
10
 
11
- **--format detail**: Diagnostic drill-down into a specific dimension (--dimension required). Filters output to only the trace steps relevant to that dimension, minimizing noise.
11
+ - summary (Default): A per-turn narrative showing topic routing, actions executed, and the agent's response. Use this to quickly understand what happened in a preview session.
12
+ - detail: Diagnostic drill-down into a specific dimension. Filters output to only the trace steps relevant to that dimension, minimizing noise.
13
+ - raw: Unprocessed trace JSON. Use this as a fallback when the trace schema has changed or you need to perform custom analysis.
12
14
 
13
- **--format raw**: Unprocessed trace JSON. Use this as a fallback when the trace schema has changed or you need to perform custom analysis.
15
+ If you specify "--format detail", you must also specify a dimension with the --dimension flag. Dimensions are a way to slice and analyze the agent execution trace from a specific angle or concern. Instead of looking at the raw sequence of everything that happened, each dimension filters and organizes the trace data to answer a specific type of question. These are the available dimensions and the information they provide:
14
16
 
15
- Available dimensions for --format detail: actions, grounding, routing, errors.
16
-
17
- Use --turn N to scope output to a single conversation turn.
17
+ - actions: The actions the agent executed. Includes action name, input parameters, output, and latency. Use this dimension to understand what the agent actually did when answering an utterance in the preview session.
18
+ - grounding: The reasoning steps used by the LLM. Use this dimension to see how the agent "thought" about the problem - the AI reasoning that determined which actions to take.
19
+ - routing: How the agent navigated between subagents. Use this dimension to understand conversation flow - when and why the agent switched between different subagents or contexts during the conversation.
20
+ - errors: Aggregates all errors during the session. Use this dimension to quickly identify and debug issues across all steps.
18
21
 
19
22
  # flags.session-id.summary
20
23
 
21
- Session ID to read traces for.
24
+ Session ID to read traces for. Use the "agent preview sessions" CLI command to list all known agent preview sessions along with their session IDs
22
25
 
23
26
  # flags.format.summary
24
27
 
25
- Output format: summary (default), detail, or raw. Use detail with --dimension to drill into a specific aspect of the trace.
28
+ Output format of the trace data; specifies the level of detail you want in the trace files.
26
29
 
27
30
  # flags.dimension.summary
28
31
 
29
- Dimension to drill into when using --format detail. One of: actions, grounding, routing, errors. Required when --format is detail.
32
+ Dimension to drill into when using "--format detail"; used to filter and organize the trace data to answer a specific type of question.
30
33
 
31
34
  # flags.turn.summary
32
35
 
33
- Scope output to this conversation turn number.
36
+ Turn number for which you want trace data. A turn is a single utterance or response in a conversation, starting with 1.
34
37
 
35
38
  # error.detailRequiresDimension
36
39
 
37
- --format detail requires --dimension. Specify one of: actions, grounding, routing, errors.
40
+ The "--format detail" flag requires --dimension. Specify one of: actions, grounding, routing, errors.
38
41
 
39
42
  # error.sessionNotFound
40
43
 
41
- Session '%s' was not found in the local session cache. Run "sf agent trace list" to see available sessions.
44
+ Session '%s' wasn't found in the local session cache. Run "sf agent trace list" to see available sessions.
42
45
 
43
46
  # error.turnIndexNotFound
44
47
 
45
- No turn index found for session '%s'. Cannot filter by --turn without a turn index.
48
+ No turn index found for session '%s'. Can't filter by --turn without a turn index.
46
49
 
47
50
  # error.turnNotFound
48
51
 
49
- Turn %s was not found in session '%s'.
52
+ Turn %s wasn't found in session '%s'.
50
53
 
51
54
  # error.parseFailedAll
52
55
 
53
- Trace parsing failed for all files: %s. The trace schema may have changed. Try --format raw to access unprocessed trace data.
56
+ Trace parsing failed for all files: %s. The trace schema may have changed. Try "--format raw" to access unprocessed trace data.
54
57
 
55
58
  # warn.dimensionIgnored
56
59
 
57
- --dimension is ignored when --format is '%s'. Use --format detail to drill into a dimension.
60
+ The --dimension flag is ignored when --format is '%s'. Use "--format detail" to drill into a dimension.
58
61
 
59
62
  # warn.parseFailed
60
63
 
61
- Trace parsing failed for some files (skipped): %s. Try --format raw to access unprocessed trace data.
64
+ Trace parsing failed for some files (skipped): %s. Try "--format raw" to access unprocessed trace data.
62
65
 
63
66
  # output.empty
64
67
 
@@ -142,11 +145,11 @@ Message
142
145
 
143
146
  # examples
144
147
 
145
- - Show a session summary (all turns):
148
+ - Show a session trace summary for all turns in the session with the specified ID:
146
149
 
147
150
  <%= config.bin %> <%= command.id %> --session-id <SESSION_ID>
148
151
 
149
- - Show summary for a single turn:
152
+ - Show a trace summary for the second turn (utterance or response) of the conversation:
150
153
 
151
154
  <%= config.bin %> <%= command.id %> --session-id <SESSION_ID> --turn 2
152
155
 
@@ -154,7 +157,7 @@ Message
154
157
 
155
158
  <%= config.bin %> <%= command.id %> --session-id <SESSION_ID> --format detail --dimension actions
156
159
 
157
- - Drill into routing decisions for a specific turn:
160
+ - Drill into routing decisions for the first turn of the conversation:
158
161
 
159
162
  <%= config.bin %> <%= command.id %> --session-id <SESSION_ID> --format detail --dimension routing --turn 1
160
163