Preview Agent Draft
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/agents/{agent_id}/draft/preview \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"question": "<string>",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 1,
"retry": false
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/agents/{agent_id}/draft/preview"
payload = {
"question": "<string>",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 1,
"retry": False
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
question: '<string>',
thread_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
version: 1,
retry: false
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/agents/{agent_id}/draft/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"outcome": "completed",
"object": "agent_draft_preview",
"response": "<string>",
"tool_calls": [],
"execution_time_ms": 123,
"error": "<string>",
"error_code": "<string>",
"thread_id": "<string>",
"documents": [
{}
]
}Agents
Preview Agent Draft
Send a message to the draft. Pass the returned thread_id to continue the conversation.
POST
/
api
/
v1
/
agents
/
{agent_id}
/
draft
/
preview
Preview Agent Draft
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/agents/{agent_id}/draft/preview \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"question": "<string>",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 1,
"retry": false
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/agents/{agent_id}/draft/preview"
payload = {
"question": "<string>",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 1,
"retry": False
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
question: '<string>',
thread_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
version: 1,
retry: false
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/agents/{agent_id}/draft/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"outcome": "completed",
"object": "agent_draft_preview",
"response": "<string>",
"tool_calls": [],
"execution_time_ms": 123,
"error": "<string>",
"error_code": "<string>",
"thread_id": "<string>",
"documents": [
{}
]
}Authorizations
Path Parameters
Body
application/json
Response
200 - application/json
OK
Available options:
completed, empty, tool_only, failed, incomplete, needs_input Allowed value:
"agent_draft_preview"