File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
python/packages/core/agent_framework/_workflows Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -148,9 +148,7 @@ def decode_checkpoint_value(value: Any) -> Any:
148148 if cls is not None :
149149 # Verify the class actually supports the model protocol
150150 if not _class_supports_model_protocol (cls ):
151- logger .debug (
152- f"Class { type_key } does not support model protocol; returning raw value"
153- )
151+ logger .debug (f"Class { type_key } does not support model protocol; returning raw value" )
154152 return decoded_payload
155153 if strategy == "to_dict" and hasattr (cls , "from_dict" ):
156154 with contextlib .suppress (Exception ):
@@ -177,9 +175,7 @@ def decode_checkpoint_value(value: Any) -> Any:
177175 cls_dc : Any = getattr (module , class_name )
178176 # Verify the class is actually a dataclass type (not an instance)
179177 if not isinstance (cls_dc , type ) or not is_dataclass (cls_dc ):
180- logger .debug (
181- f"Class { type_key_dc } is not a dataclass type; returning raw value"
182- )
178+ logger .debug (f"Class { type_key_dc } is not a dataclass type; returning raw value" )
183179 return decoded_raw
184180 constructed = _instantiate_checkpoint_dataclass (cls_dc , decoded_raw )
185181 if constructed is not None :
You can’t perform that action at this time.
0 commit comments