Check or look up an answer
check_answerLook up a bank question and optionally grade an answer to it. Accepts a question id (exact) OR remembered question text (fuzzy matched against all questions and their alternate phrasings). Typical uses: grading long after a question was fetched, or a user half-remembering a question from their real test and wanting the verified answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | No | The user's answer to grade, if they have one | |
| language | No | Language the answer (and question_text, if given) is written in; grading compares against that language's text | |
| question_id | No | The question id, e.g. q-042 (exact match) | |
| question_text | No | The question as the user remembers it (fuzzy matched); used when no id is given |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | ||
| web_page | Yes | ||
| explanation | Yes | ||
| question_id | Yes | ||
| correct_answer | Yes | ||
| match_confidence | Yes | ||
| your_answer_correct | Yes | null when no answer was provided to grade | |
| other_possible_matches | Yes | Runner-up matches when the text match was not certain |