git clone <your-repo-url>
cd acm2k26backendpython -m venv .venvWindows:
.venv\Scripts\activateLinux / Mac:
source .venv/bin/activatepip install -r requirements.txtCreate a .env file in the project root if your LLM provider or agent requires API keys or configuration.
Example:
API_KEY=your_api_key_hereFrom the project root directory:
uvicorn main:app --reload --host 0.0.0.0 --port 8000The server will start at:
http://127.0.0.1:8000
GET /
Returns basic status of the service.
POST /api/v1/recommend-resources
This endpoint accepts user responses and a list of available resources, then returns the most relevant recommended resources.
{
"responses": [
{
"question": "How often do you feel anxious?",
"answer": "Daily, especially at work."
},
{
"question": "Do you have trouble sleeping?",
"answer": "Sometimes I wake up and can't fall back asleep."
}
],
"resources": [
{
"title": "Breathing Exercise",
"type": "exercise",
"description": "Short guided breathing practice for acute anxiety.",
"tags": ["anxiety", "stress"]
},
{
"title": "Sleep Hygiene Guide",
"type": "guide",
"description": "Practical tips to improve sleep habits.",
"tags": ["sleep"]
}
]
}{
"success": true,
"total_responses": 2,
"total_available_resources": 2,
"recommended_resources": []
}