curl -X POST http://localhost:3000/verifier \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session",
"checks": [
{
"id": "check-event-created",
"type": "state",
"table": "events",
"asserts": [
{
"comparator": "eq",
"function": "object_contains",
"function_args": ["_result[*]", {"title": "Team Meeting"}],
"value": true
}
]
}
]
}'
curl -X POST http://localhost:3000/verifier \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session",
"checks": [
{
"id": "check-button-clicked",
"type": "log",
"asserts": [
{
"comparator": "eq",
"function": "object_contains",
"function_args": ["_result[*]", {
"eventType": "click",
"clickId": "submit-button"
}],
"value": true
}
]
}
]
}'
curl -X POST http://localhost:3000/verifier \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session",
"checks": [
{
"id": "check-events-on-day",
"type": "manual",
"function": "find_events_on_day",
"function_args": ["2024-11-20"],
"asserts": [
{
"comparator": "gt",
"function": "count",
"function_args": ["_result"],
"value": 0
}
]
}
]
}'
{
"session_id": "test-session",
"success": true,
"verifiers": [
{
"id": "check-event-created",
"operator": "state_comparison",
"success": true,
"asserts": [
{
"actual_value": true,
"expected_value": true,
"comparator": "eq",
"success": true,
"matching_results": [
{
"id": 1,
"title": "Team Meeting",
"startTime": "2024-11-20T14:00:00Z"
}
]
}
]
}
]
}
{
"session_id": "test-session",
"success": false,
"verifiers": [
{
"id": "check-event-created",
"operator": "state_comparison",
"success": false,
"asserts": [
{
"actual_value": false,
"expected_value": true,
"comparator": "eq",
"success": false
}
],
"all_results": []
}
]
}
{
"session_id": "test-session",
"success": "PENDING",
"verifiers": [
{
"id": "rubric-check",
"success": "PENDING"
}
]
}
Website Environments
Verifier
Run verification checks against the current session state
POST
/
verifier
curl -X POST http://localhost:3000/verifier \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session",
"checks": [
{
"id": "check-event-created",
"type": "state",
"table": "events",
"asserts": [
{
"comparator": "eq",
"function": "object_contains",
"function_args": ["_result[*]", {"title": "Team Meeting"}],
"value": true
}
]
}
]
}'
curl -X POST http://localhost:3000/verifier \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session",
"checks": [
{
"id": "check-button-clicked",
"type": "log",
"asserts": [
{
"comparator": "eq",
"function": "object_contains",
"function_args": ["_result[*]", {
"eventType": "click",
"clickId": "submit-button"
}],
"value": true
}
]
}
]
}'
curl -X POST http://localhost:3000/verifier \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session",
"checks": [
{
"id": "check-events-on-day",
"type": "manual",
"function": "find_events_on_day",
"function_args": ["2024-11-20"],
"asserts": [
{
"comparator": "gt",
"function": "count",
"function_args": ["_result"],
"value": 0
}
]
}
]
}'
{
"session_id": "test-session",
"success": true,
"verifiers": [
{
"id": "check-event-created",
"operator": "state_comparison",
"success": true,
"asserts": [
{
"actual_value": true,
"expected_value": true,
"comparator": "eq",
"success": true,
"matching_results": [
{
"id": 1,
"title": "Team Meeting",
"startTime": "2024-11-20T14:00:00Z"
}
]
}
]
}
]
}
{
"session_id": "test-session",
"success": false,
"verifiers": [
{
"id": "check-event-created",
"operator": "state_comparison",
"success": false,
"asserts": [
{
"actual_value": false,
"expected_value": true,
"comparator": "eq",
"success": false
}
],
"all_results": []
}
]
}
{
"session_id": "test-session",
"success": "PENDING",
"verifiers": [
{
"id": "rubric-check",
"success": "PENDING"
}
]
}
Run verification checks to validate agent actions. The verifier checks both database state (what changed) and interaction logs (what was done) to provide comprehensive verification.
Request Body
Array of verification checks to perform
Show Check Object
Show Check Object
Assertion Object
Response
Overall result:
true (all passed), false (at least one failed), or 'PENDING' (rubric checks pending)curl -X POST http://localhost:3000/verifier \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session",
"checks": [
{
"id": "check-event-created",
"type": "state",
"table": "events",
"asserts": [
{
"comparator": "eq",
"function": "object_contains",
"function_args": ["_result[*]", {"title": "Team Meeting"}],
"value": true
}
]
}
]
}'
curl -X POST http://localhost:3000/verifier \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session",
"checks": [
{
"id": "check-button-clicked",
"type": "log",
"asserts": [
{
"comparator": "eq",
"function": "object_contains",
"function_args": ["_result[*]", {
"eventType": "click",
"clickId": "submit-button"
}],
"value": true
}
]
}
]
}'
curl -X POST http://localhost:3000/verifier \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session",
"checks": [
{
"id": "check-events-on-day",
"type": "manual",
"function": "find_events_on_day",
"function_args": ["2024-11-20"],
"asserts": [
{
"comparator": "gt",
"function": "count",
"function_args": ["_result"],
"value": 0
}
]
}
]
}'
{
"session_id": "test-session",
"success": true,
"verifiers": [
{
"id": "check-event-created",
"operator": "state_comparison",
"success": true,
"asserts": [
{
"actual_value": true,
"expected_value": true,
"comparator": "eq",
"success": true,
"matching_results": [
{
"id": 1,
"title": "Team Meeting",
"startTime": "2024-11-20T14:00:00Z"
}
]
}
]
}
]
}
{
"session_id": "test-session",
"success": false,
"verifiers": [
{
"id": "check-event-created",
"operator": "state_comparison",
"success": false,
"asserts": [
{
"actual_value": false,
"expected_value": true,
"comparator": "eq",
"success": false
}
],
"all_results": []
}
]
}
{
"session_id": "test-session",
"success": "PENDING",
"verifiers": [
{
"id": "rubric-check",
"success": "PENDING"
}
]
}