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 f1a5b3c9_6772_a478_ad3a_5e2dabf4e2a3["get_child()"] f018c4fc_a0e5_5ff1_08db_f4838ee96e68["ParentRunManager"] f1a5b3c9_6772_a478_ad3a_5e2dabf4e2a3 -->|defined in| f018c4fc_a0e5_5ff1_08db_f4838ee96e68 bb9693c0_b78d_da61_c97e_af8f234e674a["get_child()"] bb9693c0_b78d_da61_c97e_af8f234e674a -->|calls| f1a5b3c9_6772_a478_ad3a_5e2dabf4e2a3 e694e06d_9c3a_9620_74b6_743814a492ce["trace_as_chain_group()"] e694e06d_9c3a_9620_74b6_743814a492ce -->|calls| f1a5b3c9_6772_a478_ad3a_5e2dabf4e2a3 bb9693c0_b78d_da61_c97e_af8f234e674a["get_child()"] f1a5b3c9_6772_a478_ad3a_5e2dabf4e2a3 -->|calls| bb9693c0_b78d_da61_c97e_af8f234e674a style f1a5b3c9_6772_a478_ad3a_5e2dabf4e2a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/manager.py lines 569–585
def get_child(self, tag: str | None = None) -> CallbackManager:
"""Get a child callback manager.
Args:
tag: The tag for the child callback manager.
Returns:
The child callback manager.
"""
manager = CallbackManager(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
Called By
Source
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 569.
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): get_child, trace_as_chain_group.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free