-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error handling for
add_ouput
in Python SDK (#687)
Summary: This pull request addresses a critical flaw in the add_output method within the Python SDK. Currently, the method incorrectly adds None to the output list when the Output parameter is None, which contradicts the intended behavior. The expected functionality is for the method to reject None as an invalid output or, alternatively, raise an exception. Changes Made: - Modified the add_output method to raise an exception when the Output parameter is None. Context: This change ensures that the add_output method behaves as expected, providing more robust and predictable behavior when handling output parameters. Related Issues: Closes #529 Test Plan: New test similar to `test_add_output_existing_prompt_no_overwrite` but with overwrite needs to be added. Things left to complete: - [x] Add test for `add_output` with overwrite enabled
- Loading branch information
Showing
2 changed files
with
73 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters