Skip to content

Commit

Permalink
Update explanation_prompt template for failed condition
Browse files Browse the repository at this point in the history
* Correct the order of methods in the failed condition message
* Update the output message to reflect the corrected order of methods
  • Loading branch information
kdunee committed Nov 4, 2024
1 parent ba9b33d commit e5db205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intentguard/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ def another_method(self):
```
**Failed Condition:**
"{obj1} has method method and {obj2} has method another_method"
"{obj1} has method another_method and {obj2} has method method"
### Output
The condition "{obj1} has method method and {obj2} has method another_method" was not met because {obj1} does not have a method named 'method' and {obj2} does not have a method named 'another_method'.
The condition was not met because {obj1} does not have a method named 'another_method' and {obj2} does not have a method named 'method'.
"""

reponse_schema = {
Expand Down

0 comments on commit e5db205

Please sign in to comment.