Documentation
¶
Overview ¶
Package sleeptool implements the Sleep tool — waits for a specified duration.
Mirrors src/tools/SleepTool. Unlike Bash(sleep N), this tool does not hold a shell process and can be called concurrently with other tools.
Index ¶
Constants ¶
View Source
const MaxSleepSeconds = 300
MaxSleepSeconds caps a single sleep call to prevent runaway sessions.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
DurationSeconds float64 `json:"duration_seconds"`
}
Input is the typed view of the JSON input.
type Tool ¶
type Tool struct{}
Tool implements the Sleep tool.
func (*Tool) Description ¶
func (*Tool) InputSchema ¶
func (*Tool) InputSchema() json.RawMessage
func (*Tool) IsConcurrencySafe ¶
func (*Tool) IsConcurrencySafe(json.RawMessage) bool
func (*Tool) IsReadOnly ¶
func (*Tool) IsReadOnly(json.RawMessage) bool
Click to show internal directories.
Click to hide internal directories.