Skip to content

Commit

Permalink
Remove short circuit exception
Browse files Browse the repository at this point in the history
  • Loading branch information
roaga committed Dec 14, 2024
1 parent ed3e256 commit 34c8877
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/seer/automation/autofix/autofix_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,11 @@ def run_iteration(self, run_config: RunConfig):

# log thoughts to the user
cur = self.context.state.get()
initial_memory_length = cur.steps[-1].initial_memory_length
if (
completion.message.content # only if we have something to summarize
and self.config.interactive # only in interactive mode
and not cur.request.options.disable_interactivity
and (
completion.message.tool_calls or len(self.memory) <= initial_memory_length + 1
) # only if the run is in progress (and special case for ending in one exception)
and completion.message.tool_calls # only if the run is in progress
):
text_before_tag = completion.message.content.split("<")[0]
text = text_before_tag
Expand Down

0 comments on commit 34c8877

Please sign in to comment.