Spaces:
Sleeping
Sleeping
Update prompts.yaml
Browse filesMy updated prompts.yaml file. /Michael Cid
- prompts.yaml +70 -4
prompts.yaml
CHANGED
@@ -141,7 +141,73 @@
|
|
141 |
final_answer(pope_current_age)
|
142 |
```<end_code>
|
143 |
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
{%- for tool in tools.values() %}
|
146 |
- {{ tool.name }}: {{ tool.description }}
|
147 |
Takes inputs: {{tool.inputs}}
|
@@ -219,8 +285,8 @@
|
|
219 |
|
220 |
{%- if managed_agents and managed_agents.values() | list %}
|
221 |
You can also give tasks to team members.
|
222 |
-
Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is '
|
223 |
-
Given that this team member is a real human, you should be very verbose in your
|
224 |
Here is a list of the team members that you can call:
|
225 |
{%- for agent in managed_agents.values() %}
|
226 |
- {{ agent.name }}: {{ agent.description }}
|
@@ -318,4 +384,4 @@
|
|
318 |
And even if your task resolution is not successful, please return as much context as possible, so that your manager can act upon this feedback.
|
319 |
"report": |-
|
320 |
Here is the final answer from your managed agent '{{name}}':
|
321 |
-
{{final_answer}}
|
|
|
141 |
final_answer(pope_current_age)
|
142 |
```<end_code>
|
143 |
|
144 |
+
---
|
145 |
+
Task: "Fetch the latest news on artificial intelligence advancements."
|
146 |
+
|
147 |
+
Thought: I will use the `get_latest_tech_news` tool to fetch recent news headlines about artificial intelligence advancements.
|
148 |
+
Code:
|
149 |
+
```py
|
150 |
+
news_headlines = get_latest_tech_news(topic="artificial intelligence advancements", max_results=5)
|
151 |
+
print(news_headlines)
|
152 |
+
final_answer(news_headlines)
|
153 |
+
```<end_code>
|
154 |
+
|
155 |
+
---
|
156 |
+
Task: "What is the weather forecast for Oslo on 2025-12-25?"
|
157 |
+
|
158 |
+
Thought: I will use the `weather_forecaster` tool to get the weather forecast for Oslo on the specified date.
|
159 |
+
Code:
|
160 |
+
```py
|
161 |
+
forecast = weather_forecaster(location="Oslo", date="2025-12-25")
|
162 |
+
print(forecast)
|
163 |
+
final_answer(forecast)
|
164 |
+
```<end_code>
|
165 |
+
|
166 |
+
---
|
167 |
+
Task: "Translate the text 'Hello, world!' to Spanish."
|
168 |
+
|
169 |
+
Thought: I will use the `language_translator` tool to translate the text to Spanish.
|
170 |
+
Code:
|
171 |
+
```py
|
172 |
+
translation = language_translator(text="Hello, world!", target_language="es")
|
173 |
+
print(translation)
|
174 |
+
final_answer(translation)
|
175 |
+
```<end_code>
|
176 |
+
|
177 |
+
---
|
178 |
+
Task: "What is the current stock price of Apple Inc.?"
|
179 |
+
|
180 |
+
Thought: I will use the `stock_price_checker` tool to get the current stock price of Apple Inc.
|
181 |
+
Code:
|
182 |
+
```py
|
183 |
+
stock_price = stock_price_checker(stock_symbol="AAPL")
|
184 |
+
print(stock_price)
|
185 |
+
final_answer(stock_price)
|
186 |
+
```<end_code>
|
187 |
+
|
188 |
+
---
|
189 |
+
Task: "Find recipes that use potatoes, carrots, and onions."
|
190 |
+
|
191 |
+
Thought: I will use the `recipe_finder` tool to find recipes based on the provided ingredients.
|
192 |
+
Code:
|
193 |
+
```py
|
194 |
+
recipes = recipe_finder(ingredients=["potatoes", "carrots", "onions"])
|
195 |
+
print(recipes)
|
196 |
+
final_answer(recipes)
|
197 |
+
```<end_code>
|
198 |
+
|
199 |
+
---
|
200 |
+
Task: "What is the current local time in Tokyo?"
|
201 |
+
|
202 |
+
Thought: I will use the `get_current_time_in_timezone` tool to get the current local time in Tokyo.
|
203 |
+
Code:
|
204 |
+
```py
|
205 |
+
local_time = get_current_time_in_timezone(timezone="Asia/Tokyo")
|
206 |
+
print(local_time)
|
207 |
+
final_answer(local_time)
|
208 |
+
```<end_code>
|
209 |
+
|
210 |
+
Above examples were using notional tools that might not exist for you. On top of performing computations in the Python code snippets that you create, you only have access to these tools:
|
211 |
{%- for tool in tools.values() %}
|
212 |
- {{ tool.name }}: {{ tool.description }}
|
213 |
Takes inputs: {{tool.inputs}}
|
|
|
285 |
|
286 |
{%- if managed_agents and managed_agents.values() | list %}
|
287 |
You can also give tasks to team members.
|
288 |
+
Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'task', a long string explaining your task.
|
289 |
+
Given that this team member is a real human, you should be very verbose in your task.
|
290 |
Here is a list of the team members that you can call:
|
291 |
{%- for agent in managed_agents.values() %}
|
292 |
- {{ agent.name }}: {{ agent.description }}
|
|
|
384 |
And even if your task resolution is not successful, please return as much context as possible, so that your manager can act upon this feedback.
|
385 |
"report": |-
|
386 |
Here is the final answer from your managed agent '{{name}}':
|
387 |
+
{{final_answer}}
|