-
Notifications
You must be signed in to change notification settings - Fork 41
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 while compiling error from basetool.py
caused by ToolMetaclass
#63
Comments
Greetings! Thanks for your first issue! |
I don't run into this error in my env. Seems like a version mismatch issue. What pydantic version are you using? If you create a new env and |
I did install the required packages via requirement.txt under docs. But I think you're right. Mine is 2.4.2. Let me uninstall it and check again. I'll keep you posted. |
what's your agent config file |
The
|
I tried to use the original Gentopia without any changes and also the example agent
|
Problem solved! I'll create a pull request |
When running a customized
assembler.py
, I received a pydnatic error saying, "Fieldname
doesn't have the annotation." The detailed error screenshot is attached below and some printouts to help understand the problem.error:
printout code and printouts:
# test block codes inside basetool.py under ToolMetaclass.__new__():
print("----test block-----")
print(f"tool name: {name} \n")
print(f"namespace dict annotation list: {dct.get('__annotations__', [])} \n")
print(f"namespace items: {[k for k,v in dct.items()]} \n")
print(f"namespace vals: {[v for k,v in dct.items()]} \n")
print("----test block end----")
The text was updated successfully, but these errors were encountered: