Spaces:
Sleeping
Sleeping
Update agent.json
Browse filesremoved trailing spaces
- agent.json +24 -66
agent.json
CHANGED
|
@@ -1,66 +1,24 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
tz_info = get_time_difference(origin_city="New York", destination_city="Barcelona")
|
| 26 |
-
|
| 27 |
-
Step 5 - ITINERARY:
|
| 28 |
-
itinerary = build_itinerary(
|
| 29 |
-
destination="Barcelona",
|
| 30 |
-
attractions="Sagrada Familia, Park Guell, Gothic Quarter, La Rambla",
|
| 31 |
-
budget_local=300,
|
| 32 |
-
days=4
|
| 33 |
-
)
|
| 34 |
-
|
| 35 |
-
Step 6 - PACKING:
|
| 36 |
-
packing = generate_packing_list(
|
| 37 |
-
destination="Barcelona",
|
| 38 |
-
weather_summary=weather,
|
| 39 |
-
trip_days=4,
|
| 40 |
-
trip_type="city"
|
| 41 |
-
)
|
| 42 |
-
|
| 43 |
-
Step 7 - IMAGES (MANDATORY - DO NOT SKIP):
|
| 44 |
-
image_urls = generate_travel_images(destination="Barcelona")
|
| 45 |
-
|
| 46 |
-
Step 8 - ASSEMBLE (FINAL STEP):
|
| 47 |
-
catalogue = assemble_catalogue(
|
| 48 |
-
destination="Barcelona",
|
| 49 |
-
origin="New York",
|
| 50 |
-
dates="October 15-19",
|
| 51 |
-
budget_summary=budget_conv,
|
| 52 |
-
weather=weather,
|
| 53 |
-
timezone_info=tz_info,
|
| 54 |
-
itinerary=itinerary,
|
| 55 |
-
packing_list=packing,
|
| 56 |
-
image_urls_json=image_urls
|
| 57 |
-
)
|
| 58 |
-
|
| 59 |
-
CRITICAL RULES:
|
| 60 |
-
✓ ALWAYS output ONLY Python code inside ```python blocks
|
| 61 |
-
✓ NEVER instantiate tools (e.g., NO DuckDuckGoSearchTool())
|
| 62 |
-
✓ ALWAYS use pre-instantiated tool name: web_search("short query")
|
| 63 |
-
✓ Keep web_search queries SHORT (max 4 words) to avoid "No results found"
|
| 64 |
-
✓ If web_search fails once, proceed with reasonable defaults - DO NOT loop
|
| 65 |
-
✓ ALWAYS complete all 8 steps before finishing
|
| 66 |
-
✓ Step 8 (assemble_catalogue) MUST be your final tool call
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tools": [
|
| 3 |
+
"web_search",
|
| 4 |
+
"get_weather_forecast",
|
| 5 |
+
"convert_currency",
|
| 6 |
+
"get_time_difference",
|
| 7 |
+
"generate_packing_list",
|
| 8 |
+
"build_itinerary",
|
| 9 |
+
"generate_travel_images",
|
| 10 |
+
"assemble_catalogue"
|
| 11 |
+
],
|
| 12 |
+
"model": {
|
| 13 |
+
"class": "HfApiModel",
|
| 14 |
+
"data": {
|
| 15 |
+
"max_tokens": 2048,
|
| 16 |
+
"temperature": 0.3,
|
| 17 |
+
"model_id": "Qwen/Qwen2.5-Coder-32B-Instruct"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"max_steps": 15,
|
| 21 |
+
"verbosity_level": 1,
|
| 22 |
+
"name": "TravelCatalogueCreator",
|
| 23 |
+
"description": "Creates comprehensive travel catalogues with weather, itinerary, packing lists and images"
|
| 24 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|