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