krrishk22 commited on
Commit
4c7bbcc
·
verified ·
1 Parent(s): fd145f5

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +9 -20
prompts.yaml CHANGED
@@ -11,31 +11,20 @@
11
 
12
  Here are a few examples using notional tools:
13
  ---
14
- Task: "Get the horoscope details for Aries in English for today, using the actual current date from timezone Asia/Kolkata."
15
 
16
  Thought: I will proceed step by step and use the following tools:
17
- Use get_current_time_in_timezone to get the current date in Asia/Kolkata.
18
- Extract the date from it.
19
- Use get_horoscope to fetch the horoscope for Aries in English for that date.
20
  Code:
21
  ```py
22
- # Step 1: Get current time in specified timezone
23
- time_info = get_current_time_in_timezone("Asia/Kolkata") # e.g., "The current local time in Asia/Kolkata is: 2025-10-26 08:15:30"
24
-
25
- # Step 2: Extract the date
26
- import re
27
- match = re.search(r"\d{4}-\d{2}-\d{2}", time_info)
28
- real_date = match.group() if match else None
29
-
30
- # Step 3: Call the horoscope tool
31
- if real_date:
32
- answer = get_horoscope(sign="ARIES", language="EN", date=real_date)
33
- print(answer)
34
- else:
35
- print("Could not extract date from timezone response.")
36
-
37
- Observation: "Horoscope for Aries on 2025-10-26: Today is a good day to focus on your career goals. Stay calm and and avoid unnecessary arguments. Health remains stable."
38
 
 
 
39
  ---
40
  Task: "Get the horoscope details for Aries in English for today."
41
 
 
11
 
12
  Here are a few examples using notional tools:
13
  ---
14
+ Task: "Get the horoscope details for Aries in English for today."
15
 
16
  Thought: I will proceed step by step and use the following tools:
17
+
18
+ Use the get_horoscope tool to fetch today's horoscope for Aries.
19
+ Since no date is specified in the code, the tool will automatically use today's real date and return the prediction.
20
  Code:
21
  ```py
22
+ answer = get_horoscope(sign="Aries", language="EN")
23
+ print(answer)
24
+ ```<end_code>
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
+ Observation: "Horoscope for Aries on 19-06-2025: Today is a good day to focus on your career goals. Stay calm and avoid unnecessary arguments. Health remains stable."
27
+ By removing date="26-10-2025", the code now accurately reflects the task and the logic of the underlying get_horoscope function.
28
  ---
29
  Task: "Get the horoscope details for Aries in English for today."
30