BaseContent
autogen.llm_clients.models.content_blocks.BaseContent #
Bases: BaseModel
Base class for all content blocks with extension points.
This serves as the foundation for all content types, providing: - Common type field for discriminated unions (ContentType enum or str for unknown types) - Extra field for storing unknown provider-specific data - Pydantic configuration for flexible field handling - text property for extracting text representation
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.