View Source LangChain.Callbacks (LangChain v0.3.0-rc.0)

Defines the structure of callbacks and provides utilities for executing them.

Summary

Functions

Fire a named callback with the list of arguments to pass. Takes a list of callback handlers and will execute the callback for each handler that defines a handler function for it.

Functions

Link to this function

fire(callbacks, callback_name, arguments)

View Source
@spec fire([map()], atom(), [any()]) :: :ok | no_return()

Fire a named callback with the list of arguments to pass. Takes a list of callback handlers and will execute the callback for each handler that defines a handler function for it.