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-coreprompt_valuesChatPromptValueConcrete
    Class●Since v0.1

    ChatPromptValueConcrete

    Chat prompt value which explicitly lists out the message types it accepts.

    For use in external schemas.

    Copy
    ChatPromptValueConcrete(
      self,
      *args: Any = (),
      **kwargs: Any = {}
    )

    Bases

    ChatPromptValue

    Attributes

    attribute
    messages: Sequence[AnyMessage]

    Sequence of messages.

    attribute
    type: Literal['ChatPromptValueConcrete']

    Inherited fromChatPromptValue

    Methods

    Mto_string
    —

    Return prompt value as string.

    Mto_messages
    —

    Return prompt as a list of messages.

    Mget_lc_namespace
    —

    Get the namespace of the LangChain object.

    Inherited fromPromptValue

    Methods

    Mis_lc_serializable
    —

    Return True as this class is serializable.

    Mget_lc_namespace
    —

    Get the namespace of the LangChain object.

    Mto_string
    —

    Return prompt value as string.

    Mto_messages
    —

    Return prompt as a list of messages.

    Inherited fromSerializable

    Attributes

    Alc_secrets: dict[str, str]
    —

    A map of constructor argument names to secret ids.

    Alc_attributes: dict
    —

    List of attribute names that should be included in the serialized kwargs.

    Amodel_config

    Methods

    Mis_lc_serializable
    —

    Return True as this class is serializable.

    Mget_lc_namespace
    —

    Get the namespace of the LangChain object.

    Mlc_id
    —

    Return a unique identifier for this class for serialization purposes.

    Mto_json
    —

    Convert the graph to a JSON-serializable format.

    Mto_json_not_implemented
    —

    Serialize a "not implemented" object.

    View source on GitHub