Home / Function/ get_allowed_tools() — langchain Function Reference

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
  fe01e602_233b_3f58_83eb_2933932c19fa["get_allowed_tools()"]
  3b9abff9_c907_d2e1_41bb_cbceeb6d27f4["BaseSingleActionAgent"]
  fe01e602_233b_3f58_83eb_2933932c19fa -->|defined in| 3b9abff9_c907_d2e1_41bb_cbceeb6d27f4
  10eb10f7_a6fc_3c09_0a97_6a2b004cf32f["get_allowed_tools()"]
  10eb10f7_a6fc_3c09_0a97_6a2b004cf32f -->|calls| fe01e602_233b_3f58_83eb_2933932c19fa
  cc76479e_8e7a_98f2_46e4_4a9c60bff0d6["get_allowed_tools()"]
  cc76479e_8e7a_98f2_46e4_4a9c60bff0d6 -->|calls| fe01e602_233b_3f58_83eb_2933932c19fa
  10eb10f7_a6fc_3c09_0a97_6a2b004cf32f["get_allowed_tools()"]
  fe01e602_233b_3f58_83eb_2933932c19fa -->|calls| 10eb10f7_a6fc_3c09_0a97_6a2b004cf32f
  style fe01e602_233b_3f58_83eb_2933932c19fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/agent.py lines 63–65

    def get_allowed_tools(self) -> list[str] | None:
        """Get allowed tools."""
        return None

Subdomains

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 63.
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 2 function(s): get_allowed_tools, get_allowed_tools.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free