Skip to content

100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.

final inclusions

Madhu979d99ef4369
diff --git a/ai_agent_tutorials/ai_mental_health_crisis_agent/README.md b/ai_agent_tutorials/ai_mental_health_crisis_agent/README.md
index e69de29b..755f2997 100644
--- a/ai_agent_tutorials/ai_mental_health_crisis_agent/README.md
+++ b/ai_agent_tutorials/ai_mental_health_crisis_agent/README.md
@@ -0,0 +1,73 @@
+# AI Mental Health Crisis Navigator 🧠
+
+The AI Mental Health Crisis Navigator is a supportive mental health assessment and guidance system powered by [AG2](https://github.com/ag2ai/ag2?tab=readme-ov-file)(formerly AutoGen)'s AI Agent framework. This app provides personalized mental health support through the coordination of specialized AI agents, each focusing on different aspects of mental health care based on user inputs such as emotional state, stress levels, sleep patterns, and current symptoms. This is built on AG2's new swarm feature run through initiate_swarm_chat() method.
+
+## Features
+
+- **Specialized Mental Health Support Team**
+ - 🧠 **Assessment Agent**: Analyzes emotional state and psychological needs with clinical precision and empathy
+ - 🎯 **Action Agent**: Creates immediate action plans and connects users with appropriate resources
+ - 🔄 **Follow-up Agent**: Designs long-term support strategies and prevention plans
+
+- **Comprehensive Mental Health Support**:
+ - Detailed psychological assessment
+ - Immediate coping strategies
+ - Resource recommendations
+ - Long-term support planning
+ - Crisis prevention strategies
+ - Progress monitoring systems
+
+- **Customizable Input Parameters**:
+ - Current emotional state
+ - Sleep patterns
+ - Stress levels
+ - Support system information
+ - Recent life changes
+ - Current symptoms
+
+- **Interactive Results**:
+ - Real-time assessment summaries
+ - Detailed recommendations in expandable sections
+ - Clear action steps and resources
+ - Long-term support strategies
+
+## How to Run
+
+Follow these steps to set up and run the application:
+
+1. **Clone the Repository**:
+ ```bash
+ git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git
+ cd ai_agent_tutorials/ai_mental_health_crisis_agent
+ ```
+
+2. **Install Dependencies**:
+ ```bash
+ pip install -r requirements.txt
+ ```
+
+3. **Create Environment File**:
+ Create a `.env` file in the project directory:
+ ```bash
+ echo "AUTOGEN_USE_DOCKER=0" > .env
+ ```
+ This disables Docker requirement for code execution in AutoGen.
+
+4. **Set Up OpenAI API Key**:
+ - Obtain an OpenAI API key from [OpenAI's platform](https://platform.openai.com)
+ - You'll input this key in the app's sidebar when running
+
+5. **Run the Streamlit App**:
+ ```bash
+ streamlit run ai_mental_health_crisis_agent.py
+ ```
+
+
+## ⚠️ Important Notice
+
+This application is a supportive tool and does not replace professional mental health care. If you're experiencing thoughts of self-harm or severe crisis:
+
+- Call National Crisis Hotline: 988
+- Call Emergency Services: 911
+- Seek immediate professional help
+
diff --git a/ai_agent_tutorials/ai_mental_health_crisis_agent/ai_mental_health_crisis_agent.py b/ai_agent_tutorials/ai_mental_health_crisis_agent/ai_mental_health_crisis_agent.py
index 5ce13d06..d5867226 100644
--- a/ai_agent_tutorials/ai_mental_health_crisis_agent/ai_mental_health_crisis_agent.py
+++ b/ai_agent_tutorials/ai_mental_health_crisis_agent/ai_mental_health_crisis_agent.py
@@ -25,6 +25,17 @@ if 'output' not in st.session_state:
st.sidebar.title("OpenAI API Key")
api_key = st.sidebar.text_input("Enter your OpenAI API Key", type="password")
+# Add privacy notice in sidebar
+st.sidebar.warning("""
+## ⚠️ Important Notice
+
+This application is a supportive tool and does not replace professional mental health care. If you're experiencing thoughts of self-harm or severe crisis:
+
+- Call National Crisis Hotline: 988
+- Call Emergency Services: 911
+- Seek immediate professional help
+""")
+
# Main app UI
st.title("🧠 Mental Health Crisis Navigator")
@@ -70,13 +81,6 @@ current_symptoms = st.multiselect(
"Mood Swings", "Physical Discomfort"]
)
-# Emergency notice
-st.warning("""
-⚠️ **Important**: If you're having thoughts of self-harm or experiencing a severe crisis,
-please immediately contact emergency services or crisis hotlines:
-- National Crisis Hotline: 988
-- Emergency: 911
-""")
# Button to start the agent collaboration
if st.button("Get Support Plan"):
diff --git a/ai_agent_tutorials/ai_mental_health_crisis_agent/requirements.txt b/ai_agent_tutorials/ai_mental_health_crisis_agent/requirements.txt
index 451a3681..da4c21a3 100644
--- a/ai_agent_tutorials/ai_mental_health_crisis_agent/requirements.txt
+++ b/ai_agent_tutorials/ai_mental_health_crisis_agent/requirements.txt
@@ -1,8 +1,4 @@
autogen-agentchat
autogen-ext
-playwright install --with-deps chromium
-
pyautogen
-agentops
-
-streamlit
+streamlit
\ No newline at end of file