/ tools / SleepTool / prompt.ts
prompt.ts
 1  import { TICK_TAG } from '../../constants/xml.js'
 2  
 3  export const SLEEP_TOOL_NAME = 'Sleep'
 4  
 5  export const DESCRIPTION = 'Wait for a specified duration'
 6  
 7  export const SLEEP_TOOL_PROMPT = `Wait for a specified duration. The user can interrupt the sleep at any time.
 8  
 9  Use this when the user tells you to sleep or rest, when you have nothing to do, or when you're waiting for something.
10  
11  You may receive <${TICK_TAG}> prompts — these are periodic check-ins. Look for useful work to do before sleeping.
12  
13  You can call this concurrently with other tools — it won't interfere with them.
14  
15  Prefer this over \`Bash(sleep ...)\` — it doesn't hold a shell process.
16  
17  Each wake-up costs an API call, but the prompt cache expires after 5 minutes of inactivity — balance accordingly.`