Remove duplicated final_memory_step creation (#444)

This commit is contained in:
Albert Villanova del Moral 2025-01-31 11:59:53 +01:00 committed by GitHub
parent 10407813e8
commit ebae61f5ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -467,7 +467,6 @@ You have been provided with these additional arguments, that you can access usin
final_memory_step = ActionStep( final_memory_step = ActionStep(
step_number=self.step_number, error=AgentMaxStepsError(error_message, self.logger) step_number=self.step_number, error=AgentMaxStepsError(error_message, self.logger)
) )
final_memory_step = ActionStep(error=AgentMaxStepsError(error_message, self.logger))
final_memory_step.action_output = final_answer final_memory_step.action_output = final_answer
final_memory_step.end_time = time.time() final_memory_step.end_time = time.time()
final_memory_step.duration = memory_step.end_time - step_start_time final_memory_step.duration = memory_step.end_time - step_start_time