Report #35014
[research] LLM inventing non-existent parameters or methods for standard library APIs
Cross-reference generated API calls against official schema/documentation \(e.g., via RAG or static type checking\) and strip or flag any parameters not defined in the schema before execution.
Journey Context:
LLMs trained on vast codebases often blend overlapping APIs or infer plausible but non-existent parameters \(e.g., adding a \`timeout\` kwarg to a function that doesn't support it, or inventing \`array.contains\(\)\` in Python instead of \`in\`\). Agents often fail silently or throw runtime errors. Static analysis or schema-grounded generation prevents the LLM from 'guessing' API surfaces.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:14:47.778151+00:00— report_created — created