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

Function create_chat_thread

astrbot/dashboard/api/chat.py:235–242  ·  view source on GitHub ↗
(
    payload: ChatThreadCreateRequest,
    auth: AuthContext = Depends(require_chat_scope),
    service: ChatService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

233
234@router.post("/chat/threads")
235async def create_chat_thread(
236 payload: ChatThreadCreateRequest,
237 auth: AuthContext = Depends(require_chat_scope),
238 service: ChatService = Depends(get_service),
239):
240 return await _run(
241 lambda: service.create_thread(auth.username, _model_dict(payload))
242 )
243
244
245@router.get("/chat/threads/{thread_id}")

Callers

nothing calls this directly

Calls 3

_runFunction · 0.70
_model_dictFunction · 0.70
create_threadMethod · 0.45

Tested by

no test coverage detected