Skip to content

Commit

Permalink
Merge pull request #370 from teocns/main
Browse files Browse the repository at this point in the history
Orchestrator: exclude `handlers` field from being serialized
  • Loading branch information
jlowin authored Oct 29, 2024
2 parents 0d4100b + 50c4dac commit 973d663
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controlflow/orchestration/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ 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 973d663

Please sign in to comment.