LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coremessagescontentcreate_video_block
    Function●Since v1.0

    create_video_block

    Create a VideoContentBlock.

    Copy
    create_video_block(
      *,
      url: str | None = None,
      base64: str | None = None,
      file_id: str | None = None,
      mime_type: str | None = None,
      id: str | None = None,
      index: int | str | None = None,
      **kwargs: Any = {}
    ) -> VideoContentBlock

    The id is generated automatically if not provided, using a UUID4 format prefixed with 'lc_' to indicate it is a LangChain-generated ID.

    Parameters

    NameTypeDescription
    urlstr | None
    Default:None

    URL of the video.

    base64str | None
    Default:None

    Base64-encoded video data.

    file_idstr | None
    Default:None

    ID of the video file from a file storage system.

    mime_typestr | None
    Default:None

    MIME type of the video.

    Required for base64 data.

    idstr | None
    Default:None

    Content block identifier.

    Generated automatically if not provided.

    indexint | str | None
    Default:None

    Index of block in aggregate response.

    Used during streaming.

    View source on GitHub