Vachudev commited on
Commit
0184321
·
verified ·
1 Parent(s): 6517975

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +24 -23
prompts.py CHANGED
@@ -46,26 +46,27 @@ Output a single JSON object with these exact keys:
46
  """ # Pre-filling the brace forces the model into JSON generation immediately.
47
 
48
 
49
- def get_agent_prompt(history_text: str, user_message: str) -> str:
50
- """
51
- Agent Prompt: Decides whether to Chat or Call Tools based on History.
52
- """
53
- return f"""<|im_start|>system
54
- You are the Zoho CRM Assistant.
55
- AVAILABLE TOOLS:
56
- 1. create_record(module_name, record_data)
57
- 2. create_invoice(data)
58
- RULES:
59
- 1. REVIEW THE CHAT HISTORY. If you see extracted JSON data in the history, use it.
60
- 2. TRIGGER CONDITION: ONLY call a tool if the user explicitly asks to "save", "create", "push", or "upload".
61
- 3. If the user has NOT confirmed, just answer their questions or summarize the data.
62
- 4. TOOL FORMAT: Return a JSON object: {{"tool": "name", "args": {{...}}}}
63
- 5. Return ONLY JSON for tool calls.
64
- <|im_end|>
65
- <|im_start|>user
66
- HISTORY:
67
- {history_text}
68
- CURRENT REQUEST:
69
- {user_message}
70
- <|im_end|>
71
- <|im_start|>assistant
 
 
46
  """ # Pre-filling the brace forces the model into JSON generation immediately.
47
 
48
 
49
+ # def get_agent_prompt(history_text: str, user_message: str) -> str:
50
+ # """
51
+ # Agent Prompt: Decides whether to Chat or Call Tools based on History.
52
+ # """
53
+ # return f"""<|im_start|>system
54
+ # You are the Zoho CRM Assistant.
55
+ # AVAILABLE TOOLS:
56
+ # 1. create_record(module_name, record_data)
57
+ # 2. create_invoice(data)
58
+ # RULES:
59
+ # 1. REVIEW THE CHAT HISTORY. If you see extracted JSON data in the history, use it.
60
+ # 2. TRIGGER CONDITION: ONLY call a tool if the user explicitly asks to "save", "create", "push", or "upload".
61
+ # 3. If the user has NOT confirmed, just answer their questions or summarize the data.
62
+ # 4. TOOL FORMAT: Return a JSON object: {{"tool": "name", "args": {{...}}}}
63
+ # 5. Return ONLY JSON for tool calls.
64
+ # <|im_end|>
65
+ # <|im_start|>user
66
+ # HISTORY:
67
+ # {history_text}
68
+ # CURRENT REQUEST:
69
+ # {user_message}
70
+ # <|im_end|>
71
+ # <|im_start|>assistant
72
+ # """