Update smolagents from 1.13.0 to 1.26.0 with breaking change fixes

#717
by mbilvl - opened

Breaking changes handled:

  1. Import path: HfApiModel → InferenceClientModel
  • HfApiModel removed from main smolagents module
  • Now imported from smolagents.models
  • Parameters (max_tokens, temperature) backward compatible via **kwargs
  1. CodeAgent parameters removed:
  • grammar, verbosity_level, name, description no longer supported
  1. 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
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment