POST
/
lmunit
curl --request POST \
  --url https://api.contextual.ai/v1/lmunit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "<string>",
  "response": "<string>",
  "unit_test": "<string>"
}'
{
  "score": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

LMUnit input request object.

Response

200
application/json

Successful Response

LMUnit result object.