Skip to content

Commit

Permalink
fix: Remove double next_action selection (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
eob authored Sep 6, 2023
1 parent ce0a6e4 commit 39904c1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/steamship/agents/service/agent_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,6 @@ def run_agent(self, agent: Agent, context: AgentContext):
)
)

# Select the next action to run
action = self.next_action(
agent=agent, input_blocks=[context.chat_history.last_user_message], context=context
)

# Run the next action and incremenet our counter
self.run_action(agent=agent, action=action, context=context)
number_of_actions_run += 1
Expand Down

0 comments on commit 39904c1

Please sign in to comment.