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

Function _run

astrbot/dashboard/api/chat.py:69–74  ·  view source on GitHub ↗
(operation)

Source from the content-addressed store, hash-verified

67
68
69async def _run(operation):
70 try:
71 result = await run_maybe_async(operation)
72 return ok(result)
73 except ChatServiceError as exc:
74 return error(str(exc))
75
76
77def _file_response(file_path: str, mimetype: str | None):

Callers 15

create_chat_sessionFunction · 0.70
get_chat_sessionFunction · 0.70
update_chat_sessionFunction · 0.70
delete_chat_sessionFunction · 0.70
stop_chat_sessionFunction · 0.70
update_chat_messageFunction · 0.70
create_chat_threadFunction · 0.70
get_chat_threadFunction · 0.70
delete_chat_threadFunction · 0.70
dashboard_new_sessionFunction · 0.70
dashboard_get_sessionsFunction · 0.70

Calls 3

run_maybe_asyncFunction · 0.90
okFunction · 0.90
errorFunction · 0.90

Tested by

no test coverage detected