Expand description
The sleep tool: pauses for a bounded number of seconds and stops at once when the call is
cancelled.
Structs§
- Make
Sleep Options - Options for
make_sleep(MakeSleepOptions). - Make
Sleep Options Builder - Use builder syntax to set the inputs and finish with
build().
Constants§
- DEFAULT_
MAX_ DURATION - The default upper bound on
duration, in seconds (DEFAULT_MAX_DURATION). - SLEEP_
DESCRIPTION - The description of the default
sleeptool (SLEEP_DESCRIPTION), with its 60-second cap.
Functions§
- make_
sleep - Creates a sleep tool with a configurable cap. The call returns
Slept for <duration> seconds, or fails at once when its cancel signal fires. - sleep
- The default
sleeptool, capped at 60 seconds (sleep). - sleep_
description - The model-facing description for a cap of
max_durationseconds.