get_allowed_tools() — langchain Function Reference
Architecture documentation for the get_allowed_tools() function in agent.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD cc76479e_8e7a_98f2_46e4_4a9c60bff0d6["get_allowed_tools()"] c55759c0_8c32_142f_44ff_2733a473d3e2["Agent"] cc76479e_8e7a_98f2_46e4_4a9c60bff0d6 -->|defined in| c55759c0_8c32_142f_44ff_2733a473d3e2 67c19ee5_afc1_345e_5c95_d54fc7753816["validate_tools()"] 67c19ee5_afc1_345e_5c95_d54fc7753816 -->|calls| cc76479e_8e7a_98f2_46e4_4a9c60bff0d6 fe01e602_233b_3f58_83eb_2933932c19fa["get_allowed_tools()"] cc76479e_8e7a_98f2_46e4_4a9c60bff0d6 -->|calls| fe01e602_233b_3f58_83eb_2933932c19fa style cc76479e_8e7a_98f2_46e4_4a9c60bff0d6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/agent.py lines 726–728
def get_allowed_tools(self) -> list[str] | None:
"""Get allowed tools."""
return self.allowed_tools
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does get_allowed_tools() do?
get_allowed_tools() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/agent.py.
Where is get_allowed_tools() defined?
get_allowed_tools() is defined in libs/langchain/langchain_classic/agents/agent.py at line 726.
What does get_allowed_tools() call?
get_allowed_tools() calls 1 function(s): get_allowed_tools.
What calls get_allowed_tools()?
get_allowed_tools() is called by 1 function(s): validate_tools.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free