LangChainLangChain 1.4 · Python 3.10+
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
43 small wins to finish your pathNext lesson

A morning at the desk

Two customers and three messages: a policy question, a refund that goes through, and a refund that does not. This is the desk doing its job.

Example
from chat import say

say("ravi", "How long does a refund take?", "ravi-1")
say("ravi", "Please refund A17", "ravi-1")
say("mei", "Please refund A17", "mei-1")
  • The policy question was answered from the refunds document, not from anything the model knew.
  • Ravi's refund paused, was approved, and ran: A17 is his.
  • Mei's refund of A17 also paused and was also approved, and the tool still refused it. Approval says a call may run; the tool decides whether it should.
Try it yourself
  • Change say to reject refunds instead of approving them, and run the morning again.
  • Ask a question that needs no tool at all and follow it through the drawing.
  • Give Mei an order of her own in ORDERS and refund it.

Every expert started right here.