ahandle_event#
- async langchain_core.callbacks.manager.ahandle_event(handlers: list[BaseCallbackHandler], event_name: str, ignore_condition_name: str | None, *args: Any, **kwargs: Any) None [source]#
Async generic event handler for AsyncCallbackManager.
Note: This function is used by LangServe to handle events.
- Parameters:
handlers (list[BaseCallbackHandler]) β The list of handlers that will handle the event.
event_name (str) β The name of the event (e.g., βon_llm_startβ).
ignore_condition_name (str | None) β Name of the attribute defined on handler that if True will cause the handler to be skipped for the given event.
*args (Any) β The arguments to pass to the event handler.
**kwargs (Any) β The keyword arguments to pass to the event handler.
- Return type:
None