add_tags() — langchain Function Reference
Architecture documentation for the add_tags() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a56e9690_28ab_6e7a_7f60_70921e03b422["add_tags()"] 24bc19d6_d1f4_bd59_6fc4_6ef5b08a4d41["BaseCallbackManager"] a56e9690_28ab_6e7a_7f60_70921e03b422 -->|defined in| 24bc19d6_d1f4_bd59_6fc4_6ef5b08a4d41 97e37111_6cf4_f745_857a_a3274612a054["remove_tags()"] a56e9690_28ab_6e7a_7f60_70921e03b422 -->|calls| 97e37111_6cf4_f745_857a_a3274612a054 style a56e9690_28ab_6e7a_7f60_70921e03b422 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/base.py lines 1061–1077
def add_tags(
self,
tags: list[str],
inherit: bool = True, # noqa: FBT001,FBT002
) -> None:
"""Add tags to the callback manager.
Args:
tags: The tags to add.
inherit: Whether to inherit the tags.
"""
for tag in tags:
if tag in self.tags:
self.remove_tags([tag])
self.tags.extend(tags)
if inherit:
self.inheritable_tags.extend(tags)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does add_tags() do?
add_tags() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/base.py.
Where is add_tags() defined?
add_tags() is defined in libs/core/langchain_core/callbacks/base.py at line 1061.
What does add_tags() call?
add_tags() calls 1 function(s): remove_tags.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free