yex
This commit is contained in:
@@ -56,6 +56,23 @@ SCHEDULE_FIELDS: tuple[Param, ...] = (
|
||||
)
|
||||
|
||||
TASK_ACTIONS: tuple[Action, ...] = (
|
||||
Action(
|
||||
name="current_time",
|
||||
method="LOCAL",
|
||||
path="",
|
||||
summary="Get the exact current UTC time, to the second",
|
||||
description=(
|
||||
"The CURRENT TIME line in the system prompt is rounded to the hour to stay "
|
||||
"cache-friendly. Call this tool first whenever you need the precise current time - "
|
||||
"in particular before computing any absolute run_at for create_task/update_task from "
|
||||
"a relative phrase you cannot express via delay_seconds. For an ordinary relative "
|
||||
"delay ('in 40 seconds', 'in 2 hours'), you do not need this: delay_seconds is applied "
|
||||
"against the server's own clock at creation time and is always exact regardless."
|
||||
),
|
||||
handler="task",
|
||||
requires_auth=False,
|
||||
params=(),
|
||||
),
|
||||
Action(
|
||||
name="create_task",
|
||||
method="LOCAL",
|
||||
|
||||
Reference in New Issue
Block a user