Tourist Activity Suggestion Agent using SmolAgents.

#1
by vid1203 - opened
Owner

πŸ˜ƒ: What should I do now in Berlin?
πŸ€–: Step 1
πŸ€–: Thought: To determine what to do in Berlin, I need to find out the current local time in Berlin. Once I have the local time, I can use the suggest_tourist_activity tool to recommend an appropriate activity.

Code:

berlin_time = get_current_time_in_timezone(timezone="Europe/Berlin")
print("Current time in Berlin:", berlin_time)

πŸ€–: ```python
berlin_time = get_current_time_in_timezone(timezone="Europe/Berlin")
print("Current time in Berlin:", berlin_time)

πŸ€–: <span style="color: #bbbbc2; font-size: 12px;">Step 1 | Input-tokens:2,185 | Output-tokens:84 | Duration: 9.55</span> 
πŸ€–: -----
πŸ€–: **Step 2**
πŸ€–: Thought: Now that I have the current local time in Berlin (2026-01-19 21:47:41), I can use the `suggest_tourist_activity` tool to recommend an appropriate activity based on this time.

Code:
```py
activity_suggestion = suggest_tourist_activity(local_time="2026-01-19 21:47:41", timezone="Europe/Berlin")
final_answer(activity_suggestion)

πŸ€–: ```python
activity_suggestion = suggest_tourist_activity(local_time="2026-01-19 21:47:41", timezone="Europe/Berlin")
final_answer(activity_suggestion)

πŸ€–: <span style="color: #bbbbc2; font-size: 12px;">Step 2 | Input-tokens:2,400 | Output-tokens:110 | Duration: 5.33</span> 
πŸ€–: -----
πŸ€–: **Final answer:** FinalAnswerStep(final_answer="It's 2026-01-19 21:47:41 in Europe/Berlin. Enjoy dinner and take a scenic city walk.")

Sign up or log in to comment