agent_session_end
End or update an agent session by setting its status to completed, paused, stalled, or abandoned; completed and abandoned runs are timestamped with ended_at.
Instructions
End or update an agent session's status. Use status='completed' when the goal is met, 'paused' to suspend (resume later from the checkpoint), 'stalled' when the vibe-loop stall detector trips, or 'abandoned' to drop the run. Setting completed/abandoned stamps ended_at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | Optionally revise the goal | |
| status | Yes | New session status | |
| metadata | No | Metadata to merge into the session | |
| session_id | Yes | Session id to update |