AudioBlockParser
public class AudioBlockParser extends BaseMediaBlockParser<AudioBlock>
源码Source
io/agentscope/core/a2a/agent/message/AudioBlockParser.java:25–36用于AudioBlock到io.a2a.spec.FilePart的解析器。位于 io.agentscope.core.a2a.agent.message 包,继承自 BaseMediaBlockParser<AudioBlock>。核心成员包括 getMediaType、parse。
Parser for AudioBlock to io.a2a.spec.FilePart.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
protected String getMediaType() | 获取 `getMediaType`。 Returns the media type. |
public Part<?> parse(AudioBlock contentBlock) | 设置解析。 Performs the parse operation. |
方法详情Method Detail
getMediaType
protected String getMediaType()
获取 getMediaType。
Returns the media type.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/a2a/agent/message/AudioBlockParser.java:27–30parse
public Part<?> parse(AudioBlock contentBlock)
设置解析。
Performs the parse operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
contentBlock | AudioBlock | 内容块(类型 `AudioBlock`)。The content block. |
Part<?>返回片段。Returns part.
源码Source
io/agentscope/core/a2a/agent/message/AudioBlockParser.java:32–35