ThinkingBlockParser
public class ThinkingBlockParser implements ContentBlockParser<ThinkingBlock>
源码Source
io/agentscope/core/a2a/agent/message/ThinkingBlockParser.java:27–35用于ThinkingBlock到TextPart的解析器。位于 io.agentscope.core.a2a.agent.message 包,实现 ContentBlockParser<ThinkingBlock>。核心成员包括 parse。
Parser for ThinkingBlock to TextPart.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Part<?> parse(ThinkingBlock contentBlock) | 设置解析。 Performs the parse operation. |
方法详情Method Detail
parse
public Part<?> parse(ThinkingBlock contentBlock)
设置解析。
Performs the parse operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
contentBlock | ThinkingBlock | 内容块(类型 `ThinkingBlock`)。The content block. |
Part<?>返回片段。Returns part.
源码Source
io/agentscope/core/a2a/agent/message/ThinkingBlockParser.java:29–34