Sbboss's picture
RAG, language updates
0b2d478
raw
history blame contribute delete
410 Bytes
"""Simple time/date tool."""
from __future__ import annotations
from datetime import datetime, timezone
from .registry import register_tool
@register_tool(
name="current_time",
description="Get the current UTC time.",
schema={"type": "object", "properties": {}, "required": []},
)
def current_time_tool(_: dict) -> dict:
now = datetime.now(timezone.utc)
return {"utc": now.isoformat()}