MCPcopy Create free account
hub / github.com/Alibaba-NLP/DeepResearch / default

Method default

inference/file_tools/utils.py:310–313  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

308class PydanticJSONEncoder(json.JSONEncoder):
309
310 def default(self, obj):
311 if isinstance(obj, BaseModel):
312 return obj.model_dump()
313 return super().default(obj)
314
315
316def json_dumps_pretty(obj: dict, ensure_ascii=False, indent=2, **kwargs) -> str:

Callers

nothing calls this directly

Calls 1

model_dumpMethod · 0.80

Tested by

no test coverage detected