Check out our upcoming events and meetups! View events →
Updates an existing assistant test configuration with new settings
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const assistantTest = await client.ai.assistants.tests.update('test_id');
console.log(assistantTest.test_id);{
"test_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Customer Support Bot Test",
"telnyx_conversation_channel": "web_chat",
"rubric": [
{
"criteria": "Responds within 30 seconds",
"name": "Response Time"
}
],
"created_at": "2024-01-16T09:00:00Z",
"description": "<string>",
"destination": "<string>",
"max_duration_seconds": 123,
"test_suite": "<string>",
"instructions": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for updating an existing assistant test.
All fields are optional, allowing partial updates of test configuration. Only provided fields will be updated, others remain unchanged.
Updated name for the assistant test. Must be unique and descriptive.
1 - 255Updated description of the test's purpose and evaluation criteria.
1000Updated communication channel for the test execution.
phone_call, web_call, sms_chat, web_chat Updated target destination for test conversations.
1Updated maximum test duration in seconds.
1 <= x <= 3600Updated test suite assignment for better organization.
100Updated test scenario instructions and objectives.
1 - 5000Updated evaluation criteria for assessing assistant performance.
1Show child attributes
Returns the updated test configuration with all changes applied
Response model containing complete assistant test information.
Returns all test configuration details including evaluation criteria, scheduling, and metadata. Used when retrieving individual tests or after creating/updating tests.
Unique identifier for the assistant test.
"123e4567-e89b-12d3-a456-426614174000"
Human-readable name of the test.
"Customer Support Bot Test"
Communication channel used for test execution.
phone_call, web_call, sms_chat, web_chat "web_chat"
Evaluation criteria used to assess test performance.
Show child attributes
[
{
"criteria": "Responds within 30 seconds",
"name": "Response Time"
}
]
Timestamp when the test was created.
"2024-01-16T09:00:00Z"
Detailed description of the test's purpose and scope.
Target destination for test conversations.
Maximum allowed duration for test execution in seconds.
Test suite grouping for organizational purposes.
Detailed test scenario instructions and objectives.
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const assistantTest = await client.ai.assistants.tests.update('test_id');
console.log(assistantTest.test_id);{
"test_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Customer Support Bot Test",
"telnyx_conversation_channel": "web_chat",
"rubric": [
{
"criteria": "Responds within 30 seconds",
"name": "Response Time"
}
],
"created_at": "2024-01-16T09:00:00Z",
"description": "<string>",
"destination": "<string>",
"max_duration_seconds": 123,
"test_suite": "<string>",
"instructions": "<string>"
}