minimaxir / simpleaichat

Python package for easily interfacing with chat apps, with robust features and minimal code complexity.
MIT License
3.49k stars 229 forks source link

Protect against input/output schema footgun when using tools #104

Closed player1537 closed 11 months ago

player1537 commented 11 months ago

I was reading through the code and I saw that the input/output schema parameters are ignored when using tools. I added an assert statement to warn that the schemas are ignored when using tools.

I didn't test this, admittedly, but it's a small addition.

Thank you for creating this project! :)

minimaxir commented 11 months ago

Good call, I will add schema support to tools at some point.