_arun() — langchain Function Reference
Architecture documentation for the _arun() function in tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 2548f89c_fb13_5aef_01f6_2dc696a6bcc2["_arun()"] 1fa17fb9_bf5e_55fe_17f6_d2a92f558f45["InvalidTool"] 2548f89c_fb13_5aef_01f6_2dc696a6bcc2 -->|defined in| 1fa17fb9_bf5e_55fe_17f6_d2a92f558f45 style 2548f89c_fb13_5aef_01f6_2dc696a6bcc2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/tools.py lines 34–45
async def _arun(
self,
requested_tool_name: str,
available_tool_names: list[str],
run_manager: AsyncCallbackManagerForToolRun | None = None,
) -> str:
"""Use the tool asynchronously."""
available_tool_names_str = ", ".join(list(available_tool_names))
return (
f"{requested_tool_name} is not a valid tool, "
f"try one of [{available_tool_names_str}]."
)
Domain
Subdomains
Source
Frequently Asked Questions
What does _arun() do?
_arun() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/tools.py.
Where is _arun() defined?
_arun() is defined in libs/langchain/langchain_classic/agents/tools.py at line 34.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free