Outdated Library API
Errors such as "has no attribute" or "is not a function", or deprecation warnings.
Symptoms
- Errors such as "has no attribute" or "is not a function", or deprecation warnings.
- Examples that do not match the documentation of the installed version.
Cause
The model's knowledge may be older than the version you have installed, so it writes code for an earlier version.
Fix
- Give it the installed version number (from package.json or pip show).
- Attach a link to the official documentation for that version, or an excerpt from it.
- Ask it to read the installed library files if it is a local agent.
Prevention
- Pin the versions in the dependency file.
- Mention the versions in the context file.
