AsyncCustomCallbackHandler Class — langchain Architecture
Architecture documentation for the AsyncCustomCallbackHandler class in test_dispatch_custom_event.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 980727a2_4f48_4083_8d2f_4c1b5e1c3bf3["AsyncCustomCallbackHandler"] e108f394_9734_a4fd_0bef_19ef9b674d50["AsyncCallbackHandler"] 980727a2_4f48_4083_8d2f_4c1b5e1c3bf3 -->|extends| e108f394_9734_a4fd_0bef_19ef9b674d50 f4cde4a2_4706_d7d1_26f9_82085d97a270["test_dispatch_custom_event.py"] 980727a2_4f48_4083_8d2f_4c1b5e1c3bf3 -->|defined in| f4cde4a2_4706_d7d1_26f9_82085d97a270 5b65e450_d256_4c88_03c8_b3596bbab615["__init__()"] 980727a2_4f48_4083_8d2f_4c1b5e1c3bf3 -->|method| 5b65e450_d256_4c88_03c8_b3596bbab615 9b745a1e_f367_e320_df74_570d69da92b0["on_custom_event()"] 980727a2_4f48_4083_8d2f_4c1b5e1c3bf3 -->|method| 9b745a1e_f367_e320_df74_570d69da92b0
Relationship Graph
Source Code
libs/core/tests/unit_tests/callbacks/test_dispatch_custom_event.py lines 17–40
class AsyncCustomCallbackHandler(AsyncCallbackHandler):
def __init__(self) -> None:
self.events: list[Any] = []
async def on_custom_event(
self,
name: str,
data: Any,
*,
run_id: UUID,
tags: list[str] | None = None,
metadata: dict[str, Any] | None = None,
**kwargs: Any,
) -> None:
assert kwargs == {}
self.events.append(
(
name,
data,
run_id,
tags,
metadata,
)
)
Extends
Source
Frequently Asked Questions
What is the AsyncCustomCallbackHandler class?
AsyncCustomCallbackHandler is a class in the langchain codebase, defined in libs/core/tests/unit_tests/callbacks/test_dispatch_custom_event.py.
Where is AsyncCustomCallbackHandler defined?
AsyncCustomCallbackHandler is defined in libs/core/tests/unit_tests/callbacks/test_dispatch_custom_event.py at line 17.
What does AsyncCustomCallbackHandler extend?
AsyncCustomCallbackHandler extends AsyncCallbackHandler.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free