We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently grammars use from_json()
from_json()
This is not as pretty or convenient as new. Maybe a macro for defining properties would work better and could write the initializer.
new
The text was updated successfully, but these errors were encountered:
A cleaner implementation will allow provider just the class and then handles creating the instance to return, like the following
# The `response` here is now an instance of MyStructuredResponse response = DEFAULT_MODEL.chat(prompt, grammar_class: MyStructuredResponse)
Sorry, something went wrong.
No branches or pull requests
Currently grammars use
from_json()
This is not as pretty or convenient as
new
.Maybe a macro for defining properties would work better and could write the initializer.
The text was updated successfully, but these errors were encountered: