Run Scenarios
curl --request POST \
--url https://api.eqho.ai/v1/simulation \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'x-org-id: <api-key>' \
--data '
{
"agent_id": "<string>",
"scenario_ids": [
"<string>"
],
"scenario_set_id": "<string>",
"simulated_lead_llm_args": {
"ai_model": "<string>",
"frequency_penalty": 123,
"max_tokens": 123,
"presence_penalty": 123,
"temperature": 123
},
"num_trials": 1,
"max_steps": 100,
"max_errors": 5
}
'import requests
url = "https://api.eqho.ai/v1/simulation"
payload = {
"agent_id": "<string>",
"scenario_ids": ["<string>"],
"scenario_set_id": "<string>",
"simulated_lead_llm_args": {
"ai_model": "<string>",
"frequency_penalty": 123,
"max_tokens": 123,
"presence_penalty": 123,
"temperature": 123
},
"num_trials": 1,
"max_steps": 100,
"max_errors": 5
}
headers = {
"X-API-KEY": "<api-key>",
"x-org-id": "<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>',
'x-org-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agent_id: '<string>',
scenario_ids: ['<string>'],
scenario_set_id: '<string>',
simulated_lead_llm_args: {
ai_model: '<string>',
frequency_penalty: 123,
max_tokens: 123,
presence_penalty: 123,
temperature: 123
},
num_trials: 1,
max_steps: 100,
max_errors: 5
})
};
fetch('https://api.eqho.ai/v1/simulation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eqho.ai/v1/simulation"
payload := strings.NewReader("{\n \"agent_id\": \"<string>\",\n \"scenario_ids\": [\n \"<string>\"\n ],\n \"scenario_set_id\": \"<string>\",\n \"simulated_lead_llm_args\": {\n \"ai_model\": \"<string>\",\n \"frequency_penalty\": 123,\n \"max_tokens\": 123,\n \"presence_penalty\": 123,\n \"temperature\": 123\n },\n \"num_trials\": 1,\n \"max_steps\": 100,\n \"max_errors\": 5\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("x-org-id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"_id": "<string>",
"account_id": "<string>",
"agent_id": "<string>",
"scenario_ids": [
"<string>"
],
"info": {
"num_trials": 123,
"max_steps": 123,
"max_errors": 123,
"agent_info": {
"agent_id": "<string>",
"ai_settings": {
"ai_model": "<string>",
"frequency_penalty": 123,
"max_tokens": 123,
"presence_penalty": 123,
"temperature": 123,
"reasoning": "none"
}
},
"simulated_lead_info": {
"ai_settings": {
"ai_model": "<string>",
"frequency_penalty": 123,
"max_tokens": 123,
"presence_penalty": 123,
"temperature": 123,
"reasoning": "none"
}
}
},
"total_runs": 123,
"scenario_set_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"completed_runs": 0,
"final_score": 123,
"pass_hat_ks": {},
"avg_agent_cost": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Simulations
Run Simulation
Run multiple simulation scenarios in a batch
POST
/
v1
/
simulation
Run Scenarios
curl --request POST \
--url https://api.eqho.ai/v1/simulation \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'x-org-id: <api-key>' \
--data '
{
"agent_id": "<string>",
"scenario_ids": [
"<string>"
],
"scenario_set_id": "<string>",
"simulated_lead_llm_args": {
"ai_model": "<string>",
"frequency_penalty": 123,
"max_tokens": 123,
"presence_penalty": 123,
"temperature": 123
},
"num_trials": 1,
"max_steps": 100,
"max_errors": 5
}
'import requests
url = "https://api.eqho.ai/v1/simulation"
payload = {
"agent_id": "<string>",
"scenario_ids": ["<string>"],
"scenario_set_id": "<string>",
"simulated_lead_llm_args": {
"ai_model": "<string>",
"frequency_penalty": 123,
"max_tokens": 123,
"presence_penalty": 123,
"temperature": 123
},
"num_trials": 1,
"max_steps": 100,
"max_errors": 5
}
headers = {
"X-API-KEY": "<api-key>",
"x-org-id": "<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>',
'x-org-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agent_id: '<string>',
scenario_ids: ['<string>'],
scenario_set_id: '<string>',
simulated_lead_llm_args: {
ai_model: '<string>',
frequency_penalty: 123,
max_tokens: 123,
presence_penalty: 123,
temperature: 123
},
num_trials: 1,
max_steps: 100,
max_errors: 5
})
};
fetch('https://api.eqho.ai/v1/simulation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eqho.ai/v1/simulation"
payload := strings.NewReader("{\n \"agent_id\": \"<string>\",\n \"scenario_ids\": [\n \"<string>\"\n ],\n \"scenario_set_id\": \"<string>\",\n \"simulated_lead_llm_args\": {\n \"ai_model\": \"<string>\",\n \"frequency_penalty\": 123,\n \"max_tokens\": 123,\n \"presence_penalty\": 123,\n \"temperature\": 123\n },\n \"num_trials\": 1,\n \"max_steps\": 100,\n \"max_errors\": 5\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("x-org-id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"_id": "<string>",
"account_id": "<string>",
"agent_id": "<string>",
"scenario_ids": [
"<string>"
],
"info": {
"num_trials": 123,
"max_steps": 123,
"max_errors": 123,
"agent_info": {
"agent_id": "<string>",
"ai_settings": {
"ai_model": "<string>",
"frequency_penalty": 123,
"max_tokens": 123,
"presence_penalty": 123,
"temperature": 123,
"reasoning": "none"
}
},
"simulated_lead_info": {
"ai_settings": {
"ai_model": "<string>",
"frequency_penalty": 123,
"max_tokens": 123,
"presence_penalty": 123,
"temperature": 123,
"reasoning": "none"
}
}
},
"total_runs": 123,
"scenario_set_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"completed_runs": 0,
"final_score": 123,
"pass_hat_ks": {},
"avg_agent_cost": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
APIKeyHeader & OrgImpersonationOAuth2PasswordBearer & OrgImpersonation
Body
application/json
Response
Successful Response
The results of a simulation run
Was this page helpful?