-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding HandlebarsPlanCreationException #4973
Adding HandlebarsPlanCreationException #4973
Conversation
But isn't this a return to how kernel errors were once handled? ADR 0004 describes a departure from such solution in favor of throwing exceptions. |
704cf70
to
9171a7a
Compare
Great callout @Krzysztof318, that slipped my mind. Pivoted to creating a narrower exception type containing these details. |
Motivation and Context
Resolves #4440
This PR adds a more detailed
HandlebarsPlanCreationException
type, which allows users to inspect the prompt and model results, if available.Als includes a minor update to sample to add clarifying comments.
Description
Users can catch
HandlebarsPlanCreationException
to inspect the prompt, proposed plan, and exception details on error. All exceptions will be bubbled up to the caller.Contribution Checklist