INNER CODE UNIT · Python

emit

uvwt/agentdock · core-skills/skill-authoring/run.py:106

def emit(value: object) -> None:
    print(json.dumps(value, ensure_ascii=False, separators=(",", ":")))


def fail(code: str, message: str, details: object | None = None) -> None:
    error: dict[str, object] = {"code": code, "message": message}
    if details is not None:
        error["details"] = details
    emit({"ok": False, "error": error})
    raise SystemExit(1)


def load_input() -> dict[str, object]:
    raw = sys.stdin.read().strip()
    if not raw:
        return {}
    try:
        value = json.loads(raw)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…