Added many tools

This commit is contained in:
AuroraCrimsonRose
2026-06-03 06:01:06 -05:00
parent 3723d2381d
commit e471f9bc54
28 changed files with 3488 additions and 205 deletions

View File

@@ -1,5 +1,8 @@
from __future__ import annotations
from typing import Any
import time
from core.tools.base import BaseTool, ToolContext
from core.tools.registry import registry
from core.events import bus
@@ -7,19 +10,13 @@ from core.events import bus
class PingTool(BaseTool):
name = "ping"
# optional metadata (future MCP auto-binding)
description = "Health check"
# -------------------------
# EXECUTE
# -------------------------
description = "Health check / liveness probe"
def execute(
self,
payload: dict[str, str],
payload: dict[str, Any],
ctx: ToolContext
):
) -> dict[str, Any]:
message = payload.get("message", "pong")
bus.log(
@@ -34,12 +31,9 @@ class PingTool(BaseTool):
return {
"status": "ok",
"echo": message,
"tool": self.name
"tool": self.name,
"timestamp": time.time()
}
# =========================
# SELF REGISTER
# =========================
registry.register(PingTool())