Home / Function/ on_custom_event() — langchain Function Reference

on_custom_event() — langchain Function Reference

Architecture documentation for the on_custom_event() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  1011b56d_ffc0_acdc_797f_fc9f30876158["on_custom_event()"]
  cb81f035_6209_92da_5f1a_e74d00943d49["RunManagerMixin"]
  1011b56d_ffc0_acdc_797f_fc9f30876158 -->|defined in| cb81f035_6209_92da_5f1a_e74d00943d49
  68b4a253_3986_66d9_d689_539f5e1606fa["on_custom_event()"]
  68b4a253_3986_66d9_d689_539f5e1606fa -->|calls| 1011b56d_ffc0_acdc_797f_fc9f30876158
  68b4a253_3986_66d9_d689_539f5e1606fa["on_custom_event()"]
  1011b56d_ffc0_acdc_797f_fc9f30876158 -->|calls| 68b4a253_3986_66d9_d689_539f5e1606fa
  style 1011b56d_ffc0_acdc_797f_fc9f30876158 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/callbacks/base.py lines 411–432

    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,
    ) -> Any:
        """Override to define a handler for a custom event.

        Args:
            name: The name of the custom event.
            data: The data for the custom event.

                Format will match the format specified by the user.
            run_id: The ID of the run.
            tags: The tags associated with the custom event (includes inherited tags).
            metadata: The metadata associated with the custom event (includes inherited
                metadata).
        """

Domain

Subdomains

Called By

Frequently Asked Questions

What does on_custom_event() do?
on_custom_event() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/base.py.
Where is on_custom_event() defined?
on_custom_event() is defined in libs/core/langchain_core/callbacks/base.py at line 411.
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 1 function(s): on_custom_event.

Analyze Your Own Codebase

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

Try Supermodel Free