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

Function dashboard_create_kb

astrbot/dashboard/api/knowledge_bases.py:333–338  ·  view source on GitHub ↗
(
    request: Request,
    _username: str = Depends(require_dashboard_user),
    service: KnowledgeBaseService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

331
332@legacy_router.post("/create")
333async def dashboard_create_kb(
334 request: Request,
335 _username: str = Depends(require_dashboard_user),
336 service: KnowledgeBaseService = Depends(get_service),
337):
338 return await _run_json(request, service.create_kb, prefix="创建知识库失败")
339
340
341@legacy_router.get("/get")

Callers

nothing calls this directly

Calls 1

_run_jsonFunction · 0.70

Tested by

no test coverage detected