Home / Function/ get_sync() — langchain Function Reference

get_sync() — langchain Function Reference

Architecture documentation for the get_sync() function in manager.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  15fb9e6a_b807_fc3d_7c7c_2446ae07f07e["get_sync()"]
  d905f7ba_84e1_978e_30ed_f25fd37354ce["AsyncCallbackManagerForChainRun"]
  15fb9e6a_b807_fc3d_7c7c_2446ae07f07e -->|defined in| d905f7ba_84e1_978e_30ed_f25fd37354ce
  7697d929_b2db_4597_c3b8_ccc0e28feb61["get_sync()"]
  15fb9e6a_b807_fc3d_7c7c_2446ae07f07e -->|calls| 7697d929_b2db_4597_c3b8_ccc0e28feb61
  style 15fb9e6a_b807_fc3d_7c7c_2446ae07f07e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/callbacks/manager.py lines 948–963

    def get_sync(self) -> CallbackManagerForChainRun:
        """Get the equivalent sync `RunManager`.

        Returns:
            The sync `RunManager`.
        """
        return CallbackManagerForChainRun(
            run_id=self.run_id,
            handlers=self.handlers,
            inheritable_handlers=self.inheritable_handlers,
            parent_run_id=self.parent_run_id,
            tags=self.tags,
            inheritable_tags=self.inheritable_tags,
            metadata=self.metadata,
            inheritable_metadata=self.inheritable_metadata,
        )

Domain

Subdomains

Calls

Frequently Asked Questions

What does get_sync() do?
get_sync() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/manager.py.
Where is get_sync() defined?
get_sync() is defined in libs/core/langchain_core/callbacks/manager.py at line 948.
What does get_sync() call?
get_sync() calls 1 function(s): get_sync.

Analyze Your Own Codebase

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

Try Supermodel Free