feat(tools): Phase T.1-T.4 complete - manifest system, registry, implementations, runtime, collaboration, scheduler

This commit is contained in:
2026-04-05 11:54:57 +08:00
parent fca7a7cf3d
commit 10d9340c53
30 changed files with 2891 additions and 4 deletions

View File

@@ -0,0 +1,33 @@
"""
Base Runtime
Abstract base class for all tool runtimes.
"""
from abc import ABC, abstractmethod
from typing import Any, Dict, Optional
class BaseRuntime(ABC):
"""Runtime abstract base class"""
@abstractmethod
async def execute(
self,
entry: str,
command: str,
parameters: Dict[str, Any],
timeout: int,
) -> Dict[str, Any]:
"""Execute a tool"""
pass
@abstractmethod
async def validate(self, entry: str) -> bool:
"""Validate if the tool is available"""
pass
@abstractmethod
def get_name(self) -> str:
"""Get runtime name"""
pass