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

    attribute
    DEFAULT_FORMATTER_MAPPING: dict[str, Callable[..., str]]
    attribute
    PromptTemplateFormat: Literal['f-string', 'mustache', 'jinja2']

    Functions

    function
    run_in_executor

    Run a function in an executor.

    Classes

    class
    ImagePromptValue

    Image prompt value.

    class
    ImageURL

    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.

    class
    PromptValue

    Base abstract class for inputs to any language model.

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

    class
    BasePromptTemplate

    Base class for all prompt templates, returning a prompt.

    class
    ImagePromptTemplate

    Image prompt template for a multimodal model.

    View source on GitHub