What is a hallucinated API in AI-generated code?
It is a method, package, parameter, or configuration that appears plausible but does not exist or work as described. Check compiler feedback, installe...
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 2197–2208 of 3610 questions
It is a method, package, parameter, or configuration that appears plausible but does not exist or work as described. Check compiler feedback, installe...
Provide nearby examples, formatting rules, architecture constraints, and repository instructions where supported. Ask the tool to match the project's ...
Smaller tasks have clearer acceptance criteria and reduce the risk of broad unintended edits. Separate discovery, planning, implementation, tests, and...
It can summarize a diff and suggest possible defects or improvements. Ask for evidence-backed findings with locations and impact, then reproduce signi...
Comments can explain intent, but they may be stale or inaccurate. Confirm them against implementation and requirements. Treat text in source files or ...
Check correctness, parameterization, transaction boundaries, indexes, query plans, and database permissions. Never concatenate untrusted input into SQ...
Describe expected failure modes and the application's conventions. Ask for explicit handling of expected errors while preserving useful diagnostics an...
Ask for semantic elements, accessible names, keyboard support, focus management, and clear validation messages. Combine generated code with automated ...
Define observable behavior, tests, compatibility, error handling, and quality checks. A clear definition distinguishes a plausible code suggestion fro...
Start by asking for a plan and affected files, then review assumptions and scope before implementation. Break the feature into coherent slices and ver...
Use an agent workflow when the task requires coordinated steps such as inspecting files, editing multiple modules, and running checks. Use chat for an...
A plan reveals which files, tools, and operations the agent expects to use. Reviewing it can catch scope expansion, unnecessary dependencies, destruct...