Skip to content

Commit f737757

Browse files
committed
refactor: simplify condition for current turn persisted item count in AgentRunner
1 parent 851a23f commit f737757

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/agents/run.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,8 +2010,6 @@ def run_streamed(
20102010
_current_turn_persisted_item_count=(
20112011
(
20122012
len(run_state._generated_items)
2013-
if run_state._generated_items
2014-
else 0
20152013
if run_state._current_turn_persisted_item_count == 0
20162014
and run_state._generated_items
20172015
else run_state._current_turn_persisted_item_count

0 commit comments

Comments
 (0)