Skip to content

Implement WebSocket support for InvocationAgentServerHost#46805

Open
007DXR wants to merge 1 commit intoAzure:feature/azure-ai-agentserver-invocations_wsfrom
007DXR:feature/azure-ai-agentserver-invocations_ws
Open

Implement WebSocket support for InvocationAgentServerHost#46805
007DXR wants to merge 1 commit intoAzure:feature/azure-ai-agentserver-invocations_wsfrom
007DXR:feature/azure-ai-agentserver-invocations_ws

Conversation

@007DXR
Copy link
Copy Markdown

@007DXR 007DXR commented May 9, 2026

Description

  • Added _invocation_ws.py to handle WebSocket connections and implement the @app.ws_handler decorator for the /invocations_ws route.
  • Created a bidirectional streaming sample agent (ws_bidirectional_streaming_agent.py) demonstrating full-duplex communication over WebSocket.
    Developed an echo agent sample (ws_invoke_agent.py) that supports both HTTP and WebSocket protocols.
    Introduced requirements files for both sample agents to specify dependencies.
  • Added comprehensive tests for WebSocket handler functionality, including connection acceptance, error handling, and logging of close events.

- Added `_invocation_ws.py` to handle WebSocket connections and implement the `@app.ws_handler` decorator for the `/invocations_ws` route.
- Created a bidirectional streaming sample agent (`ws_bidirectional_streaming_agent.py`) demonstrating full-duplex communication over WebSocket.
- Developed an echo agent sample (`ws_invoke_agent.py`) that supports both HTTP and WebSocket protocols.
- Introduced requirements files for both sample agents to specify dependencies.
- Added comprehensive tests for WebSocket handler functionality, including connection acceptance, error handling, and logging of close events.
@github-actions github-actions Bot added Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. Hosted Agents sdk/agentserver/* labels May 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

Thank you for your contribution @007DXR! We will review the pull request and get back to you soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. Hosted Agents sdk/agentserver/*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant