follow_up_id returned by queue_add to remove exactly one, whether it is still pending its deliver_at delay or already queued. Use clear_queue with the message ID to cancel a self-scheduled deferred follow-up that is no longer needed. The targeted form is idempotent and reports whether it removed anything.
Equivalent to murmur queue clear and murmur queue remove in the CLI.
This does not affect the agent’s current turn. Use interrupt if you also want to stop the in-progress turn.
Parameters
Response
Withoutfollow_up_id, a JSON object with the number of cleared entries:
With
follow_up_id: follow-up removed, or no undelivered follow-up with that ID (already delivered, already removed, or never queued).
Examples
Clear own queue
Cancel one deferred follow-up
Errors
Related
queue_add: send or defer a follow-up (returns the follow-up ID)murmur queue clear/murmur queue remove: equivalent CLI commandsinterrupt: stop the current turnstatus: check agent state (includesqueuedFollowUpsanddelayedFollowUps)