define_tools
define_tools
Returns the list of SWAIG functions registered on this agent. The default
implementation collects all tools added via
define_tool(),
the @tool decorator, or
register_swaig_function().
Override this method in a subclass to dynamically filter, reorder, or inject tools at SWML generation time.
In most cases you do not need to override this method. Use
define_tool() or the
@tool decorator to register
tools instead.
Parameters
None.
Returns
list[SWAIGFunction | dict] — List of SWAIGFunction objects and/or raw
dictionaries (for DataMap-based tools).