import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const testRunResponses = await client.ai.assistants.tests.testSuites.runs.trigger('suite_name');
console.log(testRunResponses);[
{
"run_id": "987fcdeb-51a2-43d1-b456-426614174000",
"test_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"triggered_by": "cron",
"created_at": "2024-01-15T10:30:00Z",
"completed_at": "2023-11-07T05:31:56Z",
"logs": "<string>",
"conversation_id": "<string>",
"conversation_insights_id": "<string>",
"test_suite_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"detail_status": [
{
"name": "<string>",
"status": "pending"
}
]
}
]Executes all tests within a specific test suite as a batch operation
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const testRunResponses = await client.ai.assistants.tests.testSuites.runs.trigger('suite_name');
console.log(testRunResponses);[
{
"run_id": "987fcdeb-51a2-43d1-b456-426614174000",
"test_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"triggered_by": "cron",
"created_at": "2024-01-15T10:30:00Z",
"completed_at": "2023-11-07T05:31:56Z",
"logs": "<string>",
"conversation_id": "<string>",
"conversation_insights_id": "<string>",
"test_suite_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"detail_status": [
{
"name": "<string>",
"status": "pending"
}
]
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for triggering test suite runs.
Optional request body for the trigger test suite runs endpoint.
Optional assistant version ID to use for all test runs in this suite. If provided, the version must exist or a 400 error will be returned. If not provided, test will run on main version
"123e4567-e89b-12d3-a456-426614174000"
Returns array of created test runs for all tests in the suite
Unique identifier for this specific test run execution.
"987fcdeb-51a2-43d1-b456-426614174000"
Identifier of the assistant test that was executed.
"123e4567-e89b-12d3-a456-426614174000"
Represents the lifecycle of a test:
pending, starting, running, passed, failed, error How this test run was initiated (manual, scheduled, or API).
"cron"
Timestamp when the test run was created and queued.
"2024-01-15T10:30:00Z"
Timestamp when the test run finished execution.
Detailed execution logs and debug information.
Identifier of the conversation created during test execution.
Identifier for conversation analysis and insights data.
Identifier linking this run to a test suite execution batch.
Timestamp of the last update to this test run.
Detailed evaluation results for each rubric criteria. Name is name of the criteria from the rubric and status is the result of the evaluation. This list will have a result for every criteria in the rubric section.
Show child attributes
Represents the lifecycle of a test:
pending, starting, running, passed, failed, error Was this page helpful?