Dev helper handlers
The handlers in here are just for development and testing purposes. They are not used in production.
E.g. Being easily able to print only certain parts of callbacks, or to record the call args of certain methods.
CaptureStartEndHandler
Bases: AsyncCallbackHandler
Useful in testing to capture the full call args of various methods.
on_chat_start_call_args = []
instance-attribute
on_chat_start_call_kwargs = []
instance-attribute
on_llm_end_call_args = []
instance-attribute
on_llm_end_call_kwargs = []
instance-attribute
__init__()
on_chat_model_start(*args, **kwargs)
async
on_llm_end(*args, **kwargs)
async
ExperimentalCallbackHandler
Bases: AsyncCallbackHandler
Using this when experimenting in jupyter to be able to see what is arriving at each method.