-
Notifications
You must be signed in to change notification settings - Fork 15.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PydanticUserError: SQLDatabaseToolkit
is not fully defined; you should define BaseCache
, then call SQLDatabaseToolkit.model_rebuild()
.
#28284
Comments
I had a similar issue and downgrading pydantic to 2.9.2 resolved it for me. |
#28257 mentions a very similar issue! |
Breaking due to new pydantic release: https://github.com/pydantic/pydantic/releases/tag/v2.10.1 investigating |
Thanks a lot!. It is working for me now. |
As discussed on Slack: #28297 fixed the issue, however there might be a more robust way to fix it. The langchain/libs/core/langchain_core/language_models/base.py Lines 95 to 103 in a83357d
Because langchain/libs/core/langchain_core/language_models/base.py Lines 31 to 33 in a83357d
For every Pydantic model using
Additionally, it seems like Footnotes
|
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
Any help is highly appreciated :)
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: