File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
azure/durable_functions/openai_agents Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -165,14 +165,14 @@ def to_json(self) -> str:
165165 """Convert the ActivityModelInput to a JSON string."""
166166 try :
167167 return self .model_dump_json (warnings = False )
168- except Exception as e :
169- # logger.warning(f"Failed to serialize ActivityModelInput with warnings='none': {e}")
168+ except Exception :
170169 # Fallback to basic JSON serialization
171170 try :
172171 return json .dumps (self .model_dump (warnings = False ), default = str )
173172 except Exception as fallback_error :
174- logger .error (f"Failed to serialize ActivityModelInput with fallback method: { fallback_error } " )
175- raise ValueError (f"Unable to serialize ActivityModelInput: { fallback_error } " ) from fallback_error
173+ raise ValueError (
174+ f"Unable to serialize ActivityModelInput: { fallback_error } "
175+ ) from fallback_error
176176
177177 @classmethod
178178 def from_json (cls , json_str : str ) -> 'ActivityModelInput' :
You can’t perform that action at this time.
0 commit comments