__init__.py 1.1 KB

12345678910111213141516171819202122232425262728
  1. """
  2. -----------------------------------------------------------------------------------------
  3. INTERSEL - 4 cité d'Hauteville - 75010 PARIS
  4. RCS PARIS 488 379 660 - NAF 721Z
  5. File : tools/resource/__init__.py
  6. Object : Resource tools for the MCP server
  7. -----------------------------------------------------------------------------------------
  8. Modifications :
  9. - 2026/01/16 - Damien Lugagne-Delpon - V1.0.0- Creation
  10. -----------------------------------------------------------------------------------------
  11. @copyright : Intersel 2026
  12. @author : Damien Lugagne-Delpon - damien.lugagne-delpon@livinweb.fr
  13. @version : 1.0.0 (to be updated to the current_version of the developed software if file is touched)
  14. -----------------------------------------------------------------------------------------
  15. """
  16. from ..tool_class import Tool
  17. class ResourceTool(Tool):
  18. """Resource tool for the MCP server."""
  19. def __init__(self, name: str, description: str = "", remarks: str = "", parameters: dict = {}, handler=None):
  20. """Initialize the resource tool."""
  21. super().__init__(name, description, remarks, parameters, handler)