import { ... } from "@langchain/core/context";Get the value of a previously set context variable. Context variables are scoped to any child runnables called by the current runnable, or globally if set outside of any runnable.
Register a callback configure hook to automatically add callback handlers to all runs.
There are two ways to use this:
Using a context variable:
contextVar to specify the variable namesetContextVariable() to store your handler instanceUsing an environment variable:
envVar and handlerClassSet a context variable. Context variables are scoped to any child runnables called by the current runnable, or globally if set outside of any runnable.