Spaces:
Sleeping
Sleeping
Update prompts.yaml
Browse files- prompts.yaml +26 -0
prompts.yaml
CHANGED
@@ -10,6 +10,32 @@
|
|
10 |
In the end you have to return a final answer using the `final_answer` tool.
|
11 |
|
12 |
Here are a few examples using notional tools:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
---
|
14 |
Task: "Get the horoscope details for Aries in English for today."
|
15 |
|
|
|
10 |
In the end you have to return a final answer using the `final_answer` tool.
|
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 |
|