curl --request POST \
--url https://api.phylo.bio/v1/experimental/tasks/{task_id}/messages/{message_id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'
{
"type": "message_status",
"id": "msg_1a0ef0fa8e26",
"status": "cancelling"
}
Messages
Cancel a reply
Stop the agent while it is writing this reply.
POST
/
experimental
/
tasks
/
{task_id}
/
messages
/
{message_id}
/
cancel
curl --request POST \
--url https://api.phylo.bio/v1/experimental/tasks/{task_id}/messages/{message_id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'
{
"type": "message_status",
"id": "msg_1a0ef0fa8e26",
"status": "cancelling"
}
Cancels the task the message belongs to, since the agent works on one reply at a time. Equivalent to
POST /tasks/{task_id}/cancel.Authorizations
Requires an API key. See the Authentication guide.
Body
application/json
Omit the body for a graceful cancel.
