Commit bb9b4995 authored by Kostas Chartsias's avatar Kostas Chartsias
Browse files

minor refactoring for list_qod_sessions tool

parent 8756ba41
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -41,7 +41,8 @@ MCP_module/
| --------------------- | --------------------------- |------------------------------------------|
| `create_qod_session`  | `tools/qod.py`              | Creates a CAMARA QoD session             |
| `get_qod_session`     | `tools/qod.py`              | Retrieves QoD session details            |
| `delete_qod_session`  | `tools/qod.py`              | Deletes an existing QoD session          |
| `delete_qod_session`  | `tools/qod.py`              | Deletes an existing QoD session     
| `list_qod_sessions`   | `tools/qod.py`              | Get QoS session information for a device 
| `get_app_definitions` | `tools/edge_application.py` | Retrieves available edge app information |

---
+1 −5
Original line number Diff line number Diff line
@@ -5,8 +5,8 @@ from pathlib import Path
from MCP_module.models.qod_models import *
import os
from dotenv import load_dotenv
from typing import List, Dict

##
# Configure logging
logging.basicConfig(level=logging.DEBUG, format="%(asctime)s [%(levelname)s] %(message)s")
logger = logging.getLogger("MCP server")
@@ -121,10 +121,6 @@ async def delete_qod_session(inp: GetQoDSessionInput) -> str:
        logger.error("Failed to delete session %s: %s", inp.sessionId, e)


import json
import requests
from typing import List, Dict

async def list_qod_sessions(inp: DeviceInput) -> List[Dict]:
    """
    Retrieves all QoS session details based on user device input such as phone number