🔥 BLACK FRIDAY SALE1 course ₹199·any 3 courses ₹399 for 3 months·ALL courses + 1 mock interview ₹599 for 6 monthsClaim offer →

Agentic AI (LangChain and LangGraph) · Agent Foundations · Intermediate · 26 min read

LangChain Messages, Prompts and Content Blocks: System, Human, AI and Tool Messages, Multimodal Input and Streaming Chunks

Understand the data every model call is made of. Learn the four message types and the dictionary format, content as strings versus content blocks, standard block types (text, reasoning, images, files, tool calls), multimodal input, tool_calls and ToolMessage artifacts, usage and response metadata, streaming with AIMessageChunk, prompt design and templates, serialisation safety, and message-history rules that prevent API errors.

LangChain Messages, Prompts and Content Blocks: System, Human, AI and Tool Messages, Multimodal Input and Streaming Chunks: lesson illustration

A first look

  • Intermediate level · 26 min read
  • 7 interview questions with model answers
  • Agent Foundations · Agentic AI (LangChain and LangGraph)

You will learn to

  • Messages as the unit of context: roles, content and metadata
  • SystemMessage, HumanMessage, AIMessage, ToolMessage and the dict format
  • Content: strings, provider-native blocks and standard content blocks
  • …and 4 more topics inside
Create an account to start

Create a free account to see what this lesson covers

  • Every free lesson in every section, in full
  • Track your progress and pick up where you left off
  • Free practice questions and an incident simulation
  • Takes under a minute: name, email and a password

No card needed. Full access to Agentic AI (LangChain and LangGraph) is a paid upgrade you can choose later.