accepts_run_manager() — langchain Function Reference
Architecture documentation for the accepts_run_manager() function in utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 78844e2e_ac82_2a01_b53f_9d4df2400b83["accepts_run_manager()"] ca66092c_447c_d201_0d3c_cfa6ca2cc9d3["utils.py"] 78844e2e_ac82_2a01_b53f_9d4df2400b83 -->|defined in| ca66092c_447c_d201_0d3c_cfa6ca2cc9d3 style 78844e2e_ac82_2a01_b53f_9d4df2400b83 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/runnables/utils.py lines 81–93
def accepts_run_manager(callable: Callable[..., Any]) -> bool: # noqa: A002
"""Check if a callable accepts a run_manager argument.
Args:
callable: The callable to check.
Returns:
`True` if the callable accepts a run_manager argument, `False` otherwise.
"""
try:
return signature(callable).parameters.get("run_manager") is not None
except ValueError:
return False
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does accepts_run_manager() do?
accepts_run_manager() is a function in the langchain codebase, defined in libs/core/langchain_core/runnables/utils.py.
Where is accepts_run_manager() defined?
accepts_run_manager() is defined in libs/core/langchain_core/runnables/utils.py at line 81.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free