handle_event#
- langchain_core.callbacks.manager.handle_event(
- handlers: list[BaseCallbackHandler],
- event_name: str,
- ignore_condition_name: str | None,
- *args: Any,
- **kwargs: Any,
Generic event handler for CallbackManager.
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