Skip to content

feat(azure.ai.agents): add invocations_ws (WebSocket) protocol support#9193

Draft
v1212 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-review-comment-9009-another-one
Draft

feat(azure.ai.agents): add invocations_ws (WebSocket) protocol support#9193
v1212 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-review-comment-9009-another-one

Conversation

Copilot AI commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Adds invocations_ws as a supported protocol in the azure.ai.agents extension, and refactors the protocol resolution path to eliminate a redundant protocolInfoProtocolVersionRecord conversion.

Core changes

  • init_from_code.go: Adds invocations_ws (2.0.0) to knownProtocols; extracts resolveKnownProtocols() returning []agent_yaml.ProtocolVersionRecord directly so callers no longer need a conversion loop; promptProtocols delegates its flag-path to resolveKnownProtocols
  • init.go: Adds protocolRecordsForImageManifest() for the --image flow with an explicit rejection of activity (which is only valid for code-deploy init); updates synthesizeImageManifestFile to accept flagProtocols; updates --protocol help text
  • hosted-agent-regions.json: Adds westus2
  • schemas/azure.ai.agent.json: Adds invocations_ws to ProtocolVersionRecord.protocol description

Tests

  • TestKnownProtocolNames — asserts invocations_ws is listed
  • TestPromptProtocols_FlagValues/invocations_ws_only — flag path resolves correct version
  • TestPromptProtocols_Interactive/websocket_protocol_selected — interactive selection works
  • TestPromptProtocols_ChoicesIncludeInvocationsWsWithoutChangingDefaultinvocations_ws appears in choices but default remains responses
  • TestSynthesizeImageManifestFile_{UsesFlagProtocols,RejectsUnknownProtocol,RejectsActivityProtocol}
  • TestCreateAgentAPIRequest_CodeDeploy_InvocationsWsUsesProtocolVersions

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
20 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: v1212 <49907914+v1212@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code based on review comment in PR #9009 feat(azure.ai.agents): add invocations_ws (WebSocket) protocol support Jul 17, 2026
Copilot finished work on behalf of v1212 July 17, 2026 09:43
Copilot AI requested a review from v1212 July 17, 2026 09:43
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