Skip to content
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

ValidationError: 1 validation error for StructuredTool #1

Closed
jjlee6496 opened this issue Dec 21, 2023 · 1 comment
Closed

ValidationError: 1 validation error for StructuredTool #1

jjlee6496 opened this issue Dec 21, 2023 · 1 comment

Comments

@jjlee6496
Copy link
Owner

pydantic으로 tool 활용 시
ValidationError: 1 validation error for StructuredTool
args_schema
subclass of BaseModel expected (type=type_error.subclass; expected_class=BaseModel)
에러 발생

@jjlee6496
Copy link
Owner Author

jjlee6496 commented Dec 21, 2023

langchain-ai/langchain#9441 (comment)
pydantic v2로 업데이트 되면서 이슈 발생. from pydantic.v1 import BaseModel로 해결

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant