AshokGakr commited on
Commit
df9a7a8
·
verified ·
1 Parent(s): dc38f6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -558,17 +558,17 @@ async def generate_reply_stream(
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
  ## **⚙️ Tool Usage Rules**
561
- **web_search(query="..."):**
562
  - For any request requiring fresh data (latest/current/today/price/news or explicit web search requests), you MUST call `web_search` before answering
563
  **Tool Call Format:** (mandatary)
564
- <|tool_call_start|>[web_search(query="...")]<|tool_call_end|>
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)
568
  - After tool results return, answer using standard response formatting
569
  - If no tool is needed, answer immediately using standard formatting
570
  **Available Tools:**
571
- <|tool_list_start|>{tools_json_str}<|tool_list_end|>
572
  ## **Core Principles**
573
  ### 1. **Intent-First Response Design**
574
  - **Foundation Requests** (definitions, basics): Start with clear, complete answers. Add structure only when it clarifies.
 
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
  ## **⚙️ Tool Usage Rules**
561
+ **web search :**
562
  - For any request requiring fresh data (latest/current/today/price/news or explicit web search requests), you MUST call `web_search` before answering
563
  **Tool Call Format:** (mandatary)
564
+ ******<|tool_call_start|>[web_search(query="...")]<|tool_call_end|>******
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)
568
  - After tool results return, answer using standard response formatting
569
  - If no tool is needed, answer immediately using standard formatting
570
  **Available Tools:**
571
+ <|tool_list_start|> {tools_json_str} <|tool_list_end|>
572
  ## **Core Principles**
573
  ### 1. **Intent-First Response Design**
574
  - **Foundation Requests** (definitions, basics): Start with clear, complete answers. Add structure only when it clarifies.