Update smolagents from 1.13.0 to 1.26.0 with breaking change fixes
#717
by mbilvl - opened
Breaking changes handled:
- Import path: HfApiModel → InferenceClientModel
- HfApiModel removed from main smolagents module
- Now imported from smolagents.models
- Parameters (max_tokens, temperature) backward compatible via **kwargs
- CodeAgent parameters removed:
- grammar, verbosity_level, name, description no longer supported
- New requirement: prompt_templates must include 'final_answer'
- Added empty final_answer template to prompts.yaml
Verification:
✓ All imports working (9 distinct import groups tested)
✓ Model creation successful
✓ Tool imports working (FinalAnswerTool, DuckDuckGoSearchTool)
✓ Agent creation and configuration successful
✓ GradioUI and stream_to_gradio functional
✓ All tests pass with no runtime errors
mbilvl changed pull request status to open