Skip to content

@W-22203665 feat: add agentApiName to agent preview start and send JSON output#399

Merged
WillieRuemmele merged 1 commit intomainfrom
fp/add-agent-api-name-to-preview-json
Apr 24, 2026
Merged

@W-22203665 feat: add agentApiName to agent preview start and send JSON output#399
WillieRuemmele merged 1 commit intomainfrom
fp/add-agent-api-name-to-preview-json

Conversation

@franciscoperezsammartino
Copy link
Copy Markdown
Contributor

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

What does this PR do?

What issues does this PR fix or reference?

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
Copy link
Copy Markdown
Contributor

QA Notes


✅ : quick check, looks good

{
  "status": 0,
  "result": {
    "sessionId": "019dc126-d8b7-726f-aca9-7a1bb1a5e401",
    "agentApiName": "WilliePublish"
  },
  "warnings": []
}

@WillieRuemmele WillieRuemmele merged commit 983f7ea into main Apr 24, 2026
14 of 17 checks passed
@WillieRuemmele WillieRuemmele deleted the fp/add-agent-api-name-to-preview-json branch April 24, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants