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.
Signature
def filter_tools(tools: Optional[List[Any]]) -> List[Any]Parameters
ParamField
OptionalNo description available.
Returns
ResponseField
List[Any]The result of the operation.
Uses
is_tool_allowed
Used By
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 2303