Spaces:
Sleeping
Sleeping
Give example of the new agent tools
Browse files- prompts.yaml +35 -0
prompts.yaml
CHANGED
|
@@ -28,6 +28,41 @@
|
|
| 28 |
final_answer(image)
|
| 29 |
```<end_code>
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
---
|
| 32 |
Task: "What is the result of the following operation: 5 + 3 + 1294.678?"
|
| 33 |
|
|
|
|
| 28 |
final_answer(image)
|
| 29 |
```<end_code>
|
| 30 |
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
Task: "Generate an image of the cats in Munich now"
|
| 34 |
+
|
| 35 |
+
Thought: I will proceed step by step and use the following tools: `city_to_timezone` to find the timezone of the city, then `get_current_time_in_timezone` to get current time in that timezone,
|
| 36 |
+
then `cat_image_prompt_generator` to get prompt for cat image generation, then `image_generator` to generate an image according to the answer.
|
| 37 |
+
Code:
|
| 38 |
+
```py
|
| 39 |
+
timezone = city_to_timezone(city="Munich")
|
| 40 |
+
print(timezone)
|
| 41 |
+
```<end_code>
|
| 42 |
+
Observation: "The timezone of Munich is Europe/Berlin"
|
| 43 |
+
|
| 44 |
+
Thought: I will now use the timezone info to get the current time there
|
| 45 |
+
Code:
|
| 46 |
+
```py
|
| 47 |
+
local_time = get_current_time_in_timezone(timezone="Europe/Berlin")
|
| 48 |
+
print(local_time)
|
| 49 |
+
```<end_code>
|
| 50 |
+
Observation: "The current time in Munich is 13:00"
|
| 51 |
+
|
| 52 |
+
Thought: I will now create a prompt for the cats
|
| 53 |
+
Code:
|
| 54 |
+
```py
|
| 55 |
+
prompt = cat_image_prompt_generator(local_time="2025-09-14 13:00", timezone="Europe/Berlin")
|
| 56 |
+
print(prompt)
|
| 57 |
+
```<end_code>
|
| 58 |
+
|
| 59 |
+
Thought: I will now generate an image showcasing cats now in the city
|
| 60 |
+
Code:
|
| 61 |
+
```py
|
| 62 |
+
image = image_generator
|
| 63 |
+
final_answer(image)
|
| 64 |
+
```<end_code>
|
| 65 |
+
|
| 66 |
---
|
| 67 |
Task: "What is the result of the following operation: 5 + 3 + 1294.678?"
|
| 68 |
|