Skip to content

VideoContent

autogen.llm_clients.models.content_blocks.VideoContent #

Bases: BaseContent

Video content block.

Supports both URLs and data URIs (base64-encoded blob data): - video_url: Remote HTTP(S) URL to the video file - data_uri: Base64-encoded video data (e.g., "data:video/mp4;base64,...")

Note: Provide either video_url OR data_uri, not both.

type class-attribute instance-attribute #

type = VIDEO

video_url class-attribute instance-attribute #

video_url = None

data_uri class-attribute instance-attribute #

data_uri = None

extra class-attribute instance-attribute #

extra = Field(default_factory=dict)

Config #

extra class-attribute instance-attribute #

extra = 'allow'

get_text #

get_text()

Extract text representation of content block.

Override in subclasses to provide specific text extraction logic. Default returns empty string for content blocks without text.

Source code in autogen/llm_clients/models/content_blocks.py
def get_text(self) -> str:
    """Extract text representation of content block.

    Override in subclasses to provide specific text extraction logic.
    Default returns empty string for content blocks without text.
    """
    return ""