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-corepromptsimage
    Moduleā—Since v0.1

    image

    Image prompt template for a multimodal model.

    Attributes

    Functions

    Classes

    View source on GitHub
    attribute
    DEFAULT_FORMATTER_MAPPING: dict[str, Callable[..., str]]
    attribute
    PromptTemplateFormat: Literal['f-string', 'mustache', 'jinja2']
    function
    run_in_executor
    class
    ImagePromptValue
    class
    ImageURL
    class
    PromptValue
    class
    BasePromptTemplate
    class
    ImagePromptTemplate

    Run a function in an executor.

    Image prompt value.

    Image URL for multimodal model inputs (OpenAI format).

    Represents the inner image_url object in OpenAI's Chat Completion API format. This is used by ImagePromptTemplate and ChatPromptTemplate.

    Base abstract class for inputs to any language model.

    PromptValues can be converted to both LLM (pure text-generation) inputs and chat model inputs.

    Base class for all prompt templates, returning a prompt.

    Image prompt template for a multimodal model.