Lifecycle
A goal isactive, paused, or completed.
- Set it when creating a session, from a scheduled task, or from inside the run with the agent’s
goal_settool. A goal has an objective and success criteria. - Complete it explicitly: the agent calls
goal_completewith evidence. - Pause it with a reason, from the agent (
goal_pause), a user, the API, or a budget limit. Resume withgoal_resume, or ask the agent to continue. - Clear it to turn the session back into an ordinary one.