Skip to content

Support invocations_ws in agent init#9009

Draft
v1212 wants to merge 2 commits into
Azure:mainfrom
v1212:users/wujia/invocations-ws-init
Draft

Support invocations_ws in agent init#9009
v1212 wants to merge 2 commits into
Azure:mainfrom
v1212:users/wujia/invocations-ws-init

Conversation

@v1212

@v1212 v1212 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds invocations_ws as a selectable protocol for azd ai agent init.
  • Keeps the no-prompt/default protocol as responses and documents invocations_ws in agent help/schema descriptions.
  • Adds regression coverage for websocket protocol selection and code deploy serialization via protocol_versions.

Validation

  • go test ./... from cli/azd/extensions/azure.ai.agents
  • go build ./... from cli/azd/extensions/azure.ai.agents
  • azd x build from cli/azd/extensions/azure.ai.agents
  • PR CI/checks are green.

Live validation

  • Local extension build installed successfully.
  • azd ai agent init --protocol invocations_ws is accepted and reaches template selection, confirming protocol parsing no longer rejects it.
  • Direct code deploy validation succeeded against a North Central US Foundry project in ActivityProtocol-Dev:
    • Account/project: voiceazd0708acct / voiceazd0708proj
    • Agent: voice-ws-echo:1
    • Uploaded metadata contains definition.protocol_versions: [{ protocol: invocations_ws, version: 2.0.0 }]
    • Agent reached active
    • Direct invocations_ws smoke passed: received session_started, 9600 audio bytes, response_done, no error.
  • Full azd deploy validation is still blocked locally by azd auth: this machine's az CLI is logged in and can deploy via direct API, but azd deploy requires azd auth login; I did not complete an interactive azd device login in order to avoid disrupting other local work.

@github-actions github-actions Bot added the ext-agents azure.ai.agents extension label Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext-agents azure.ai.agents extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants