Skip to main content

get_tool_definitions

Function
This function is defined in the registry module.
Get OpenAI-compatible tool definitions with dynamic schema overrides applied. This is the main entry point for getting tool schemas that respects dynamic overrides. Called every time tools need to be passed to the LLM.

Signature

Parameters

Optional
Optional (tool_name) -> bool filter; denied tools are dropped from the advertised schema (deny = hide).

Returns

List[Dict[str, Any]]
List of OpenAI-compatible tool definition dictionaries

Uses

  • get_tool_definitions
  • get_registry

Used By

Source

View on GitHub

praisonaiagents/tools/registry.py at line 642

Tools Concept

Create Custom Tools

Tool Development