Steer a running agent turn with a new message
curl --request POST \
--url https://api.styne.ai/sandboxes/{id}/steer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"harness": "<string>",
"model": "<string>",
"new": true,
"conversationId": "<string>",
"env": {},
"permissionMode": "<string>",
"cwd": "<string>",
"partial": true
}
'import requests
url = "https://api.styne.ai/sandboxes/{id}/steer"
payload = {
"prompt": "<string>",
"harness": "<string>",
"model": "<string>",
"new": True,
"conversationId": "<string>",
"env": {},
"permissionMode": "<string>",
"cwd": "<string>",
"partial": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: '<string>',
harness: '<string>',
model: '<string>',
new: true,
conversationId: '<string>',
env: {},
permissionMode: '<string>',
cwd: '<string>',
partial: true
})
};
fetch('https://api.styne.ai/sandboxes/{id}/steer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Steer a running agent turn with a new message
POST
/
sandboxes
/
{id}
/
steer
Steer a running agent turn with a new message
curl --request POST \
--url https://api.styne.ai/sandboxes/{id}/steer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"harness": "<string>",
"model": "<string>",
"new": true,
"conversationId": "<string>",
"env": {},
"permissionMode": "<string>",
"cwd": "<string>",
"partial": true
}
'import requests
url = "https://api.styne.ai/sandboxes/{id}/steer"
payload = {
"prompt": "<string>",
"harness": "<string>",
"model": "<string>",
"new": True,
"conversationId": "<string>",
"env": {},
"permissionMode": "<string>",
"cwd": "<string>",
"partial": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: '<string>',
harness: '<string>',
model: '<string>',
new: true,
conversationId: '<string>',
env: {},
permissionMode: '<string>',
cwd: '<string>',
partial: true
})
};
fetch('https://api.styne.ai/sandboxes/{id}/steer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Authorizations
Body
application/json
Redirect the running agent turn with a new prompt. Same fields as the prompt call.
Response
Success. The answer is described on https://docs.styne.ai/agents.