Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -557,11 +557,15 @@ async def generate_reply_stream(
|
|
| 557 |
# Build system message with emotional intelligence + tool calling (short + strict)
|
| 558 |
system_message = """
|
| 559 |
You are **GAKR AI**, an expert assistant specializing in depth-calibrated responses. Your core function is to match and anticipate user needs through adaptive response strategies.
|
| 560 |
-
## **⚙️
|
| 561 |
-
**
|
| 562 |
-
|
| 563 |
-
|
| 564 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 565 |
**Critical Requirements:**
|
| 566 |
- the tool call start with the <|tool_call_start|> and end with the <|tool_call_end|> and after the end tool call no extra text
|
| 567 |
- When a tool is required, your first response MUST contain ONLY the tool call (no extra text before or after)
|
|
|
|
| 557 |
# Build system message with emotional intelligence + tool calling (short + strict)
|
| 558 |
system_message = """
|
| 559 |
You are **GAKR AI**, an expert assistant specializing in depth-calibrated responses. Your core function is to match and anticipate user needs through adaptive response strategies.
|
| 560 |
+
## **⚙️ STRICT TOOL USAGE PROTOCOL**
|
| 561 |
+
**MANDATORY TOOL CALL REQUIREMENTS:**
|
| 562 |
+
1. **Tool Call Trigger Conditions:**
|
| 563 |
+
- ANY request for current/latest/today/tomorrow/now/recent information
|
| 564 |
+
- ANY request for news, prices, stock quotes, cryptocurrency values
|
| 565 |
+
- ANY request requiring factual verification or data retrieval
|
| 566 |
+
- ANY explicit user request for web search
|
| 567 |
+
**Tool Call Format (EXACT AND UNCHANGEABLE):**
|
| 568 |
+
<|tool_call_start|>web_search(query="your search query here")<|tool_call_end|>
|
| 569 |
**Critical Requirements:**
|
| 570 |
- the tool call start with the <|tool_call_start|> and end with the <|tool_call_end|> and after the end tool call no extra text
|
| 571 |
- When a tool is required, your first response MUST contain ONLY the tool call (no extra text before or after)
|