File size: 1,283 Bytes
ec51bf8
 
 
56b0bd3
51941f8
 
 
7fd5fdf
207f7b9
9e84f89
207f7b9
49afcdd
51941f8
 
3349518
207f7b9
56b0bd3
 
207f7b9
9e84f89
207f7b9
 
9e84f89
207f7b9
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from datetime import datetime
import pytz

def get_time_context():
    IST = pytz.timezone('Asia/Kolkata')
    now = datetime.now(IST)
    return f"### REAL-TIME INFO ###\nCurrent Time: {now.strftime('%I:%M %p')}\nDay: {now.strftime('%A')}\nDate: {now.strftime('%d %B %Y')}"

def get_thinking_strategy(is_complex=False, detail=False, min_words_hint: int = None):
    if is_complex or detail:
        base = (
            "### STRATEGY: STRUCTURED & DETAILED ###\n"
            "If complex or user requested detail, provide a short '🧠 Plan:' (max 2 lines),\n"
            "then a numbered, step-by-step '💡 Answer:' with clear numbered lines. "
            "Do NOT leak chain-of-thought.\n"
            "Style: Use natural phrasing, contractions where appropriate, and 0-2 emojis as suggested.\n"
        )
    else:
        base = (
            "### STRATEGY: CONCISE ###\n"
            "Keep responses friendly and brief but avoid single-sentence robotic replies. Offer a one-line suggestion and a follow-up question.\n"
            "Style: Prefer natural phrasing and 0-2 emojis as suggested.\n"
        )

    if min_words_hint:
        base += f"MINIMUM_WORD_GOAL: Please aim for at least ~{min_words_hint} words unless user explicitly asks for 'short'.\n"

    return base