function tool schema #771
mohammad-passage
started this conversation in
General
Replies: 1 comment
-
We support JSON Schema as well, in that case instead of providing a python function, you extend from BaseTool and provide the JSON Schama in your class. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's the rational with relying on doc string for function schemas as opposed to a more explicit and clear definition like the json object openai is using: https://platform.openai.com/docs/guides/function-calling?api-mode=chat&example=get-weather
In my experience the latter never gets it wrong but the former does. Same model and same settings
Beta Was this translation helpful? Give feedback.
All reactions