Assistant
Retry a thread message with streaming.
Retry the latest visible unfinished user message by message ID and stream the assistant output as server-sent events without creating a duplicate user message row.
POST
/
api
/
v1
/
assistant
/
threads
/
{id}
/
messages
/
{messageId}
/
retry
/
stream
Retry a thread message with streaming.
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/messages/{messageId}/retry/stream \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resume": false,
"backgroundProcessing": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({resume: false, backgroundProcessing: false})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/messages/{messageId}/retry/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/assistant/threads/{id}/messages/{messageId}/retry/stream"
payload = {
"resume": False,
"backgroundProcessing": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
Response
Message retry streamed.
⌘I
Retry a thread message with streaming.
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/messages/{messageId}/retry/stream \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resume": false,
"backgroundProcessing": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({resume: false, backgroundProcessing: false})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/messages/{messageId}/retry/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/assistant/threads/{id}/messages/{messageId}/retry/stream"
payload = {
"resume": False,
"backgroundProcessing": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
