Skip to content

Commit 803fc11

Browse files
fix: pass start_executor to WorkflowBuilder constructor
In agent-framework 1.1.1, WorkflowBuilder requires start_executor as a mandatory keyword argument. Moved from .set_start_executor() chain call to constructor parameter. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1e66f9e commit 803fc11

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/ContentProcessorWorkflow/src/steps/claim_processor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _init_workflow(self) -> Workflow:
151151
"""
152152

153153
workflow = (
154-
WorkflowBuilder()
154+
WorkflowBuilder(start_executor="document_processing")
155155
.register_executor(
156156
lambda: DocumentProcessExecutor(
157157
id="document_processing", app_context=self.app_context
@@ -172,7 +172,6 @@ def _init_workflow(self) -> Workflow:
172172
lambda: GapExecutor(id="gap_analysis", app_context=self.app_context),
173173
name="gap_analysis",
174174
)
175-
.set_start_executor("document_processing")
176175
# Edges define the execution flow and can include conditions for branching logic.
177176
# In this case, we conditionally branch to the RAI analysis step based on the
178177
# application configuration, allowing it to be toggled on/off without code changes.

0 commit comments

Comments
 (0)