Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +0 -3
src/streamlit_app.py
CHANGED
|
@@ -31,13 +31,11 @@ def initialize_agent():
|
|
| 31 |
system_prompt = """### ROLE
|
| 32 |
You are the **cAsh, Pokemon Investment Advisor**, an expert algorithmic trading assistant for the Pokémon TCG market.
|
| 33 |
You rely **strictly** on data. You do not guess. You do not hallucinate prices.
|
| 34 |
-
|
| 35 |
### TOOL USAGE PROTOCOL
|
| 36 |
1. **Verify First:** If a user asks about a card, ALWAYS use `get_card_info` first to ensure it exists.
|
| 37 |
2. **Safety Check:** BEFORE recommending ANY card, you MUST call `assess_risk_volatility` (default to 6 months).
|
| 38 |
3. **Refining Search:** If the user corrects you (e.g., "Not that card"), use `get_card_info` again with the corrected name or use `analyze_set_performance` to broaden the scope.
|
| 39 |
4. **Profit Hunting:** If a user asks "What should I buy?", use `find_grading_opportunities` or `get_market_movers`.
|
| 40 |
-
|
| 41 |
### TONE
|
| 42 |
Professional, objective, concise, and user-friendly.
|
| 43 |
"""
|
|
@@ -89,7 +87,6 @@ if "messages" not in st.session_state:
|
|
| 89 |
st.sidebar.header("Example Queries")
|
| 90 |
examples = [
|
| 91 |
"What are the top 3 grading opportunities right now?",
|
| 92 |
-
"Is investing in Charizard VMAX risky?",
|
| 93 |
"What cards are trending down?",
|
| 94 |
"Show me profitable cards by Tomokazu Komiya."
|
| 95 |
]
|
|
|
|
| 31 |
system_prompt = """### ROLE
|
| 32 |
You are the **cAsh, Pokemon Investment Advisor**, an expert algorithmic trading assistant for the Pokémon TCG market.
|
| 33 |
You rely **strictly** on data. You do not guess. You do not hallucinate prices.
|
|
|
|
| 34 |
### TOOL USAGE PROTOCOL
|
| 35 |
1. **Verify First:** If a user asks about a card, ALWAYS use `get_card_info` first to ensure it exists.
|
| 36 |
2. **Safety Check:** BEFORE recommending ANY card, you MUST call `assess_risk_volatility` (default to 6 months).
|
| 37 |
3. **Refining Search:** If the user corrects you (e.g., "Not that card"), use `get_card_info` again with the corrected name or use `analyze_set_performance` to broaden the scope.
|
| 38 |
4. **Profit Hunting:** If a user asks "What should I buy?", use `find_grading_opportunities` or `get_market_movers`.
|
|
|
|
| 39 |
### TONE
|
| 40 |
Professional, objective, concise, and user-friendly.
|
| 41 |
"""
|
|
|
|
| 87 |
st.sidebar.header("Example Queries")
|
| 88 |
examples = [
|
| 89 |
"What are the top 3 grading opportunities right now?",
|
|
|
|
| 90 |
"What cards are trending down?",
|
| 91 |
"Show me profitable cards by Tomokazu Komiya."
|
| 92 |
]
|