on_custom_event() — langchain Function Reference
Architecture documentation for the on_custom_event() function in test_dispatch_custom_event.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 69abfcaa_2265_6f22_e92f_293002c66609["on_custom_event()"] 1e393b85_445b_2577_7e40_007160e15d28["CustomCallbackManager"] 69abfcaa_2265_6f22_e92f_293002c66609 -->|defined in| 1e393b85_445b_2577_7e40_007160e15d28 a755f762_be6b_b572_cf25_0a2f3e072485["on_custom_event()"] a755f762_be6b_b572_cf25_0a2f3e072485 -->|calls| 69abfcaa_2265_6f22_e92f_293002c66609 f635742f_77dd_1440_f710_a31d4d73059c["test_sync_callback_manager()"] f635742f_77dd_1440_f710_a31d4d73059c -->|calls| 69abfcaa_2265_6f22_e92f_293002c66609 a755f762_be6b_b572_cf25_0a2f3e072485["on_custom_event()"] 69abfcaa_2265_6f22_e92f_293002c66609 -->|calls| a755f762_be6b_b572_cf25_0a2f3e072485 style 69abfcaa_2265_6f22_e92f_293002c66609 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/callbacks/test_dispatch_custom_event.py lines 121–140
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,
)
)
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does on_custom_event() do?
on_custom_event() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/callbacks/test_dispatch_custom_event.py.
Where is on_custom_event() defined?
on_custom_event() is defined in libs/core/tests/unit_tests/callbacks/test_dispatch_custom_event.py at line 121.
What does on_custom_event() call?
on_custom_event() calls 1 function(s): on_custom_event.
What calls on_custom_event()?
on_custom_event() is called by 2 function(s): on_custom_event, test_sync_callback_manager.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free