Define failure conditions to terminate workflows when errors occur
declare_task_failed
(lowercase, with underscores).declare_task_failed
, the agent might spend excessive time trying to work around insurmountable obstacles.
declare_task_failed
with a description of the failuredeclare_task_failed
is called, the workflow stops immediately. This tool is never cached because failed runs don’t create trajectories.