Skip to content
masterclass Buddy

LangChain · Class

SystemMessage

SystemMessage represents a LangChain message with the system role. It carries instructions and supports text access, formatting, serialization, and concatenation.

Last updated

Syntax

new SystemMessage(content)

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

Subscribe
  • BaseMessage
  • MessageStructure
  • MessageType
  • StoredMessage

Source: SystemMessage | @langchain/core | LangChain Reference. Checked 2026-11-03.