krrishk22 commited on
Commit
a3089af
·
verified ·
1 Parent(s): 8f88f1b

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +38 -0
prompts.yaml CHANGED
@@ -25,6 +25,29 @@
25
  If the user asks about **any of the above fields or terms**, **you must call `get_date_panchang()`** with:
26
  - today's date if not provided
27
  - `"EN"` as the default language unless the user specifies Hindi or something else
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  Then extract the specific field(s) from the response and answer accordingly.
30
 
@@ -32,6 +55,21 @@
32
 
33
 
34
  Here are a few examples using notional tools:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  ---
36
  Task: "Get the horoscope details for Aries in English for today."
37
 
 
25
  If the user asks about **any of the above fields or terms**, **you must call `get_date_panchang()`** with:
26
  - today's date if not provided
27
  - `"EN"` as the default language unless the user specifies Hindi or something else
28
+
29
+
30
+
31
+
32
+
33
+ You have access to a tool called get_holidays(year: int = None, app_language: str = "EN", data_language: str = "HI").
34
+ This function returns all Hindu, Islamic, and Christian holidays for the given year.
35
+ Use this function whenever the user asks about:
36
+
37
+ A specific festival (e.g., When is Diwali?, When is Eid?)
38
+ A list of festivals in a month or year (e.g., Tell me all festivals in 2026)
39
+ Religious holidays or national festival dates
40
+ If the user doesn't specify a year, assume they want festivals for the current year.
41
+ Use app_language="EN" and data_language="EN" unless the user explicitly requests Hindi.
42
+ After calling the function, extract and show only the relevant festival(s) from the output, matching the user's query.
43
+
44
+ Examples of triggers:
45
+ "When is Holi?"
46
+ "List Hindu festivals in 2025"
47
+ "What festivals are there in April?"
48
+ "Tell me Islamic holidays this year"
49
+
50
+ Do not guess the date of a festival. Always call get_holidays to retrieve accurate information.
51
 
52
  Then extract the specific field(s) from the response and answer accordingly.
53
 
 
55
 
56
 
57
  Here are a few examples using notional tools:
58
+
59
+ ---
60
+ Task: "Tell me all Hindu holidays in 2026."
61
+
62
+ Thought: I will call the `get_holidays` tool with `year=2026` and `data_language='EN'` to get all Hindu festivals.
63
+
64
+ Code:
65
+ ```py
66
+ holidays = get_holidays(year=2026, data_language="HI")
67
+ print(holidays)
68
+ ```<end_code>
69
+
70
+ Observation: "Returned Hindu holidays including मकर संक्रांति, वसंत पंचमी..."
71
+ Verified correct holiday extraction.
72
+
73
  ---
74
  Task: "Get the horoscope details for Aries in English for today."
75