Skip to content
masterclass Buddy

LangChain · Class

HumanMessage

HumanMessage represents input sent by a user to a LangChain chat model. It can hold plain text or structured content.

Last updated

Since
v1.7

Syntax

HumanMessage(self, content: str | list[str | dict[Any, Any]] | None = None, content_blocks: list[types.ContentBlock] | None = None, **kwargs)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • BaseMessage
  • SystemMessage
  • Chat models
  • content_blocks
  • response_metadata

Source: HumanMessage | langchain_core | LangChain Reference. Checked 2026-11-03.