Tool Call task_complete

Signals that the task is fully done and no further user input is needed. This tool is always available - you don't have to list it in the tools of the prompt definition.

See Tool Calls for the general concept.

When to use

Call task_complete as the last step of every prompt that is meant to finish on its own. It ends the agent loop and triggers the BPMN event agent.event.completed of the agent configuration.

Arguments

Argument Required Description
result yes A short final summary of the completed task

What happens without it

If the agent answers with plain text instead of calling task_complete, the answer is treated as an intermediate response that waits for user input. The workitem is routed to the event agent.event.callback - typically back to the “Asking” task, so a person can answer or take over.

You can use this on purpose: in a branch where the agent cannot decide, tell it not to call task_complete, but to explain the problem in plain text. The case then lands with a human.

Prompt example

STEP 7 - Finish
Call the tool "task_complete" with a short summary in one sentence in the parameter "result".

If something is unclear or a required value is missing, do NOT call task_complete.
Answer with a short plain-text note instead.

Tips

  • Never call task_complete while questions are still open.
  • Ask for a short summary (one sentence). It is stored as the result of the run and read by the person who verifies the case.