Filter Tools • AI Agent SDK

filter_tools: Return a copy of “tools“ with denied/disallowed tools removed.

filter_tools

Method

</div>

This is a method of the ToolPolicy class in the protocols module.

Return a copy of `tools` with denied/disallowed tools removed.

Diagram

uses

returns

Agent

Tool: filter_tools

Result

Signature

python
def filter_tools(tools: Optional[List[Any]]) -> List[Any]

Parameters

ParamField Optional

No description available.

Returns

ResponseField List[Any]

The result of the operation.

Uses

  • is_tool_allowed

Used By

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 2303


Related Documentation