"""
Tools for customer-support-triage-agent agent.
"""

TOOLS = [
    {
        "name": "read_file",
        "desc": "Read files",
        "handler": "lambda a: f'Reading: {a[\"path\"]}'"
    },
    {
        "name": "process_task",
        "desc": "Process task",
        "handler": "lambda a: f'Processing: {a}'"
    }
]

def execute_tool(name: str, args: dict) -> str:
    """Execute a tool by name with given args."""
    handlers = {"read_file": lambda a: f'Reading: {a["path"]}',
    "process_task": lambda a: f'Processing: {a}'}
    handler = handlers.get(name)
    if handler:
        return handler(args)
    return f"Unknown tool: {name}"
