DateResolverTool
class DateResolverTool(clock: Clock = Clock.System, timeZone: TimeZone = TimeZone.currentSystemDefault()) : LlmTool
Resolves a small vocabulary of relative date expressions to absolute ISO-8601 dates.
Supported expressions (case-insensitive, surrounding whitespace ignored):
today,tomorrow,yesterdayin N days|weeks|months|yearsN days|weeks|months|years agonext monday...next sunday,last monday...last sundayAny literal ISO-8601 date (
YYYY-MM-DD) passes through unchanged.
Unrecognised input resolves to the reference date and is reported back via the summary field so the LLM can react. This is intentionally a minimal, dependency-free parser — Phase 1 trades natural-language coverage for multiplatform purity. Apps that need richer parsing can swap in their own tool implementation.