Load Tools From Tools Py • AI Agents Framework
load_tools_from_tools_py: Imports and returns all contents from tools.py file.
load_tools_from_tools_py
Method
</div>
This is a method of the AgentsGenerator class in the agents_generator module.
Imports and returns all contents from tools.py file. Also adds the tools to the global namespace.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
agent["Agent"] -- "uses" --> tool["Tool: load_tools_from_tools_py"]
tool -- "returns" --> result["Result"]
style tool fill:#189AB4,color:#fff
style agent fill:#8B0000,color:#fff
style result fill:#8B0000,color:#fffSignature
def load_tools_from_tools_py() -> AnyReturns
ResponseField
AnyA list of callable functions with proper formatting
Uses
spec_from_file_locationdebugmodule_from_specexec_moduleinspect.getmemberscallableinspect.isclassglobalswarning
Source
View on GitHubpraisonai/agents_generator.py at line 292