test_framework

Create a test set from a previous test run

Changed on

Promote a completed test run into a labeled test set by attaching the specified metrics. Existing metric scores from the run are copied as the initial 'actual' values; the caller provides 'expected' values for review. Returns the created or existing test set.

post/test_framework/test-sets/create_from_run/

Request

  • Base URL
    https://api.cekura.ai
  • URL
    https://api.cekura.ai/test_framework/test-sets/create_from_run/
  • Auth
    • API key in header X-CEKURA-API-KEY
    • or HTTP bearer
    • or HTTP bearer

Request body

run_idinteger required

ID of the run to create test set from

projectinteger

ID of the project that owns the run

namestring

Optional name for the test set. If not provided, run ID will be used

Response

idinteger
agentinteger required
namestring

Name of the test set Example: "Test Set 1"

transcriptstring

Full text transcript of the call. Example:

[00:01] Testing Agent: Hello. 
[00:02] Main Agent: Hello, how can I help you today?
[00:03] Testing Agent: Well, I mean, sure. What time exactly are we talking about here
[00:04] Main Agent: 6 PM.
[00:05] Testing Agent: Great. I'll book that for you. Just a sec.
[00:06] Main Agent: Okay.
transcript_objectunknown
voice_recordingstring uri required
voice_recording_urlstring

Audio URL

call_end_reasonstring

Reason why the call ended. Example:

  • "customer-ended-call"
  • "agent-ended-call"
durationstring

Call duration in minutes in MM:SS format. Example: 01:10

source_model'CallLog' | 'Run'
  • CallLog - Call Log
  • Run - Run
source_idstring
created_atstring date-time

When this record was created. Example: 2024-03-15T10:30:45Z

updated_atstring date-time

When this record was last updated. Example: 2024-03-15T10:35:11Z

Changes

    • breaking

      added the new required request property // (media type: application/json)

    • breaking

      added the new required request property // (media type: application/x-www-form-urlencoded)

    • breaking

      added the new required request property // (media type: multipart/form-data)

    • breaking

      the / request property type changed from no type to object (media type: application/json)

    • breaking

      the / request property type changed from no type to object (media type: application/x-www-form-urlencoded)

    • breaking

      the / request property type changed from no type to object (media type: multipart/form-data)

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      the endpoint scheme security supabase_session was added to the API

    • info

      added the new optional request property // (media type: application/json)

    • info

      added the new optional request property // (media type: application/x-www-form-urlencoded)

    • info

      added the new optional request property // (media type: multipart/form-data)

    • info

      added the new optional request property // (media type: application/json)

    • info

      added the new optional request property // (media type: application/x-www-form-urlencoded)

    • info

      added the new optional request property // (media type: multipart/form-data)

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      the response property became required for the status

    • info

      added the required write-only property voice_recording to the response with the status