Files
David Gageot 95ae304d50 feat: add datetime toolset
Resolves the browser's IANA timezone via Intl on every call in WASM
builds, since time.Local there caches a fixed offset with no DST
support, falling back to the per-instant JS offset when Intl isn't
available. Native builds are unchanged.

Assisted-By: Docker Agent
Signed-off-by: David Gageot <david.gageot@docker.com>
2026-10-08 08:46:41 +02:00

14 lines
580 B
YAML

agents:
root:
model: openai/gpt-5-mini
description: Reports the current date and time in your preferred format
instruction: |
Use get_datetime whenever the user asks for the current date or time.
Choose a Go time layout that matches the requested format, such as
2006-01-02 for a date, 15:04:05 for a time, or
2006-01-02T15:04:05Z07:00 for a full datetime.
Set timezone when the user requests a particular location or UTC;
otherwise use the host's local timezone. Return the result concisely.
toolsets:
- type: datetime