Skip to content

Commit 369e3f7

Browse files
fix: Workflow.run_stream() -> run(stream=True) in 1.1.1
Workflow no longer has run_stream() method. Use run(message, stream=True) instead, which returns an async iterator of WorkflowEvents. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 793f1b3 commit 369e3f7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/ContentProcessorWorkflow/src/libs/agent_framework/groupchat_orchestrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ async def run_stream(
628628
# Execute with streaming
629629
conversation: list[Message] = []
630630

631-
async for event in group_chat_workflow.run_stream(task_prompt):
631+
async for event in group_chat_workflow.run(task_prompt, stream=True):
632632
# Enforce wall-clock timeout if configured.
633633
if self.max_seconds is not None:
634634
elapsed = (datetime.now() - start_time).total_seconds()

src/ContentProcessorWorkflow/src/steps/claim_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ async def run(self, input_data: str) -> Any:
215215
last_invoked_executor_id: str | None = None
216216

217217
try:
218-
async for event in self.workflow.run_stream(input_data):
218+
async for event in self.workflow.run(input_data, stream=True):
219219
event: WorkflowEvent
220220
if event.type == "started":
221221
logger.info("Workflow started (%s)", event.origin.value)

0 commit comments

Comments
 (0)