mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
fix: fix pydantic support to 2.7.x (#3016)
Pydantic 2.7.x does not support a second parameter in model validators with mode="after"
This commit is contained in:
@@ -20,7 +20,8 @@ class FlowTrackable(BaseModel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@model_validator(mode="after")
|
@model_validator(mode="after")
|
||||||
def _set_parent_flow(self, max_depth: int = 5) -> "FlowTrackable":
|
def _set_parent_flow(self) -> "FlowTrackable":
|
||||||
|
max_depth = 5
|
||||||
frame = inspect.currentframe()
|
frame = inspect.currentframe()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user