类 VideoBlock

java.lang.Object
io.agentscope.core.message.ContentBlock
io.agentscope.core.message.VideoBlock
所有已实现的接口:
State

public final class VideoBlock extends ContentBlock
Represents video content in a message.

This content block supports video from two sources:

  • URL source - video files accessible via HTTP/HTTPS URLs or local file URLs
  • Base64 source - video encoded as Base64 strings with MIME type

Video blocks enable advanced multimodal AI interactions where agents need to process or analyze video content such as presentations, tutorials, surveillance footage, or other visual media that includes motion and temporal elements.

  • 构造器详细资料

    • VideoBlock

      public VideoBlock(Source source)
      Creates a new video block for JSON deserialization.
      参数:
      source - The video source (URL or Base64)
  • 方法详细资料

    • getSource

      public Source getSource()
      Gets the source of this video content.
      返回:
      The video source containing URL or Base64 data
    • builder

      public static VideoBlock.Builder builder()
      Creates a new builder for constructing VideoBlock instances.
      返回:
      A new builder instance