Summary
Enable deterministic creation of Tesseract API's from arbitrary type-hinted python functions
Why is this needed?
While the somewhat laborious task of Tesseract API creation including InputSchema's and OutputSchema's is arguably well taken care of by LLM's, it could be helpful to get a working template up and running in a deterministic fashion that an LLM can then neaten up. The LLM could even run the auto-generation itself saving vital tokens. I have a draft example in PR #450, now closed due to lack of interest. If there is any interest in this feature please comment on the issue and perhaps try out the PR branch (which will not be kept up to date with tesseract-core for now). If it turns out to be useful we can re-open the PR and get it into a maintainable state.
Usage example
tesseract init --fromfunc example.py::my_func
Summary
Enable deterministic creation of Tesseract API's from arbitrary type-hinted python functions
Why is this needed?
While the somewhat laborious task of Tesseract API creation including InputSchema's and OutputSchema's is arguably well taken care of by LLM's, it could be helpful to get a working template up and running in a deterministic fashion that an LLM can then neaten up. The LLM could even run the auto-generation itself saving vital tokens. I have a draft example in PR #450, now closed due to lack of interest. If there is any interest in this feature please comment on the issue and perhaps try out the PR branch (which will not be kept up to date with tesseract-core for now). If it turns out to be useful we can re-open the PR and get it into a maintainable state.
Usage example