·LangChain
Module 12 Lesson 1: Introduction to Callbacks
Listening to the Chain. How to use the Callback system to intercept events like 'LLM Start' or 'Tool End' for logging and UI updates.
3 articles
Listening to the Chain. How to use the Callback system to intercept events like 'LLM Start' or 'Tool End' for logging and UI updates.
Connecting the Hearths. How to pass your custom handlers to models, tools, and executors to start capturing events.
Hands-on: Build a Cost-Monitoring Callback that calculates and prints the price of every AI request.