AudioContent
public class AudioContent extends Content
源码Source
io/agentscope/runtime/engine/schemas/AudioContent.java:24–50音频内容,承载智能体的部署、调度与服务化运行。位于 io.agentscope.runtime.engine.schemas 包,继承自 Content。核心成员包括 getData、setData、getFormat、setFormat、AudioContent。
Audio content in a message.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AudioContent() | 初始化 `AudioContent` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getData() | 获取数据。 Returns the data. |
public void setData(String data) | 设置数据。 Sets the data. |
public String getFormat() | 获取格式。 Returns the format. |
public void setFormat(String format) | 设置格式。 Sets the format. |
构造器详情Constructor Detail
AudioContent
public AudioContent()
初始化 AudioContent 实例。
Creates a new instance.
源码Source
io/agentscope/runtime/engine/schemas/AudioContent.java:31–33方法详情Method Detail
getData
public String getData()
获取数据。
Returns the data.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/engine/schemas/AudioContent.java:35–37setData
public void setData(String data)
设置数据。
Sets the data.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | String | 数据(类型 `String`)。The data. |
源码Source
io/agentscope/runtime/engine/schemas/AudioContent.java:39–41getFormat
public String getFormat()
获取格式。
Returns the format.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/engine/schemas/AudioContent.java:43–45setFormat
public void setFormat(String format)
设置格式。
Sets the format.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
format | String | 格式(类型 `String`)。The format. |
源码Source
io/agentscope/runtime/engine/schemas/AudioContent.java:47–49