test_async_custom_event_root_dispatch() — langchain Function Reference
Architecture documentation for the test_async_custom_event_root_dispatch() function in test_dispatch_custom_event.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 0cdda2f5_db8b_f68e_7fa5_50d4844907ea["test_async_custom_event_root_dispatch()"] f4cde4a2_4706_d7d1_26f9_82085d97a270["test_dispatch_custom_event.py"] 0cdda2f5_db8b_f68e_7fa5_50d4844907ea -->|defined in| f4cde4a2_4706_d7d1_26f9_82085d97a270 style 0cdda2f5_db8b_f68e_7fa5_50d4844907ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/callbacks/test_dispatch_custom_event.py lines 53–60
async def test_async_custom_event_root_dispatch() -> None:
"""Test adhoc event in a nested chain."""
# This just tests that nothing breaks on the path.
# It shouldn't do anything at the moment, since the tracer isn't configured
# to handle adhoc events.
# Expected behavior is that the event cannot be dispatched
with pytest.raises(RuntimeError):
await adispatch_custom_event("event1", {"x": 1})
Domain
Subdomains
Source
Frequently Asked Questions
What does test_async_custom_event_root_dispatch() do?
test_async_custom_event_root_dispatch() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/callbacks/test_dispatch_custom_event.py.
Where is test_async_custom_event_root_dispatch() defined?
test_async_custom_event_root_dispatch() is defined in libs/core/tests/unit_tests/callbacks/test_dispatch_custom_event.py at line 53.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free