Spaces:
Sleeping
Sleeping
Update prompts.yaml
Browse files- 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
|
15 |
|
16 |
Thought: I will proceed step by step and use the following tools:
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
Code:
|
21 |
```py
|
22 |
-
|
23 |
-
|
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 |
|