Skip to main content
AI-PAIR-PROGRAMMING5 MIN READ

Repair a Hallucinated API Answer

Recover from an AI hallucination by separating source evidence from inference.

The plausible method The method name fits the SDK style, but TypeScript says it does not exist. A believable naming pattern is not source evidence. Evidence repair Observed -> Inferred -> Verified Do not argue with the assistant's confidence. Ask it to sort claims by evidence level, then patch only from verified source. Trust name Looks like the SDK would have it The repair is grounded in the codebase. Plausibility is not proof. 01 Evidence 02 Source 03 Patch Decision 1 The compiler rejects the assistant's method.

Read the full lesson

Sign up free — one personalized lesson every day, matched to your role and goals.

Already have an account? Sign in

← Back to library
Contact us