MCPcopy
hub / github.com/htdt/godogen / result_json

Function result_json

asset-gen/tools/asset_gen.py:61–67  ·  view source on GitHub ↗
(ok: bool, path: str | None = None, cost_cents: int = 0, error: str | None = None)

Source from the content-addressed store, hash-verified

59
60
61def result_json(ok: bool, path: str | None = None, cost_cents: int = 0, error: str | None = None):
62 d = {"ok": ok, "cost_cents": cost_cents}
63 if path:
64 d["path"] = path
65 if error:
66 d["error"] = error
67 print(json.dumps(d))
68
69
70# --- Image backends ---

Callers 9

_generate_geminiFunction · 0.85
_generate_grokFunction · 0.85
cmd_imageFunction · 0.85
cmd_videoFunction · 0.85
_resolve_presetFunction · 0.85
cmd_glbFunction · 0.85
cmd_rigFunction · 0.85
cmd_retargetFunction · 0.85
cmd_resumeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected