Interrupt the running tool call
curl --request POST \
--url https://api.arg.ai/api/agent/interrupt/{chatId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/agent/interrupt/{chatId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/agent/interrupt/{chatId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Agent
Interrupt the running tool call
Stop the shell command the running turn is waiting on, so a steered message is delivered right away instead of after the command finishes. The agent is told the command was interrupted. Returns 409 when the current turn cannot be steered.
POST
/
api
/
agent
/
interrupt
/
{chatId}
Interrupt the running tool call
curl --request POST \
--url https://api.arg.ai/api/agent/interrupt/{chatId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/agent/interrupt/{chatId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/agent/interrupt/{chatId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}