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

Function get_chat_session

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

Source from the content-addressed store, hash-verified

137
138@router.get("/chat/sessions/{session_id}")
139async def get_chat_session(
140 session_id: str,
141 auth: AuthContext = Depends(require_chat_scope),
142 service: ChatService = Depends(get_service),
143):
144 return await _run(lambda: service.get_session(auth.username, session_id))
145
146
147@router.patch("/chat/sessions/{session_id}")

Callers

nothing calls this directly

Calls 2

_runFunction · 0.70
get_sessionMethod · 0.45

Tested by

no test coverage detected