Skip to content

Commit

Permalink
Added a line to the last rule action
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalego committed Dec 23, 2023
1 parent 42a3cd2 commit 466409a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wafl/answerer/dialogue_answerer.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async def _get_relevant_rules(self, query, max_num_rules=1):
for cause_index, causes in enumerate(rule.causes):
rules_text += f" {cause_index + 1}) {causes.text}\n"

rules_text += f' {len(rule.causes) + 1}) After you completed all the steps output "{self._delete_current_rule}"\n'
rules_text += f' {len(rule.causes) + 1}) After you completed all the steps output "{self._delete_current_rule}" and continue the conversation.\n'

rules_texts.append(rules_text)
await self._interface.add_fact(f"The bot remembers the rule:\n{rules_text}")
Expand Down

0 comments on commit 466409a

Please sign in to comment.