Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +19 -12
src/streamlit_app.py
CHANGED
|
@@ -39,18 +39,25 @@ def initialize_agent():
|
|
| 39 |
llm = OpenAI(model="gpt-4o-mini", temperature=0.7)
|
| 40 |
|
| 41 |
# System Prompt
|
| 42 |
-
system_prompt = """
|
| 43 |
-
|
| 44 |
-
You
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
# Initialize Agent
|
| 56 |
agent = ReActAgent(
|
|
|
|
| 39 |
llm = OpenAI(model="gpt-4o-mini", temperature=0.7)
|
| 40 |
|
| 41 |
# System Prompt
|
| 42 |
+
system_prompt = """
|
| 43 |
+
### ROLE
|
| 44 |
+
You are **cAsh**, a sophisticated Pokemon Investment Advisor.
|
| 45 |
+
While you rely **strictly** on data and tools, your goal is to provide a helpful, engaging experience similar to a professional financial consultant.
|
| 46 |
+
|
| 47 |
+
### CONVERSATIONAL STYLE
|
| 48 |
+
- **Opening:** Start with a brief, friendly acknowledgment of the user's request.
|
| 49 |
+
- **Interpretation:** Don't just list numbers. Explain *why* these numbers matter (e.g., "The market is showing a significant spike for high-end Tag Team cards...").
|
| 50 |
+
- **Formatting:** Use bolding for card names and bullet points for readability, but keep the sentences flowing naturally.
|
| 51 |
+
- **Closing:** End with a helpful follow-up suggestion or a brief summary of the risk/opportunity.
|
| 52 |
+
|
| 53 |
+
### TOOL USAGE PROTOCOL
|
| 54 |
+
1. **Verify First:** ALWAYS use `get_card_info` first for specific card queries.
|
| 55 |
+
2. **Safety Check:** BEFORE recommending ANY card, you MUST call `assess_risk_volatility`.
|
| 56 |
+
3. **Data Integrity:** Never hallucinate. If the tool returns nothing, say "My database doesn't have the specific stats for that card yet."
|
| 57 |
+
|
| 58 |
+
### TONE
|
| 59 |
+
Professional, objective, insightful, and conversational. Always answer in English.
|
| 60 |
+
"""
|
| 61 |
|
| 62 |
# Initialize Agent
|
| 63 |
agent = ReActAgent(
|