PartParser
public interface PartParser<T extends Part<?>>
源码Source
io/agentscope/core/a2a/agent/message/PartParser.java:26–35定义片段解析器契约的接口。位于 io.agentscope.core.a2a.agent.message 包。核心成员包括 parse。
Part parser interface, used to parse Part and convert to
ContentBlock.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public ContentBlock parse(T part) | 设置解析。 Parse the given part and convert it to a ContentBlock. |
方法详情Method Detail
parse
public ContentBlock parse(T part)
设置解析。
Parse the given part and convert it to a ContentBlock.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
part | T | 片段(类型 `T`)。the part to parse, not null |
ContentBlock已解析内容块。the parsed content block
源码Source
io/agentscope/core/a2a/agent/message/PartParser.java:34