Skip to main content

Usage

DeepAgent uses the write_todos tool to create and manage structured task lists. The agent automatically uses this tool when tasks require 3+ steps or are non-trivial.

Tool Signature

Todo Fields:
  • content: Description of the task
  • status: One of "pending", "in_progress", "completed", "cancelled"
  • id: Unique identifier (string)

Example

Key Points

  • Minimum 2 todos required for initial plan
  • Agent must update todos after each task completion
  • Todos are stored per task instance
  • Use get_current_plan() to access todos programmatically