Skip to content

Commit

Permalink
fix(agents-api): Fix the bug where execution.output was not being set
Browse files Browse the repository at this point in the history
Signed-off-by: Diwank Singh Tomer <[email protected]>
  • Loading branch information
creatorrr committed Oct 11, 2024
1 parent 51c2400 commit 2b78559
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def create_execution_transition(
data=UpdateExecutionRequest(
status=transition_to_execution_status[data.type]
),
output=data.output if data.type == "finish" else None,
output=data.output if data.type != "error" else None,
error=str(data.output)
if data.type == "error" and data.output
else None,
Expand Down

0 comments on commit 2b78559

Please sign in to comment.