Skip to content

Commit

Permalink
chore: Rename accumulator value
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Aug 23, 2024
1 parent 4c936b0 commit e3bde88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agents-api/agents_api/workflows/task_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ async def transition(**kwargs) -> None:
map=map_defn, reduce=reduce, initial=initial
), StepOutcome(output=items):
initial = initial or []
reduce = reduce or "initial + [_]"
reduce = reduce or "results + [_]"

for i, item in enumerate(items):
workflow_name = f"`{context.cursor.workflow}`[{context.cursor.step}].mapreduce[{i}]"
Expand Down Expand Up @@ -304,7 +304,7 @@ async def transition(**kwargs) -> None:
task_steps.base_evaluate,
args=[
reduce,
{"initial": initial, "_": output},
{"results": initial, "_": output},
],
schedule_to_close_timeout=timedelta(seconds=2),
)
Expand Down

0 comments on commit e3bde88

Please sign in to comment.