-
Notifications
You must be signed in to change notification settings - Fork 214
[WIP] feat: support realtime api #521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Change-Id: Id1db744799926d48875e72e9102ec74fa0e9c591
Change-Id: I53a0f25e07858c34f9db166d7c07450d27f83e3c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
Ref #106