类 AudioBlock.Builder
java.lang.Object
io.agentscope.core.message.AudioBlock.Builder
- 封闭类:
AudioBlock
Builder for constructing AudioBlock instances.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()Builds a new AudioBlock with the configured source.Sets the source for the audio content.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
source
Sets the source for the audio content.- 参数:
source- The audio source (URL or Base64)- 返回:
- This builder for chaining
-
build
Builds a new AudioBlock with the configured source.- 返回:
- A new AudioBlock instance
- 抛出:
NullPointerException- if source is null
-