-
Notifications
You must be signed in to change notification settings - Fork 364
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
Cannot process return type annotations for pydantic types #491
Comments
@samuelcolvin I see that this could be related to this issue: mkdocstrings/griffe#293 It seems like the error is happening here in griffe
And because parent is a signature object this errors out
|
Since the return type annotations and docstrings is not used at all, would the solution be to somehow disable this specific warning? Alternatively I can just stop putting the returns statement in the docstring, but that does not seem ideal. |
weird, yes because we're not using the return type we should find a way to mute this warning or even avoid parsing that part of the function completely. |
Could it be that the |
I did a follow up experiment on this issue #134
And changed the get_location tool to have a docstring
This causes a warning.
Is this expected?
How are the docstrings and return type annotations used by pydantic in tool call results? Is it better to convert the return type into simpler types for tools?
The text was updated successfully, but these errors were encountered: