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.

Diagram

uses

returns

Agent

Tool: load_tools_from_tools_py

Result

Signature

python
def load_tools_from_tools_py() -> Any

Returns

ResponseField Any

A list of callable functions with proper formatting

Uses

  • spec_from_file_location
  • debug
  • module_from_spec
  • exec_module
  • inspect.getmembers
  • callable
  • inspect.isclass
  • globals
  • warning

Source

View on GitHub

praisonai/agents_generator.py at line 292


Related Documentation