Problem in AI Agents course - Smolagents

When I am trying to duplicate and build the Let’s Create Our First Agent Using smolagents’ template, I get this error:
runtime error
Exit code: 1. Reason:

tool.py: 0%| | 0.00/635 [00:00<?, ?B/s]e[A
tool.py: 100%|██████████| 635/635 [00:00<00:00, 3.55MB/s]
Traceback (most recent call last):
File “/home/user/app/app.py”, line 56, in
agent = CodeAgent(
File “/usr/local/lib/python3.10/site-packages/smolagents/agents.py”, line 1204, in init
super().init(
File “/usr/local/lib/python3.10/site-packages/smolagents/agents.py”, line 207, in init
assert not missing_keys, (
AssertionError: Some prompt templates are missing from your custom prompt_templates: {‘final_answer’}

1 Like

The new version of smolagents seems to have a bug. Change it like this and it should work.

requirements.txt

markdownify
smolagents==1.13.0
requests
duckduckgo_search
pandas
2 Likes

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.