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.
SubscribeRelated
BaseMessageSystemMessageChat modelscontent_blocksresponse_metadata