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

Function ok

astrbot/dashboard/responses.py:14–15  ·  view source on GitHub ↗
(data: Any = None, message: str | None = None)

Source from the content-addressed store, hash-verified

12
13
14def ok(data: Any = None, message: str | None = None) -> dict[str, Any]:
15 return {"status": "ok", "message": message, "data": {} if data is None else data}
16
17
18def error(message: str, data: Any = None) -> dict[str, Any]:

Callers 15

_runFunction · 0.90
get_provider_schemaFunction · 0.90
list_provider_sourcesFunction · 0.90
create_provider_sourceFunction · 0.90
list_providers_by_sourceFunction · 0.90

Calls

no outgoing calls

Tested by 15

test_provider_by_idFunction · 0.72
test_providerFunction · 0.72
test_bot_by_idFunction · 0.72
test_botFunction · 0.72
fake_chat_responseFunction · 0.72