Base class for all research tools in the ml_research_tools package. Provides standard interface for argument parsing and execution.
- class ml_research_tools.core.base_tool.BaseTool(services)[source]#
Bases:
ABC
Base class for all research tools.
This class defines a standard interface that all tools should implement, including methods for parsing arguments and executing the tool’s functionality.
Initialize the tool with default values.
- Parameters:
services (ServiceProvider)
- __init__(services)[source]#
Initialize the tool with default values.
- Parameters:
services (ServiceProvider)
- Return type:
None
- abstractmethod classmethod add_arguments(parser)[source]#
Add tool-specific arguments to the argument parser.
- Parameters:
parser (
ArgumentParser
) – The argument parser to add arguments to- Return type:
- classmethod add_subparser(subparsers)[source]#
Add a subparser for this tool to a parent parser’s subparsers.
- Parameters:
subparsers (
_SubParsersAction
) – subparsers object from the parent parser- Return type:
- Returns:
The created subparser