FakeAsyncTracer Class — langchain Architecture
Architecture documentation for the FakeAsyncTracer class in test_async_base_tracer.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 76a79fa4_6868_8445_7296_17f136600713["FakeAsyncTracer"] 6491c2d5_982b_c4f4_e268_52f0acf4d29b["AsyncBaseTracer"] 76a79fa4_6868_8445_7296_17f136600713 -->|extends| 6491c2d5_982b_c4f4_e268_52f0acf4d29b fafe6e9a_57bb_c323_638d_461ac496c1f9["test_async_base_tracer.py"] 76a79fa4_6868_8445_7296_17f136600713 -->|defined in| fafe6e9a_57bb_c323_638d_461ac496c1f9 b8d05e85_40ff_6428_a3d9_5d725f4787f5["__init__()"] 76a79fa4_6868_8445_7296_17f136600713 -->|method| b8d05e85_40ff_6428_a3d9_5d725f4787f5 55bf7c3f_e617_4754_f3b1_8d8388d25da1["_persist_run()"] 76a79fa4_6868_8445_7296_17f136600713 -->|method| 55bf7c3f_e617_4754_f3b1_8d8388d25da1
Relationship Graph
Source Code
libs/core/tests/unit_tests/tracers/test_async_base_tracer.py lines 24–33
class FakeAsyncTracer(AsyncBaseTracer):
"""Fake tracer to test async based tracers."""
def __init__(self) -> None:
"""Initialize the tracer."""
super().__init__()
self.runs: list[Run] = []
async def _persist_run(self, run: Run) -> None:
self.runs.append(run)
Extends
Source
Frequently Asked Questions
What is the FakeAsyncTracer class?
FakeAsyncTracer is a class in the langchain codebase, defined in libs/core/tests/unit_tests/tracers/test_async_base_tracer.py.
Where is FakeAsyncTracer defined?
FakeAsyncTracer is defined in libs/core/tests/unit_tests/tracers/test_async_base_tracer.py at line 24.
What does FakeAsyncTracer extend?
FakeAsyncTracer extends AsyncBaseTracer.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free