Home / Function/ get_child() — langchain Function Reference

get_child() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  bb9693c0_b78d_da61_c97e_af8f234e674a["get_child()"]
  7d66e2cd_1ace_1e7a_ebe2_87afe1705c44["AsyncParentRunManager"]
  bb9693c0_b78d_da61_c97e_af8f234e674a -->|defined in| 7d66e2cd_1ace_1e7a_ebe2_87afe1705c44
  f1a5b3c9_6772_a478_ad3a_5e2dabf4e2a3["get_child()"]
  f1a5b3c9_6772_a478_ad3a_5e2dabf4e2a3 -->|calls| bb9693c0_b78d_da61_c97e_af8f234e674a
  57f655ed_89b3_c486_de7e_73ebe360134a["atrace_as_chain_group()"]
  57f655ed_89b3_c486_de7e_73ebe360134a -->|calls| bb9693c0_b78d_da61_c97e_af8f234e674a
  f1a5b3c9_6772_a478_ad3a_5e2dabf4e2a3["get_child()"]
  bb9693c0_b78d_da61_c97e_af8f234e674a -->|calls| f1a5b3c9_6772_a478_ad3a_5e2dabf4e2a3
  style bb9693c0_b78d_da61_c97e_af8f234e674a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/callbacks/manager.py lines 653–669

    def get_child(self, tag: str | None = None) -> AsyncCallbackManager:
        """Get a child callback manager.

        Args:
            tag: The tag for the child callback manager.

        Returns:
            The child callback manager.

        """
        manager = AsyncCallbackManager(handlers=[], parent_run_id=self.run_id)
        manager.set_handlers(self.inheritable_handlers)
        manager.add_tags(self.inheritable_tags)
        manager.add_metadata(self.inheritable_metadata)
        if tag is not None:
            manager.add_tags([tag], inherit=False)
        return manager

Domain

Subdomains

Calls

Frequently Asked Questions

What does get_child() do?
get_child() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/manager.py.
Where is get_child() defined?
get_child() is defined in libs/core/langchain_core/callbacks/manager.py at line 653.
What does get_child() call?
get_child() calls 1 function(s): get_child.
What calls get_child()?
get_child() is called by 2 function(s): atrace_as_chain_group, get_child.

Analyze Your Own Codebase

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

Try Supermodel Free