julep icon indicating copy to clipboard operation
julep copied to clipboard

[Feature]: Function definitions as tools should have their parameters object type be type checked (in typespec)

Open creatorrr opened this issue 1 year ago • 0 comments
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

creatorrr avatar Oct 28 '24 19:10 creatorrr