julep
julep copied to clipboard
[Feature]: Function definitions as tools should have their parameters object type be type checked (in typespec)
trafficstars
🔖 Feature description
Function definitions are supposed to be like this:
function:
name: sum
description: ...
parameters:
type: object
properties:
a:
type: number
default: 0
b:
... . . ....
But currently we do not do any validation for them in typespec (code). We should use typespec's jsonschema libs to validate them.
🎤 Why is this feature needed ?
No response
✌️ How do you aim to achieve this?
No response
🔄️ Additional Information
No response
👀 Have you spent some time to check if this feature request has been raised before?
- [X] I checked and didn't find similar issue
Are you willing to submit PR?
None