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

Function stop_chat_session

astrbot/dashboard/api/chat.py:173–178  ·  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

171
172@router.post("/chat/sessions/{session_id}/stop")
173async def stop_chat_session(
174 session_id: str,
175 auth: AuthContext = Depends(require_chat_scope),
176 service: ChatService = Depends(get_service),
177):
178 return await _run(lambda: service.stop_session(auth.username, session_id))
179
180
181@router.patch("/chat/sessions/{session_id}/messages/{message_id}")

Callers

nothing calls this directly

Calls 2

stop_sessionMethod · 0.80
_runFunction · 0.70

Tested by

no test coverage detected