Skip to content

Commit

Permalink
Updates from editor
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitvinnakota-codecov committed Sep 20, 2024
1 parent 3c399b2 commit 5269aac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/seer/automation/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def get_completion(self):

def run_iteration(self, context: Optional[AutofixContext] = None):
logger.debug(f"----[{self.name}] Running Iteration {self.iterations}----")

message, usage = self.get_completion()

self.memory.append(message)
Expand Down Expand Up @@ -126,6 +127,7 @@ def run(self, prompt: str, context: Optional[AutofixContext] = None):
raise MaxIterationsReachedException(
f"Agent {self.name} reached maximum iterations without finishing."
)

return self.get_last_message_content()

def reset_iterations(self):
Expand Down

0 comments on commit 5269aac

Please sign in to comment.