-
Notifications
You must be signed in to change notification settings - Fork 21
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
migrate to langchain-core 0.3 (langchain_core.pydantic_v1 removal) #101
Conversation
…rivateAttr errors
…tured_output's signature
@baskaryan ptal |
model_config = ConfigDict( | ||
arbitrary_types_allowed=True, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also add protected_namespaces=()
to remove warnings if we want to keep existing field names
model_config = ConfigDict( | |
arbitrary_types_allowed=True, | |
) | |
model_config = ConfigDict( | |
arbitrary_types_allowed=True, | |
protected_namespaces=(), | |
) |
We did this on all instances of RunnableSerializable in langchain-core.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i considered that and figured this since is internal code (not user visible), it was fine to leave the namespace protection in place.
unfortunately, i didn't see a way to exclude a specific field, which would be the best solution imho.
@@ -26,7 +26,7 @@ pytest-mock = "^3.10.0" | |||
syrupy = "^4.0.2" | |||
pytest-watcher = "^0.3.4" | |||
pytest-asyncio = "^0.21.1" | |||
langchain-core = { git = "https://github.com/langchain-ai/langchain.git", subdirectory = "libs/core", tag = "langchain-core==0.2.40" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering if we still want to install from source for test dependencies (e.g., remove specification of tag
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree, i'll make the change.
No description provided.