Skip to main content

load_tools_from_module_class

Method
This is a method of the AgentsGenerator class in the agents_generator module.
Loads tools from a specified module path containing classes that inherit from BaseTool or are part of langchain_community.tools package.

Signature

def load_tools_from_module_class(module_path: Any) -> Any

Parameters

module_path
Any
required
No description available.

Returns

Returns
Any
The result of the operation.

Uses

  • spec_from_file_location
  • module_from_spec
  • exec_module
  • obj
  • inspect.getmembers
  • inspect.isclass
  • warning

Source

View on GitHub

praisonai/agents_generator.py at line 250