Files
adk_backend/app/tools.py
2026-01-19 22:04:54 +08:00

30 lines
696 B
Python

import logging
from typing import Dict, Callable, Any
logger = logging.getLogger(__name__)
def dummy_tool(query: str) -> dict:
"""
Dummy Tool: A placeholder tool for demonstration.
Args:
query: Any string input.
Returns:
A mock structured response.
"""
logger.info(f"[Tool] dummy_tool called with: {query}")
return {
"status": "success",
"message": f"Processed query: {query}",
"data": "dummy_value"
}
# ==========================
# 🛠️ Tool Registry
# ==========================
# Map tool names to their function implementation
TOOL_REGISTRY: Dict[str, Callable] = {
"dummy_tool": dummy_tool,
}