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

Function get_chat_thread

astrbot/dashboard/api/chat.py:246–251  ·  view source on GitHub ↗
(
    thread_id: str,
    auth: AuthContext = Depends(require_chat_scope),
    service: ChatService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

244
245@router.get("/chat/threads/{thread_id}")
246async def get_chat_thread(
247 thread_id: str,
248 auth: AuthContext = Depends(require_chat_scope),
249 service: ChatService = Depends(get_service),
250):
251 return await _run(lambda: service.get_thread(auth.username, thread_id))
252
253
254@router.delete("/chat/threads/{thread_id}")

Callers

nothing calls this directly

Calls 2

get_threadMethod · 0.80
_runFunction · 0.70

Tested by

no test coverage detected