pydantic change for example.py

pull/362/head
evelynmitchell 12 months ago
parent 9ef3e68e27
commit b53dbea9f5

@ -276,7 +276,7 @@ class ChildTool(BaseTool):
} }
return tool_input return tool_input
@root_validator() @root_validator(skip_on_failure=True)
def raise_deprecation(cls, values: Dict) -> Dict: def raise_deprecation(cls, values: Dict) -> Dict:
"""Raise deprecation warning if callback_manager is used.""" """Raise deprecation warning if callback_manager is used."""
if values.get("callback_manager") is not None: if values.get("callback_manager") is not None:

Loading…
Cancel
Save