Skip to content

Commit 0e3ff97

Browse files
committed
Fix store condition
1 parent 2e7d50d commit 0e3ff97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agents/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,7 @@ async def _save_result_to_session(
18661866
if isinstance(input_item, dict) and input_item.get("type") == "reasoning":
18671867
# Check if store is explicitly set to False (ZDR mode)
18681868
store_setting = item.agent.model_settings.store
1869-
if not store_setting and "id" in input_item:
1869+
if store_setting is False and "id" in input_item:
18701870
# Remove the instance-specific IDs to enable load balancing
18711871
input_item = {k: v for k, v in input_item.items() if k != "id"}
18721872
new_items_as_input.append(input_item)

0 commit comments

Comments
 (0)