First agent template error in running and duplicating

#320
by lariskelmer - opened

Hi!
I'm trying to complete the agent course, but I can't duplicate the notebook or interact with the notebook chat. The notebook error that appears is the following:
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'}

Has anyone experienced this? I would be very grateful for any help.
Captura de tela 2025-04-26 011254.png

Same error here!
Following to see if there’s any solution.

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment