Skip to content

Commit 4c15678

Browse files
committed
The new question results in continue as new which is not supported correctly in the workflow
1 parent 2b6a5e1 commit 4c15678

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/contrib/openai_agents/test_openai.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,7 @@ def __init__(self, input_items: list[TResponseInputItem] = []):
998998
@workflow.run
999999
async def run(self, input_items: list[TResponseInputItem] = []):
10001000
await workflow.wait_condition(
1001-
lambda: workflow.info().is_continue_as_new_suggested()
1002-
and workflow.all_handlers_finished()
1001+
lambda: False
10031002
)
10041003
workflow.continue_as_new(self.input_items)
10051004

0 commit comments

Comments
 (0)