API Reference
Update Evaluation Assertion
Update an existing evaluation assertion by providing its ID and new data.
PUT
/
sdk
/
v1
/
evaluation-assertions
/
{id}
Path Parameters
id
string
requiredBody
application/json
evaluationId
string
requiredtargetValue
string | null
requiredtype
enum<string>
requiredThe type of evaluation matcher to use.
Available options:
CONTAINS
, EXACT_MATCH
, JSON_CONTAINS
, JSON_EXACT_MATCH
, TOOL_CALLED
, TOOL_CALLED_WITH
jsonPath
string | null
requiredA JSON path to use when matching the response. Only required when type is JSON_EXACT_MATCH
or JSON_CONTAINS
.
toolName
string | null
requiredThe name of the tool to match. Only required when type is TOOL_CALLED
or TOOL_CALLED_WITH
.
Response
200 - application/json
id
string
requiredevaluationId
string
requiredtargetValue
string | null
requiredtype
enum<string>
requiredThe type of evaluation matcher to use.
Available options:
CONTAINS
, EXACT_MATCH
, JSON_CONTAINS
, JSON_EXACT_MATCH
, TOOL_CALLED
, TOOL_CALLED_WITH
jsonPath
string | null
requiredA JSON path to use when matching the response. Only required when type is JSON_EXACT_MATCH
or JSON_CONTAINS
.
toolName
string | null
requiredThe name of the tool to match. Only required when type is TOOL_CALLED
or TOOL_CALLED_WITH
.