@@ -112,7 +112,7 @@ EXAMPLES
112112 $ sf agent activate --api-name Resort_Manager --target-org my-org
113113```
114114
115- _ See code: [ src/commands/agent/activate.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/activate.ts ) _
115+ _ See code: [ src/commands/agent/activate.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/activate.ts ) _
116116
117117## ` sf agent create `
118118
@@ -179,7 +179,7 @@ EXAMPLES
179179 $ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
180180```
181181
182- _ See code: [ src/commands/agent/create.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/create.ts ) _
182+ _ See code: [ src/commands/agent/create.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/create.ts ) _
183183
184184## ` sf agent deactivate `
185185
@@ -219,7 +219,7 @@ EXAMPLES
219219 $ sf agent deactivate --api-name Resort_Manager --target-org my-org
220220```
221221
222- _ See code: [ src/commands/agent/deactivate.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/deactivate.ts ) _
222+ _ See code: [ src/commands/agent/deactivate.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/deactivate.ts ) _
223223
224224## ` sf agent generate agent-spec `
225225
@@ -326,7 +326,7 @@ EXAMPLES
326326 $ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
327327```
328328
329- _ See code: [ src/commands/agent/generate/agent-spec.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/generate/agent-spec.ts ) _
329+ _ See code: [ src/commands/agent/generate/agent-spec.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/generate/agent-spec.ts ) _
330330
331331## ` sf agent generate authoring-bundle `
332332
@@ -392,7 +392,7 @@ EXAMPLES
392392 other-package-dir/main/default --target-org my-dev-org
393393```
394394
395- _ See code: [ src/commands/agent/generate/authoring-bundle.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/generate/authoring-bundle.ts ) _
395+ _ See code: [ src/commands/agent/generate/authoring-bundle.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/generate/authoring-bundle.ts ) _
396396
397397## ` sf agent generate template `
398398
@@ -440,7 +440,7 @@ EXAMPLES
440440 force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
441441```
442442
443- _ See code: [ src/commands/agent/generate/template.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/generate/template.ts ) _
443+ _ See code: [ src/commands/agent/generate/template.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/generate/template.ts ) _
444444
445445## ` sf agent generate test-spec `
446446
@@ -501,16 +501,16 @@ EXAMPLES
501501 force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
502502```
503503
504- _ See code: [ src/commands/agent/generate/test-spec.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/generate/test-spec.ts ) _
504+ _ See code: [ src/commands/agent/generate/test-spec.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/generate/test-spec.ts ) _
505505
506506## ` sf agent preview `
507507
508508Interact with an agent to preview how it responds to your statements, questions, and commands (utterances).
509509
510510```
511511USAGE
512- $ sf agent preview -o <value> [--flags-dir <value>] [--api-version <value>] [-n <value>] [--authoring-bundle
513- <value>] [-d <value>] [-x] [--use-live-actions]
512+ $ sf agent preview -o <value> [--json] [-- flags-dir <value>] [--api-version <value>] [-n <value>]
513+ [--authoring-bundle <value>] [-d <value>] [-x] [--use-live-actions] [--utterance <value>] [--session-id <value> ]
514514
515515FLAGS
516516 -d, --output-dir=<value> Directory where conversation transcripts are saved.
@@ -521,11 +521,16 @@ FLAGS
521521 --api-version=<value> Override the api version used for api requests made by this command
522522 --authoring-bundle=<value> API name of the authoring bundle metadata component that contains the agent's Agent
523523 Script file.
524+ --session-id=<value> Session ID of an in-progress preview session; use with --utterance to send a message
525+ to that session and return the response without starting the interactive preview.
524526 --use-live-actions Use real actions in the org; if not specified, preview uses AI to simulate (mock)
525527 actions.
528+ --utterance=<value> Message to send to the agent; creates a new session, returns the response, and exits
529+ without starting the interactive preview.
526530
527531GLOBAL FLAGS
528532 --flags-dir=<value> Import flag values from a directory.
533+ --json Format output as json.
529534
530535DESCRIPTION
531536 Interact with an agent to preview how it responds to your statements, questions, and commands (utterances).
@@ -572,9 +577,20 @@ EXAMPLES
572577 "./transcripts/my-preview" directory, enable the Apex debug logs, and use your default org:
573578
574579 $ sf agent preview --use-live-actions --apex-debug --output-dir transcripts/my-preview
580+
581+ Send a message to the agent and print the response without starting the interactive preview (requires --api-name or
582+ --authoring-bundle):
583+
584+ $ sf agent preview --authoring-bundle My_Agent_Bundle --utterance "What can you help me with?" --target-org \
585+ my-dev-org
586+
587+ Send a follow-up message to an existing preview session:
588+
589+ $ sf agent preview --authoring-bundle My_Agent_Bundle --session-id <session-id> --utterance "Tell me more" \
590+ --target-org my-dev-org
575591```
576592
577- _ See code: [ src/commands/agent/preview.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/preview.ts ) _
593+ _ See code: [ src/commands/agent/preview.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/preview.ts ) _
578594
579595## ` sf agent publish authoring-bundle `
580596
@@ -623,7 +639,7 @@ EXAMPLES
623639 $ sf agent publish authoring-bundle --api-name MyAuthoringbundle --target-org my-dev-org
624640```
625641
626- _ See code: [ src/commands/agent/publish/authoring-bundle.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/publish/authoring-bundle.ts ) _
642+ _ See code: [ src/commands/agent/publish/authoring-bundle.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/publish/authoring-bundle.ts ) _
627643
628644## ` sf agent test create `
629645
@@ -678,7 +694,7 @@ EXAMPLES
678694 $ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
679695```
680696
681- _ See code: [ src/commands/agent/test/create.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/test/create.ts ) _
697+ _ See code: [ src/commands/agent/test/create.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/test/create.ts ) _
682698
683699## ` sf agent test list `
684700
@@ -713,7 +729,7 @@ EXAMPLES
713729 $ sf agent test list --target-org my-org
714730```
715731
716- _ See code: [ src/commands/agent/test/list.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/test/list.ts ) _
732+ _ See code: [ src/commands/agent/test/list.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/test/list.ts ) _
717733
718734## ` sf agent test results `
719735
@@ -779,7 +795,7 @@ FLAG DESCRIPTIONS
779795 expression when using custom evaluations.
780796```
781797
782- _ See code: [ src/commands/agent/test/results.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/test/results.ts ) _
798+ _ See code: [ src/commands/agent/test/results.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/test/results.ts ) _
783799
784800## ` sf agent test resume `
785801
@@ -852,7 +868,7 @@ FLAG DESCRIPTIONS
852868 expression when using custom evaluations.
853869```
854870
855- _ See code: [ src/commands/agent/test/resume.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/test/resume.ts ) _
871+ _ See code: [ src/commands/agent/test/resume.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/test/resume.ts ) _
856872
857873## ` sf agent test run `
858874
@@ -926,7 +942,7 @@ FLAG DESCRIPTIONS
926942 expression when using custom evaluations.
927943```
928944
929- _ See code: [ src/commands/agent/test/run.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/test/run.ts ) _
945+ _ See code: [ src/commands/agent/test/run.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/test/run.ts ) _
930946
931947## ` sf agent validate authoring-bundle `
932948
@@ -973,6 +989,6 @@ EXAMPLES
973989 $ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
974990```
975991
976- _ See code: [ src/commands/agent/validate/authoring-bundle.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.3 /src/commands/agent/validate/authoring-bundle.ts ) _
992+ _ See code: [ src/commands/agent/validate/authoring-bundle.ts] ( https://github.com/salesforcecli/plugin-agent/blob/1.27.4-preview.0 /src/commands/agent/validate/authoring-bundle.ts ) _
977993
978994<!-- commandsstop -->
0 commit comments