You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 since get_json_schema doesn't handle dates. e.g.
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: