[WIP] feat: support realtime api#521
Open
AlbumenJ wants to merge 4 commits intoagentscope-ai:mainfrom
Open
Conversation
Change-Id: Id1db744799926d48875e72e9102ec74fa0e9c591
Change-Id: I53a0f25e07858c34f9db166d7c07450d27f83e3c
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces support for realtime API capabilities in AgentScope-Java, enabling live voice conversation through WebSocket connections. The implementation includes support for multiple providers (OpenAI, Gemini, DashScope), audio processing, connection management with automatic reconnection, and a Spring Boot demo application.
Changes:
- Added live API infrastructure including LiveAgent, LiveModel implementations, and WebSocket transport layer
- Implemented audio format handling, resampling, and streaming capabilities
- Created comprehensive test coverage for live API components
- Added live-demo Spring Boot application showcasing WebSocket-based voice conversation
Reviewed changes
Copilot reviewed 100 out of 104 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| agentscope-examples/live-demo/pom.xml | Maven configuration for live demo with Spring Boot WebFlux dependencies |
| agentscope-examples/live-demo/src/main/resources/application.yml | Spring Boot configuration for WebSocket server and DashScope API integration |
| agentscope-examples/live-demo/src/main/java/io/agentscope/demo/live/*.java | WebSocket handler, message DTOs, and Spring configuration for live demo |
| agentscope-core/src/main/java/io/agentscope/core/model/transport/*.java | Proxy configuration support for HTTP/SOCKS proxies |
| agentscope-core/src/main/java/io/agentscope/core/message/Source.java | Added RawSource type to Source type hierarchy |
| agentscope-core/src/test/java/**/*.java | Comprehensive unit tests for live API components, transport layer, and audio processing |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Change-Id: I1997f52f7dbc6b4f5ad6eb0008651844f3fa9f79
Change-Id: I651071728d84ad68a5dcbe4f5657f1d10b6e3862
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.
Ref #106