Understanding LangChain Message Types: Human, AI, System, and Tool Messages
This guide explains how LangChain structures interactions with chat models using role‑based Message objects—HumanMessage, AIMessage, SystemMessage, ToolMessage, and others—detailing their purposes, code examples, and how they enable multi‑turn AI agent workflows.
