Skip to main content
PUT
Update a simulation test

Authorizations

X-Api-Key
string
header
required

Headers

X-Api-Key
string
required

Api key to pass as a X-Api-Key request header.

Path Parameters

testId
string
required

ID of the test.

Body

Fields to update on a simulation test (only the provided ones change)

name
string | null
scenario
string | null
criteria
string[] | null
maxTurns
integer<int32> | null
conversationContext
object[] | null

Messages the conversation starts from. Null leaves the stored value untouched; an empty list clears it.

variables
object | null
toolMocking
object

Which tools of the agent are mocked (not really executed) during a simulation. Every mock is opt-in: nothing is mocked unless asked for here, and mockAllTools does not imply mockCallTransfer. The knowledge base retrieval always runs for real.

Response

Success

A test of an agent. Depending on kind, either the simulation fields (scenario, criteria, maxTurns, variables) or the classification fields (conversationContext, tagExpected) are set.

id
string | null
kind
enum<string>
Available options:
Simulation,
Classification
agentId
string | null
folderId
string | null

Folder containing the test, null at the root

name
string | null
lastRunId
string | null

Most recent run of the test

lastRunStatus
enum<string>
Available options:
Queued,
Running,
Passed,
Failed,
Error,
Cancelled
lastRunAt
string<date-time> | null
createdAt
string<date-time>
updatedAt
string<date-time>
scenario
string | null

Simulation only: persona and intent of the simulated user

criteria
string[] | null

Simulation only: success criteria, each judged independently

maxTurns
integer<int32> | null

Simulation only: maximum number of user/agent exchanges (1-30)

conversationMessages
object[] | null

Simulation only: messages the conversation starts from, in chronological order; empty when the run starts from scratch

variables
object | null

Simulation only: values of the agent variables (name → value)

toolMocking
object

Which tools of the agent are mocked (not really executed) during a simulation. Every mock is opt-in: nothing is mocked unless asked for here, and mockAllTools does not imply mockCallTransfer. The knowledge base retrieval always runs for real.

conversationContext
object

Conversation used as input of a classification test

tagExpected
string | null

Classification only: expected tag