类 ImageBlock.Builder

java.lang.Object
io.agentscope.core.message.ImageBlock.Builder
封闭类:
ImageBlock

public static class ImageBlock.Builder extends Object
Builder for constructing ImageBlock instances.
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • source

      public ImageBlock.Builder source(Source source)
      Sets the source for the image.
      参数:
      source - The image source (URL or Base64)
      返回:
      This builder for chaining
    • minPixels

      public ImageBlock.Builder minPixels(Integer minPixels)
      Sets the minimum pixel threshold for input image frames.
      参数:
      minPixels - The minimum pixel threshold
      返回:
      This builder for chaining
    • maxPixels

      public ImageBlock.Builder maxPixels(Integer maxPixels)
      Sets the maximum pixel threshold for input image frames.
      参数:
      maxPixels - The maximum pixel threshold
      返回:
      This builder for chaining
    • build

      public ImageBlock build()
      Builds a new ImageBlock with the configured source.
      返回:
      A new ImageBlock instance
      抛出:
      NullPointerException - if source is null