2025-12-11 16:04:27 +09:00
|
|
|
export const BACKGROUND_TASK_DESCRIPTION = `Launch a background agent task that runs asynchronously.
|
|
|
|
|
|
|
|
|
|
The task runs in a separate session while you continue with other work. The system will notify you when the task completes.
|
|
|
|
|
|
|
|
|
|
Use this for:
|
|
|
|
|
- Long-running research tasks
|
|
|
|
|
- Complex analysis that doesn't need immediate results
|
|
|
|
|
- Parallel workloads to maximize throughput
|
|
|
|
|
|
|
|
|
|
Arguments:
|
|
|
|
|
- description: Short task description (shown in status)
|
2025-12-15 19:02:31 +09:00
|
|
|
- prompt: Full detailed prompt for the agent (MUST be in English for optimal LLM performance)
|
2025-12-11 16:04:27 +09:00
|
|
|
- agent: Agent type to use (any agent allowed)
|
|
|
|
|
|
2025-12-15 19:02:31 +09:00
|
|
|
IMPORTANT: Always write prompts in English regardless of user's language. LLMs perform significantly better with English prompts.
|
|
|
|
|
|
2025-12-12 10:54:24 +09:00
|
|
|
Returns immediately with task ID and session info. Use \`background_output\` to check progress or retrieve results.`
|
2025-12-11 16:04:27 +09:00
|
|
|
|
2025-12-12 10:54:24 +09:00
|
|
|
export const BACKGROUND_OUTPUT_DESCRIPTION = `Get output from a background task.
|
2025-12-11 16:04:27 +09:00
|
|
|
|
|
|
|
|
Arguments:
|
2025-12-12 10:54:24 +09:00
|
|
|
- task_id: Required task ID to get output from
|
2025-12-13 01:18:19 +09:00
|
|
|
- block: If true, wait for task completion. If false (default), return current status immediately.
|
2025-12-12 10:54:24 +09:00
|
|
|
- timeout: Max wait time in ms when blocking (default: 60000, max: 600000)
|
|
|
|
|
|
2025-12-15 19:02:31 +09:00
|
|
|
The system automatically notifies when background tasks complete. You typically don't need block=true.`
|
2025-12-11 16:04:27 +09:00
|
|
|
|
|
|
|
|
export const BACKGROUND_CANCEL_DESCRIPTION = `Cancel a running background task.
|
|
|
|
|
|
|
|
|
|
Only works for tasks with status "running". Aborts the background session and marks the task as cancelled.
|
|
|
|
|
|
|
|
|
|
Arguments:
|
|
|
|
|
- taskId: Required task ID to cancel.`
|