Contextual AI icon

Contextual AI

Access Contextual AI tools for agents, parsing, querying, and reranking.

LMUnit → Run LMUnit

AI-generated

Summary

Evaluates a response against a unit test via Contextual AI's /v1/lmunit endpoint.

Inputs

  • query (required) — The question or prompt to evaluate.
  • response (required) — The response text to be validated.
  • unitTest (required) — The unit test criteria the response must satisfy.
  • authentication — Authentication method to use (default: API Key / contextualAiApi).

Output shape

json

Returns the raw JSON response from the Contextual AI /v1/lmunit endpoint.

Discussion