Skip to content

Commit

Permalink
ctx dict items added back
Browse files Browse the repository at this point in the history
  • Loading branch information
pseusys committed Feb 19, 2025
1 parent 4819cd4 commit 25066d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chatsky/core/ctx_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ def _validate_model(value: Any, handler: Callable[[Any], "ContextDict"], _) -> "
instance._removed = value["removed"]
instance._ctx_id = value["ctx_id"]
instance._field_name = value["field_name"]
else:
instance._items = dict()
instance._keys = set()
return instance
else:
raise ValueError(f"Unknown type of ContextDict value: {type(value).__name__}.")
Expand Down

0 comments on commit 25066d8

Please sign in to comment.