类 VideoBlock.Builder

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

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

    • Builder

      public Builder()
  • 方法详细资料

    • source

      public VideoBlock.Builder source(Source source)
      Sets the source for the video content.
      参数:
      source - The video source (URL or Base64)
      返回:
      This builder for chaining
    • fps

      public VideoBlock.Builder fps(Float fps)
      Sets the frames per second (FPS) of the video.
      参数:
      fps - The frames per second value
      返回:
      This builder for chaining
    • maxFrames

      public VideoBlock.Builder maxFrames(Integer maxFrames)
      Sets the maximum number of frames to capture from the video.
      参数:
      maxFrames - The maximum number of frames
      返回:
      This builder for chaining
    • minPixels

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

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

      public VideoBlock.Builder totalPixels(Integer totalPixels)
      Sets the total pixels of all frames extracted from the video (single image pixels × total frames).
      参数:
      totalPixels - The total pixels
      返回:
      This builder for chaining
    • build

      public VideoBlock build()
      Builds a new VideoBlock with the configured source.
      返回:
      A new VideoBlock instance