Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

Commit 973d663

Browse files
authored
Merge pull request #370 from teocns/main
Orchestrator: exclude `handlers` field from being serialized
2 parents 0d4100b + 50c4dac commit 973d663

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/controlflow/orchestration/orchestrator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ class Orchestrator(ControlFlowModel):
5151
description="The strategy to use for managing agent turns",
5252
validate_default=True,
5353
)
54-
handlers: list[Union[Handler, AsyncHandler]] = Field(None, validate_default=True)
54+
handlers: list[Union[Handler, AsyncHandler]] = Field(
55+
None, validate_default=True, exclude=True
56+
)
5557

5658
@field_validator("turn_strategy", mode="before")
5759
def _validate_turn_strategy(cls, v):

0 commit comments

Comments
 (0)