Skip to content

Commit

Permalink
fix(orchestrator.py): add exclude=True to handlers field to prevent i…
Browse files Browse the repository at this point in the history
…t from being included in model serialization
  • Loading branch information
teocns committed Oct 29, 2024
1 parent 0d4100b commit 9a229d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controlflow/orchestration/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Orchestrator(ControlFlowModel):
description="The strategy to use for managing agent turns",
validate_default=True,
)
handlers: list[Union[Handler, AsyncHandler]] = Field(None, validate_default=True)
handlers: list[Union[Handler, AsyncHandler]] = Field(None, validate_default=True, exclude=True)

@field_validator("turn_strategy", mode="before")
def _validate_turn_strategy(cls, v):
Expand Down

0 comments on commit 9a229d0

Please sign in to comment.