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
  19cba4e1_3ea2_ae4a_fd53_0a8afe0002fd["get_allowed_tools()"]
  da24d66e_6dad_d8e1_dddc_7885d3e6576f["BaseMultiActionAgent"]
  19cba4e1_3ea2_ae4a_fd53_0a8afe0002fd -->|defined in| da24d66e_6dad_d8e1_dddc_7885d3e6576f
  1758f18d_e340_dd7b_0ea3_7bf08d14d9d7["get_allowed_tools()"]
  1758f18d_e340_dd7b_0ea3_7bf08d14d9d7 -->|calls| 19cba4e1_3ea2_ae4a_fd53_0a8afe0002fd
  1758f18d_e340_dd7b_0ea3_7bf08d14d9d7["get_allowed_tools()"]
  19cba4e1_3ea2_ae4a_fd53_0a8afe0002fd -->|calls| 1758f18d_e340_dd7b_0ea3_7bf08d14d9d7
  style 19cba4e1_3ea2_ae4a_fd53_0a8afe0002fd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/agent.py lines 229–235

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

        Returns:
            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 229.
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): get_allowed_tools.

Analyze Your Own Codebase

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

Try Supermodel Free