(
app_name: str, user_id: str, session_id: str
)
| 1089 | response_model_exclude_none=True, |
| 1090 | ) |
| 1091 | async def get_session( |
| 1092 | app_name: str, user_id: str, session_id: str |
| 1093 | ) -> Session: |
| 1094 | session = await self.session_service.get_session( |
| 1095 | app_name=app_name, user_id=user_id, session_id=session_id |
| 1096 | ) |
| 1097 | if not session: |
| 1098 | raise HTTPException(status_code=404, detail="Session not found") |
| 1099 | self.current_app_name_ref.value = app_name |
| 1100 | return session |
| 1101 | |
| 1102 | @app.get( |
| 1103 | "/apps/{app_name}/users/{user_id}/sessions", |
no outgoing calls