Home / Function/ on_chat_model_start() — langchain Function Reference

on_chat_model_start() — langchain Function Reference

Architecture documentation for the on_chat_model_start() function in test_async_callbacks.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  3836c841_df73_69f9_bf52_a6d4697b3cde["on_chat_model_start()"]
  48f040a3_2205_5d5a_3161_82a327c126cf["MyCustomAsyncHandler"]
  3836c841_df73_69f9_bf52_a6d4697b3cde -->|defined in| 48f040a3_2205_5d5a_3161_82a327c126cf
  style 3836c841_df73_69f9_bf52_a6d4697b3cde fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/benchmarks/test_async_callbacks.py lines 18–31

    async def on_chat_model_start(
        self,
        serialized: dict[str, Any],
        messages: list[list[BaseMessage]],
        *,
        run_id: UUID,
        parent_run_id: UUID | None = None,
        tags: list[str] | None = None,
        metadata: dict[str, Any] | None = None,
        **kwargs: Any,
    ) -> Any:
        # Do nothing
        # Required to implement since this is an abstract method
        pass

Domain

Subdomains

Frequently Asked Questions

What does on_chat_model_start() do?
on_chat_model_start() is a function in the langchain codebase, defined in libs/core/tests/benchmarks/test_async_callbacks.py.
Where is on_chat_model_start() defined?
on_chat_model_start() is defined in libs/core/tests/benchmarks/test_async_callbacks.py at line 18.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free