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)Authorizations
Bearer JWT token or API Key (sk-*).
Body
application/json
On message retry routes, resume the unfinished conversation without hiding previous results or replaying completed effects.
Allow the Assistant turn to continue after the client disconnects. Defaults to false unless the operation states otherwise.
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)
