Get Simulation Run
curl --request GET \
--url https://api.eqho.ai/v1/simulation/run/{run_id} \
--header 'X-API-KEY: <api-key>' \
--header 'x-org-id: <api-key>'import requests
url = "https://api.eqho.ai/v1/simulation/run/{run_id}"
headers = {
"X-API-KEY": "<api-key>",
"x-org-id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>', 'x-org-id': '<api-key>'}};
fetch('https://api.eqho.ai/v1/simulation/run/{run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eqho.ai/v1/simulation/run/{run_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("x-org-id", "<api-key>")
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>",
"simulation_results_id": "<string>",
"scenario_id": "<string>",
"max_steps": 123,
"max_errors": 123,
"trial": 1,
"simulated_lead_llm_args": {
"ai_model": "<string>",
"frequency_penalty": 123,
"max_tokens": 123,
"presence_penalty": 123,
"temperature": 123,
"reasoning": "none"
},
"scenario_set_id": "<string>",
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"duration_in_seconds": 123,
"termination_reason": "user_stop",
"agent_cost": 123,
"user_cost": 123,
"reward_info": {
"reward": 123,
"action_checks": [
{
"action": {
"tool_call_id": "<string>",
"name": "<string>",
"arguments": {},
"requestor": "assistant",
"info": "<string>",
"compare_args": [
"<string>"
]
},
"action_match": true,
"action_reward": 123
}
],
"nl_assertions": [
{
"nl_assertion": "<string>",
"met": true,
"justification": "<string>"
}
],
"reward_breakdown": {},
"info": {}
},
"messages": [
{
"content": "<string>",
"role": "system",
"turn_idx": 123,
"timestamp": "2023-11-07T05:31:56Z"
}
],
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Simulations
Show Simulation Runs
Get a specific simulation run by ID
GET
/
v1
/
simulation
/
run
/
{run_id}
Get Simulation Run
curl --request GET \
--url https://api.eqho.ai/v1/simulation/run/{run_id} \
--header 'X-API-KEY: <api-key>' \
--header 'x-org-id: <api-key>'import requests
url = "https://api.eqho.ai/v1/simulation/run/{run_id}"
headers = {
"X-API-KEY": "<api-key>",
"x-org-id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>', 'x-org-id': '<api-key>'}};
fetch('https://api.eqho.ai/v1/simulation/run/{run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eqho.ai/v1/simulation/run/{run_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("x-org-id", "<api-key>")
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>",
"simulation_results_id": "<string>",
"scenario_id": "<string>",
"max_steps": 123,
"max_errors": 123,
"trial": 1,
"simulated_lead_llm_args": {
"ai_model": "<string>",
"frequency_penalty": 123,
"max_tokens": 123,
"presence_penalty": 123,
"temperature": 123,
"reasoning": "none"
},
"scenario_set_id": "<string>",
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"duration_in_seconds": 123,
"termination_reason": "user_stop",
"agent_cost": 123,
"user_cost": 123,
"reward_info": {
"reward": 123,
"action_checks": [
{
"action": {
"tool_call_id": "<string>",
"name": "<string>",
"arguments": {},
"requestor": "assistant",
"info": "<string>",
"compare_args": [
"<string>"
]
},
"action_match": true,
"action_reward": 123
}
],
"nl_assertions": [
{
"nl_assertion": "<string>",
"met": true,
"justification": "<string>"
}
],
"reward_breakdown": {},
"info": {}
},
"messages": [
{
"content": "<string>",
"role": "system",
"turn_idx": 123,
"timestamp": "2023-11-07T05:31:56Z"
}
],
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
APIKeyHeader & OrgImpersonationOAuth2PasswordBearer & OrgImpersonation
Response
Successful Response
Was this page helpful?