MCPcopy
hub / github.com/AstrBotDevs/AstrBot / _serialize_result

Function _serialize_result

astrbot/dashboard/api/skills.py:66–69  ·  view source on GitHub ↗
(result: SkillsOperationResult)

Source from the content-addressed store, hash-verified

64
65
66def _serialize_result(result: SkillsOperationResult):
67 if result.ok:
68 return ok(result.data, result.message)
69 return error(result.message or "", result.data)
70
71
72async def _run(operation, *, trace: bool = True):

Callers 1

_runFunction · 0.85

Calls 2

okFunction · 0.90
errorFunction · 0.90

Tested by

no test coverage detected