Implement WebSocket support for InvocationAgentServerHost#46805
Open
007DXR wants to merge 1 commit intoAzure:feature/azure-ai-agentserver-invocations_wsfrom
Open
Conversation
- 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.
Contributor
|
Thank you for your contribution @007DXR! We will review the pull request and get back to you soon. |
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.
Description
_invocation_ws.pyto handle WebSocket connections and implement the@app.ws_handlerdecorator for the/invocations_wsroute.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.