Skip to content

Commit

Permalink
Fixes argument order for custom code evaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasTrg authored May 21, 2024
1 parent 8f47307 commit e0d3c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agenta-backend/agenta_backend/services/security/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def execute_code_safely(

# Call the evaluation function, extract the result if it exists
# and is a float between 0 and 1
result = environment["evaluate"](app_params, inputs, correct_answer, output)
result = environment["evaluate"](app_params, inputs, output, correct_answer)
if isinstance(result, float) and 0 <= result <= 1:
return result
return None

0 comments on commit e0d3c4b

Please sign in to comment.