PartParserRouter
public class PartParserRouter
源码Source
io/agentscope/core/a2a/agent/message/PartParserRouter.java:28–46片段解析器路由器,支持智能体之间的发现、委派与协作。位于 io.agentscope.core.a2a.agent.message 包。核心成员包括 parse。
The router for PartParser according to the Part#getKind().
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public ContentBlock parse(Part<?> part) | 设置解析。 Parse `Part` to `ContentBlock`. |
方法详情Method Detail
parse
public ContentBlock parse(Part<?> part)
设置解析。
Parse Part to ContentBlock.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
part | Part<?> | 片段到解析。the part to parse |
ContentBlock返回ContentBlock。the parsed content block, or null if the part is null or not supported
源码Source
io/agentscope/core/a2a/agent/message/PartParserRouter.java:36–45