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

Function _run

astrbot/dashboard/api/skills.py:72–82  ·  view source on GitHub ↗
(operation, *, trace: bool = True)

Source from the content-addressed store, hash-verified

70
71
72async def _run(operation, *, trace: bool = True):
73 try:
74 result = await run_maybe_async(operation)
75 if isinstance(result, SkillsOperationResult):
76 return _serialize_result(result)
77 return ok(result)
78 except SkillsServiceError as exc:
79 return error(str(exc))
80 except Exception as exc:
81 logger.error(str(exc), exc_info=trace)
82 return error(str(exc))
83
84
85def _archive_response(archive: SkillArchive):

Callers 15

list_skillsFunction · 0.70
upload_skillFunction · 0.70
upload_skills_batchFunction · 0.70
update_skill_by_nameFunction · 0.70
delete_skill_by_nameFunction · 0.70
list_skill_files_by_nameFunction · 0.70
get_skill_file_by_nameFunction · 0.70
list_skill_filesFunction · 0.70
get_skill_fileFunction · 0.70
update_skill_fileFunction · 0.70
update_skillFunction · 0.70

Calls 5

run_maybe_asyncFunction · 0.90
okFunction · 0.90
errorFunction · 0.90
_serialize_resultFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected