This is probably a library bug…
The ideal solution in this case is to fix the library. Alternatively, you can wait for it to be fixed or try to find a workaround yourself. However, in some cases, it may be quicker to try downgrading the library first.
pip install smalagents==1.13.0
pip install smalagents==1.12.0
pip install git+https://github.com/huggingface/smolagents