Setting up the yaml file is producing bugs

#1
by mugwaneza - opened

I have made many iterations to fix runtime error cuased by prompts.yaml file but is like am in cycle of errors, here is my hash: 5d6ddd71d8bfa875d590e7be866a4c562c24fc58 and my repo: mugwaneza/First_agent_template.
The last viewd error:
===== Application Startup at 2025-11-01 12:07:31 =====

tool.py: 0%| | 0.00/635 [00:00<?, ?B/s]
tool.py: 100%|██████████| 635/635 [00:00<00:00, 1.66MB/s]
Traceback (most recent call last):
File "/home/user/app/app.py", line 76, in
agent = CodeAgent(
File "/usr/local/lib/python3.10/site-packages/smolagents/agents.py", line 1542, in init
super().init(
File "/usr/local/lib/python3.10/site-packages/smolagents/agents.py", line 316, in init
assert not missing_keys, (
AssertionError: Some prompt templates are missing from your custom prompt_templates: {'system_prompt', 'planning', 'managed_agent', 'final_answer'}

tool.py: 0%| | 0.00/635 [00:00<?, ?B/s]
tool.py: 100%|██████████| 635/635 [00:00<00:00, 1.90MB/s]
Traceback (most recent call last):
File "/home/user/app/app.py", line 76, in
agent = CodeAgent(
File "/usr/local/lib/python3.10/site-packages/smolagents/agents.py", line 1542, in init
super().init(
File "/usr/local/lib/python3.10/site-packages/smolagents/agents.py", line 316, in init
assert not missing_keys, (
AssertionError: Some prompt templates are missing from your custom prompt_templates: {'final_answer', 'system_prompt', 'planning', 'managed_agent'}

Sign up or log in to comment