MCPcopy Create free account
hub / github.com/AMAP-ML/Thinking-with-Map / default

Method default

demo/qwen_agent/utils/utils.py:313–316  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

311class PydanticJSONEncoder(json.JSONEncoder):
312
313 def default(self, obj):
314 if isinstance(obj, BaseModel):
315 return obj.model_dump()
316 return super().default(obj)
317
318
319def 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