Skip to content
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

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

Open
1 task done
creatorrr opened this issue Oct 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@creatorrr
Copy link
Contributor

🔖 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?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

@creatorrr creatorrr added the enhancement New feature or request label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant