FakeCallbackHandlerWithChatStart Class — langchain Architecture
Architecture documentation for the FakeCallbackHandlerWithChatStart class in callbacks.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 02988c67_bd5d_7cba_92df_27b446da7ff1["FakeCallbackHandlerWithChatStart"] 8adec285_7535_1bed_5947_2a523043e071["FakeCallbackHandler"] 02988c67_bd5d_7cba_92df_27b446da7ff1 -->|extends| 8adec285_7535_1bed_5947_2a523043e071 b9553aad_b797_0a7b_73ed_8d05b0819c0f["BaseMessage"] 02988c67_bd5d_7cba_92df_27b446da7ff1 -->|extends| b9553aad_b797_0a7b_73ed_8d05b0819c0f 07deddc6_bb63_0758_8452_6935ef3e67d6["callbacks.py"] 02988c67_bd5d_7cba_92df_27b446da7ff1 -->|defined in| 07deddc6_bb63_0758_8452_6935ef3e67d6 79030333_5a66_4510_ef8e_5a374021c531["on_chat_model_start()"] 02988c67_bd5d_7cba_92df_27b446da7ff1 -->|method| 79030333_5a66_4510_ef8e_5a374021c531
Relationship Graph
Source Code
libs/core/tests/unit_tests/fake/callbacks.py lines 283–295
class FakeCallbackHandlerWithChatStart(FakeCallbackHandler):
@override
def on_chat_model_start(
self,
serialized: dict[str, Any],
messages: list[list[BaseMessage]],
*,
run_id: UUID,
parent_run_id: UUID | None = None,
**kwargs: Any,
) -> Any:
assert all(isinstance(m, BaseMessage) for m in chain(*messages))
self.on_chat_model_start_common()
Defined In
Extends
Source
Frequently Asked Questions
What is the FakeCallbackHandlerWithChatStart class?
FakeCallbackHandlerWithChatStart is a class in the langchain codebase, defined in libs/core/tests/unit_tests/fake/callbacks.py.
Where is FakeCallbackHandlerWithChatStart defined?
FakeCallbackHandlerWithChatStart is defined in libs/core/tests/unit_tests/fake/callbacks.py at line 283.
What does FakeCallbackHandlerWithChatStart extend?
FakeCallbackHandlerWithChatStart extends FakeCallbackHandler, BaseMessage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free