AguiRequestBodyParser
public class AguiRequestBodyParser
源码Source
io/agentscope/core/agui/runtime/AguiRequestBodyParser.java:33–45AGUI 请求正文解析器,在智能体、模型与前端之间传递结构化消息和事件。位于 io.agentscope.core.agui.runtime 包。核心成员包括 parse。
Parses AG-UI request bodies with AgentScope's JSON codec.
The default AgentScope codec is Jackson 2. Keeping this conversion at the AG-UI boundary avoids selecting Spring Boot 4's Jackson 3 codec for AG-UI's Jackson 2-annotated models, while leaving the application's other HTTP converters unchanged.
The Spring Boot starter exposes this type as a bean and provides a default instance via
@ConditionalOnMissingBean. Applications can register their own AguiRequestBodyParser bean to customize request body conversion.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public RunAgentInput parse(String body) | 设置解析。 Parses a JSON request body into `RunAgentInput`. |
方法详情Method Detail
parse
public RunAgentInput parse(String body)
设置解析。
Parses a JSON request body into RunAgentInput.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
body | String | 原始 JSON 请求正文。the raw JSON request body |
RunAgentInput已解析 AG-UI 输入。the parsed AG-UI input
源码Source
io/agentscope/core/agui/runtime/AguiRequestBodyParser.java:41–44