AS AgentScopeAPI 手册 / API Reference

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
partT片段(类型 `T`)。the part to parse, not null
返回Returns ContentBlock
已解析内容块。the parsed content block
源码Source io/agentscope/core/a2a/agent/message/PartParser.java:34
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.