feat(agui): supports multimodality, expandable sessions, request context#1321
Open
DLancerC wants to merge 1 commit into
Open
feat(agui): supports multimodality, expandable sessions, request context#1321DLancerC wants to merge 1 commit into
DLancerC wants to merge 1 commit into
Conversation
|
|
… transparent transmission of request data to the agent.
b7b050c to
3e00df9
Compare
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
multimodality
a new content-part model (
AguiContentPart/AguiTextContent/AguiImageContentwith URL and data-URI sources) plus a backward-compatibleAguiMessageDeserializer, lettingAguiMessageandAguiMessageConvertercarry and forward image inputs to the agent;expandable sessions
a pluggable
AguiSessionManagerSPI withInMemoryAguiSessionManager(default, renamed from the previous in-memory impl) andSessionAwareAguiSessionManager(Spring Session based, scalable and restart-safe);transparent request data
a new
AguiRequestContextcarrying thread id, headers and raw payload, propagated throughAgentResolver/AguiRequestProcessorand the MVC / REST / WebFlux entry points down to the agent. The example app is updated accordingly (WebFluxCodecConfigurationraises the codec limit to 16 MB;index.htmlgains image upload / URL buttons, previews and inline rendering), and full unit tests are added for the new context, converter, model, adapter and both session managers. To verify: runmvn testonagentscope-extensions-aguiandspring-boot-starter-agentscope-agui, then launch theagentscope-examples/aguidemo and confirm plain text, image upload/URL, multi-turn session persistence and large-payload (>256KB) requests all work as expected.Checklist
mvn spotless:applymvn test)