This pull request adds documentation for the Assertions module in the dspy/assert directory. It introduces new classes and functions related to handling assertions and suggestions in the DSPy framework.
Summary
Added Suggest class to represent suggestions in the DSPy framework
Added Constraint class as a base class for Assert and Suggest
Added noop_handler function to bypass both assertions and suggestions
Added bypass_suggest_handler function to bypass suggestions only
Added bypass_assert_handler function to bypass assertions only
Added assert_no_except_handler function to ignore assertion failures
Added suggest_backtrack_handler function for backtracking suggestions
Added handle_assert_forward function to handle assertions
Added assert_transform_module function to transform a module to handle assertions
Updated docs/primitives/assertions.md file with the new documentation
Fixes #52.
π Latest improvements to Sweep:
We just released a dashboard to track Sweep's progress on your issue in real-time, showing every stage of the process β from search to planning and coding.
Sweep uses OpenAI's latest Assistant API to plan code changes and modify code! This is 3x faster and significantly more reliable as it allows Sweep to edit code and validate the changes in tight iterations, the same way as a human would.
PR Feedback (click)
Description
This pull request adds documentation for the
Assertions
module in thedspy/assert
directory. It introduces new classes and functions related to handling assertions and suggestions in the DSPy framework.Summary
Suggest
class to represent suggestions in the DSPy frameworkConstraint
class as a base class forAssert
andSuggest
noop_handler
function to bypass both assertions and suggestionsbypass_suggest_handler
function to bypass suggestions onlybypass_assert_handler
function to bypass assertions onlyassert_no_except_handler
function to ignore assertion failuressuggest_backtrack_handler
function for backtracking suggestionshandle_assert_forward
function to handle assertionsassert_transform_module
function to transform a module to handle assertionsdocs/primitives/assertions.md
file with the new documentationFixes #52.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: