类 Base64Source.Builder
java.lang.Object
io.agentscope.core.message.Base64Source.Builder
- 封闭类:
Base64Source
Builder for constructing Base64Source instances.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()Builds a new Base64Source with the configured properties.Sets the Base64-encoded media data.Sets the MIME type for the media content.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
mediaType
Sets the MIME type for the media content.- 参数:
mediaType- The MIME type (e.g., "image/jpeg")- 返回:
- This builder for chaining
-
data
Sets the Base64-encoded media data.- 参数:
data- The Base64 data string- 返回:
- This builder for chaining
-
build
Builds a new Base64Source with the configured properties.- 返回:
- A new Base64Source instance
- 抛出:
NullPointerException- if mediaType or data is null
-