Get the pending run for a chat
curl --request GET \
--url https://api.arg.ai/api/agent/pending/{chatId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/agent/pending/{chatId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/agent/pending/{chatId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Agent
Get the pending run for a chat
Return the run still in flight on this chat, or pending_job: null when the chat is idle. Use it to resume watching after a client restart.
GET
/
api
/
agent
/
pending
/
{chatId}
Get the pending run for a chat
curl --request GET \
--url https://api.arg.ai/api/agent/pending/{chatId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/agent/pending/{chatId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/agent/pending/{chatId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}