ApiCall
evaluator.
Description:response
, query
, context
, response
boolean
passed
(0 or 1)url
: string - API endpoint to call. Note that this API should accept POST request.headers
: dict - Headers to include in the API call.payload
: dict - Body to send with the API call. This payload will have the Response added to it.response
and optionally the query
, context
and expected_response
to be passed to the API.
result
and reason
.result
(boolean): should contain the evaluation result (true / false)reason
(string): should contain an explanation for the evaluation result