get_tool_definition
Method
This is a method of the ToolRegistry class in the registry module.Get the effective OpenAI-compatible definition for one registered name. Unlike :meth:
get, which returns the raw tool object, this applies any
dynamic schema_override (via ToolEntry.schema) and forces the
advertised function.name to the registry key, so a callable
registered under an alias is offered — and later resolved — under that
alias rather than its underlying __name__.
Returns None if the name is unknown or unavailable.
Signature
Parameters
str
required
No description available.
Returns
Optional[Dict[str, Any]]
The result of the operation.
Uses
discover_pluginslogging.error
Source
View on GitHub
praisonaiagents/tools/registry.py at line 307
