🔥 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) · LangChain Agents in Depth · Advanced · 28 min read

LangChain Runtime, Context and ToolRuntime: Pass User, Tenant and Services to Tools and Middleware Safely

Learn how an agent run carries dependencies. Understand context versus state versus store, define a context_schema and pass context at invoke time, read it from tools with ToolRuntime and from middleware with Runtime, write dynamic prompts from context, stream custom progress, use execution info, and design secure, testable tools that never trust the model for identity.

LangChain Runtime, Context and ToolRuntime: Pass User, Tenant and Services to Tools and Middleware Safely: lesson illustration

A first look

  • Advanced level · 28 min read
  • 7 interview questions with model answers
  • LangChain Agents in Depth · Agentic AI (LangChain and LangGraph)

You will learn to

  • The three kinds of data an agent run uses: context, state and store
  • Defining contextschema and passing context= when invoking
  • ToolRuntime in tools: context, state, store, tool call ID, streaming and execution info
  • …and 3 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.