-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Functions with datetime arguments #53
Open
Labels
enhancement
New feature or request
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in https://github.com/orgs/phidatahq/discussions/50
Originally posted by adieyal January 19, 2024
Thanks for an excellent library.
I was wondering what the best approach for defining tools whose functions have datetime arguments. From my reading of the code, it seems that you need to create a custom
Function
sinceget_json_schema
doesn't handle dates. e.g.perhaps an alternative would be to customise
get_json_schema
and then overridefrom_callable
to use the new function?phidata/phi/tools/function.py
Lines 27 to 44 in a598b58
The text was updated successfully, but these errors were encountered: