Skip to main content
Verify code correctness against documented behavior, reference implementations, and API contracts. Returns a Pass/Fail verdict with analysis.

When to Use

  • After writing critical code: Verify it correctly implements a concept or algorithm
  • Logic errors: Detect off-by-one mistakes, wrong assumptions, or incorrect API usage
  • Reference comparison: Compare against documented behavior and reference implementations

Parameters

ParameterRequiredTypeDescription
code_snippetYesstringThe code to verify
concept_nameYesstringThe concept, algorithm, or API being implemented

Example

Tool: verify_code_math
Code: "lora_scaling = lora_alpha / lora_r"
Concept: "LoRA scaling factor computation"
Returns: Verdict (Pass/Fail) and analysis of any discrepancies found.