A minimal LangGraph.js system message (structural, no @langchain/langgraph import).
A type alias, not an interface, on purpose: LangGraph's messages channel accepts a role/content
object only where it is assignable to Record<string, unknown>, which an interface never is. As an
interface it failed to type-check in a node returning { messages: [sys] }.
A minimal LangGraph.js system message (structural, no
@langchain/langgraphimport).A type alias, not an interface, on purpose: LangGraph's
messageschannel accepts a role/content object only where it is assignable toRecord<string, unknown>, which an interface never is. As an interface it failed to type-check in a node returning{ messages: [sys] }.