@W-22203665 feat: add agentApiName to agent preview start and send JSON output#399
Merged
WillieRuemmele merged 1 commit intomainfrom Apr 24, 2026
Merged
Conversation
Add agentApiName field to JSON output for both agent preview start and send commands.
Also add sessionId to agent preview send output. This helps AI agents maintain context
about which agent they are working with during preview sessions without needing to use
search tools to find trace files.
Changes:
- agent preview start: returns {sessionId, agentApiName}
- agent preview send: returns {messages, agentApiName, sessionId}
- Updated JSON schemas for both commands
- Added test assertions in NUT tests
Work Item: W-22203665
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
WillieRuemmele
approved these changes
Apr 24, 2026
3 tasks
Contributor
QA Notes✅ : quick check, looks good {
"status": 0,
"result": {
"sessionId": "019dc126-d8b7-726f-aca9-7a1bb1a5e401",
"agentApiName": "WilliePublish"
},
"warnings": []
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add agentApiName field to JSON output for both agent preview start and send commands. Also add sessionId to agent preview send output. This helps AI agents maintain context about which agent they are working with during preview sessions without needing to use search tools to find trace files.
Changes:
Work Item: W-22203665
What does this PR do?
What issues does this PR fix or reference?