API Reference
Create Evaluation Assertion
Creates a new evaluation assertion
POST
/
sdk
/
v1
/
evaluation-assertions
Body
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
201 - 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
.