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-corelanguage_modelsmodel_profileModelProfile
    Classā—Since v1.1

    ModelProfile

    Model profile.

    Beta feature

    This is a beta feature. The format of model profiles is subject to change.

    Provides information about chat model capabilities, such as context window sizes and supported features.

    Copy
    ModelProfile()

    Bases

    TypedDict

    Constructors

    constructor
    __init__
    NameType
    max_input_tokensint
    text_inputsbool
    image_inputsbool
    image_url_inputsbool
    pdf_inputsbool
    audio_inputsbool
    video_inputsbool
    image_tool_messagebool
    pdf_tool_messagebool
    max_output_tokensint
    reasoning_outputbool
    text_outputsbool
    image_outputsbool
    audio_outputsbool
    video_outputsbool
    tool_callingbool
    tool_choicebool
    structured_outputbool

    Attributes

    attribute
    max_input_tokens: int

    Maximum context window (tokens)

    attribute
    text_inputs: bool

    Whether text inputs are supported.

    attribute
    image_inputs: bool

    Whether image inputs are supported.

    attribute
    image_url_inputs: bool

    Whether image URL inputs are supported.

    attribute
    pdf_inputs: bool

    Whether PDF inputs are supported.

    attribute
    audio_inputs: bool

    Whether audio inputs are supported.

    attribute
    video_inputs: bool

    Whether video inputs are supported.

    attribute
    image_tool_message: bool

    Whether images can be included in tool messages.

    attribute
    pdf_tool_message: bool

    Whether PDFs can be included in tool messages.

    attribute
    max_output_tokens: int

    Maximum output tokens

    attribute
    reasoning_output: bool

    Whether the model supports reasoning / chain-of-thought

    attribute
    text_outputs: bool

    Whether text outputs are supported.

    attribute
    image_outputs: bool

    Whether image outputs are supported.

    attribute
    audio_outputs: bool

    Whether audio outputs are supported.

    attribute
    video_outputs: bool

    Whether video outputs are supported.

    attribute
    tool_calling: bool

    Whether the model supports tool calling

    attribute
    tool_choice: bool

    Whether the model supports tool choice

    attribute
    structured_output: bool

    Whether the model supports a native structured output feature

    View source on GitHub