Skip to main content

Module task_complete

Module task_complete 

Source
Expand description

Task complete tool — signal explicit task completion.

Instead of relying on implicit termination (no tool calls = done), agents call this tool to end the ReAct loop. This provides:

  • Explicit completion signal (no ambiguity)
  • Required summary of what was accomplished
  • Natural error recovery (agent keeps trying until this is called)
  • Clean conversation history

Structs§

TaskCompleteTool
Tool that signals explicit task completion.