Error AssertionError: Some prompt templates are missing from your custom `prompt_templates`: {'final_answer'}
I simply duplicated the space and get this error during runtime:
Exit code: 1. Reason:
tool.py: 0%| | 0.00/635 [00:00<?, ?B/s][A
tool.py: 100%|██████████| 635/635 [00:00<00:00, 2.80MB/s]
Traceback (most recent call last):
File "/home/user/app/app.py", line 79, 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'}
Looks like something broke with the latest version of smolagents.
It works on 1.9.2
Hi, I am sorry for the silly question. How did you downgrade the version or work with another version? I am getting the same problem in my first agent, and I don't have a clue how to solve it
same question, Claude told me to add final ans into prompt_templates, but didn't work
Edit requirements.txt and set it to 1.9.2:
smolagents==1.9.2