feat(agui): Add multimodal input support (image/video/audio) to AguiM… - #1380
feat(agui): Add multimodal input support (image/video/audio) to AguiM…#1380NoiAI wants to merge 1 commit into
Conversation
|
|
88419b9 to
2e87d78
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…essage and AguiMessageConverter Adds support for multimodal input (image, video, audio, document) in the AG-UI extension, aligning with the AG-UI Protocol InputContent specification. - AguiMessage.content: String -> Object (backward compatible) - AguiMessageConverter: InputContent[] -> ContentBlock conversion - Supports both url and data (base64) source types
2e87d78 to
5d6cb4b
Compare
|
这个功能对我们项目非常重要,我们已经测试过可以正常使用,希望能尽快合并,非常感谢! |
|
PTAL @chickenlj |
|
We have a real-world need for this feature (Spring Boot + HarnessAgent + DashScope + AG-UI web client, where users send images/audio recordings from the browser). Currently we have to work around the protocol layer by smuggling attachments through To help move this forward, I independently verified this PR today (2026-07-28):
@chickenlj @LearningGp Could this get a review? If the original author is no longer available, I'd be happy to help rebase, fill in the PR description checklist, and cover the remaining uncovered lines flagged by codecov. |
oss-maintainer
left a comment
There was a problem hiding this comment.
-
@SuppressWarnings("unchecked")— Multiple unchecked casts fromMap<String, Object>. This is acceptable given JSON deserialization constraints, but consider adding a typed DTO (e.g.,InputContent) for type safety in a follow-up. -
CLA not signed — The CLA assistant flag is still pending. Please sign the CLA at https://cla-assistant.io/agentscope-ai/agentscope-java?pullRequest=1380 before this can be merged.
-
May need rebase — This PR has been open since May. Please rebase onto current
mainto ensure no merge conflicts with recent AG-UI changes (e.g., PR #2452 metadata field, PR #2463 toolkit refactoring).
Verdict
Solid implementation of a much-requested feature. The core conversion logic is correct and well-tested. Addressing the document data loss (#1) and rebasing would make this merge-ready.
…essage and AguiMessageConverter
Adds support for multimodal input (image, video, audio, document) in the AG-UI extension, aligning with the AG-UI Protocol InputContent specification.
AgentScope-Java Version
[The version of AgentScope-Java you are working on, e.g. 1.0.12, check your pom.xml dependency version or run
mvn dependency:tree | grep agentscope-parent:pom(only mac/linux)]Description
[Please describe the background, purpose, changes made, and how to test this PR]
Checklist
Please check the following items before code is ready to be reviewed.
mvn spotless:applymvn test)