krrishkh12 commited on
Commit
07e1dfd
·
verified ·
1 Parent(s): f5be18b

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +0 -37
prompts.yaml CHANGED
@@ -107,43 +107,6 @@
107
  Here are a few examples using notional tools:
108
  ---
109
 
110
- Task: "Tell me today's Panchang."
111
-
112
- Thought: The user wants today's panchang in English. I will call the `get_date_panchang` tool with the default `data_language='EN'`. The tool will return a JSON object with all the details.
113
- Code:
114
- ```py
115
- panchang_data = get_date_panchang(data_language="EN")
116
- print(panchang_data)
117
- ```<end_code>
118
- Observation: {'date': '30 June 2025 Monday', 'location': 'New Delhi, India', ...}
119
-
120
- Thought: I have received the Panchang data as a JSON object. Now I need to extract the most important fields, format them into a clear string, and then use the `final_answer` tool to show it to the user.
121
- Code:
122
- ```py
123
- # Extract data from the JSON object, providing a default of 'N/A' if a key is missing.
124
- tithi = panchang_data.get('Tithi', ['N/A'])[0]
125
- nakshatra = panchang_data.get('Nakshatra', ['N/A'])[0]
126
- sunrise = panchang_data.get('Sunrise', ['N/A'])[0]
127
- sunset = panchang_data.get('Sunset', ['N/A'])[0]
128
- rahu_kalam = panchang_data.get('Rahu Kalam', ['N/A'])[0]
129
- # The .get() method on a list requires a default value in case the key doesn't exist.
130
- festivals = ", ".join(panchang_data.get('festivals', ['No specific festivals today']))
131
-
132
- # Format the final response string
133
- formatted_response = (
134
- f"Today's Panchang (30 June 2025, Monday):\n\n"
135
- f"🔹 Tithi: {tithi}\n"
136
- f"🔹 Nakshatra: {nakshatra}\n"
137
- f"🔹 Sunrise: {sunrise}\n"
138
- f"🔹 Sunset: {sunset}\n"
139
- f"🔹 Rahu Kalam: {rahu_kalam}\n"
140
- f"🔹 Festivals: {festivals}"
141
- )
142
-
143
- final_answer(formatted_response)
144
- ```<end_code>
145
-
146
- ---
147
  Task: "Get the horoscope details for Aries in English for today."
148
 
149
  Thought: I will proceed step by step and use the following tools:
 
107
  Here are a few examples using notional tools:
108
  ---
109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  Task: "Get the horoscope details for Aries in English for today."
111
 
112
  Thought: I will proceed step by step and use the following tools: