get_allowed_tools() — langchain Function Reference
Architecture documentation for the get_allowed_tools() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b04af6dc_211b_11db_bf83_c33dcf2dab7f["get_allowed_tools()"] b444f628_93a3_fafc_0827_7b9ca1eef67c["OpenAIFunctionsAgent"] b04af6dc_211b_11db_bf83_c33dcf2dab7f -->|defined in| b444f628_93a3_fafc_0827_7b9ca1eef67c style b04af6dc_211b_11db_bf83_c33dcf2dab7f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/openai_functions_agent/base.py lines 60–62
def get_allowed_tools(self) -> list[str]:
"""Get allowed tools."""
return [t.name for t in self.tools]
Domain
Subdomains
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/openai_functions_agent/base.py.
Where is get_allowed_tools() defined?
get_allowed_tools() is defined in libs/langchain/langchain_classic/agents/openai_functions_agent/base.py at line 60.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free