test_framework
POST /test_framework/v1/scenarios/generate-bg/
Changed onGenerate scenarios for a given agent in the background. Returns a progress_id immediately; poll GET /scenarios/generate-progress/?progress_id={id} until total_scenarios == completed_scenarios.
What happens automatically on generation:
- A scenario-specific test profile is created and its information is populated using the sectioned shape: main_agent_variables (dynamic-variable values that reach the agent under test at call time — e.g. user_id, account_id) and testing_agent_variables (persona/context used by the simulated caller — e.g. customer_name, date_of_birth). Section values are kept consistent with any generated mock-tool data.
- When the agent has mock tools attached, each generated scenario also gets generated_mock_tool_entries — the expected mock tool calls for that scenario, shaped [{tool_id, tool_name, new_entry: {input, output}}]. These are returned on scenario reads and can be edited later via scenarios_partial_update.
- 10 project-level evaluation metrics are attached to every generated scenario automatically (e.g. Latency, Pitch, Interruption Score). Scenarios created manually via scenarios_create start with no metrics attached.
Response fields: progress_id (UUID string) for polling; session_id is always null.
Deprecated: POST /test_framework/v3/scenarios/generate/ does this in one call and returns the result.
Request
- Base URLhttps://api.cekura.ai
- URLhttps://api.cekura.ai/test_framework/v1/scenarios/generate-bg/
- Auth
- API key in header X-CEKURA-API-KEY
- or HTTP bearer
- or HTTP bearer
Request body
Example request
{
"tool_ids": [
"TOOL_DTMF",
"TOOL_END_CALL",
"TOOL_END_CALL_ONLY_ON_TRANSFER"
]
}Response
Changes
- info
endpoint added
- info