Skip to content

Commit

Permalink
(chore) Return final_response (instead of only setting it) after call…
Browse files Browse the repository at this point in the history
…ing structure.process()
  • Loading branch information
josh-ashkinaze committed Dec 18, 2024
1 parent 1c7e002 commit c9f5272
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plurals/deliberation.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ def process(self):
moderated_response = self.moderator._moderate_responses(self.responses)
self.responses.append(moderated_response)
self.final_response = self.responses[-1]
return self.final_response


class Ensemble(AbstractStructure):
Expand Down Expand Up @@ -597,6 +598,7 @@ def process(self):
moderated_response = self.moderator._moderate_responses(self.responses)
self.responses.append(moderated_response)
self.final_response = self.responses[-1]
return self.final_response


class Debate(AbstractStructure):
Expand Down Expand Up @@ -723,6 +725,7 @@ def process(self):
moderated_response = self.moderator._moderate_responses(self.responses)
self.responses.append(moderated_response)
self.final_response = self.responses[-1]
return self.final_response


class Graph(AbstractStructure):
Expand Down

0 comments on commit c9f5272

Please sign in to comment.