AS AgentScopeAPI 手册 / API Reference

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.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/engine/schemas/AudioContent.java:35–37

setData

public void setData(String data)

设置数据。

Sets the data.

参数Parameters
名称Name类型Type说明Description
dataString数据(类型 `String`)。The data.
源码Source io/agentscope/runtime/engine/schemas/AudioContent.java:39–41

getFormat

public String getFormat()

获取格式。

Returns the format.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/engine/schemas/AudioContent.java:43–45

setFormat

public void setFormat(String format)

设置格式。

Sets the format.

参数Parameters
名称Name类型Type说明Description
formatString格式(类型 `String`)。The format.
源码Source io/agentscope/runtime/engine/schemas/AudioContent.java:47–49

继承成员Inherited Members

基于官方固定版本源码静态生成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.