Skip to main content

load_tools_from_tools_py

Method
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.

Signature

def load_tools_from_tools_py() -> Any

Returns

Returns
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

Tools Concept

Create Custom Tools

Tool Development