I think it's possible to fudge this functionality right now with an api/tool that provides tasks and state transition logic to the agent anyway... like instruct the agent it's going to perform a series of tasks given to it by a tool, and it must complete the task according to the completion conditions, and when it has it requests instructions for the next task until it is told it is done