Smolagents

持续追踪核心框架、最新模型规格与重要系统接口的更新迭代轨迹。

v1.26.0

v1.26.0

What's Changed Bump dev version: v1.26.0.dev0 by @albertvillanova in #2273 Add new possible error message to test of LiteLLM providers w/o key by @albertvillanova in #2275 Fix typo cleanups across docs, examples, and tests by @luojiyin1987 in #2208 fix: correct f-string escaping in ToolSerializer.dumps error message by @Ricardo-M-L in #2134 Revert fix: correct f-string escaping by @albertvillanova in #2291 Update docstring of LocalPythonExecutor by @albertvillanova in #2292 Add Exa as a search engine option in WebSearchTool by @10ishq in #2139 Remove remote WasmExecutor by <a class="user-menti...

v1.25.0

v1.25.0

What's Changed Bump dev version: v1.25.0.dev0 by @albertvillanova in #1939 Fix import of TokenUsage by @albertvillanova in #1943 Add MLflow integration doc by @B-Step62 in #1884 Refactor agent/model deserialization: Replace importlib with registry pattern by @albertvillanova in #1944 Update _function_type_hints_utils.py: CohereForAI -&gt; CohereLabs by @Michellehbn in #1946 Fix High impact vulnerability on remote executors by @nnfrog in #1637 Fix SafeSerializer.get_deserializer_code by @albertvillanova in #1983 Fix RemotePythonExecutor._deserialize_final_answer for legacy no-prefix pickle by <...

v1.24.0

v1.24.0

What's Changed Bump version to 1.24 by @aymeric-roucher in #1871 Fix: Add backward compatibility for deprecated HfApiModel by @MohammadKassas143 in #1863 Fix typo in secure_code_execution.md by @jonathanagustin in #1892 Update no-stop-sequence model list to support gpt-5.2* by @aymeric-roucher in #1895 Fix run_gaia.py token_counts when managed agent is called more than once by @suryabdev in #1878 🌐 [i18n-KO] Translated tools.md to Korean by @Kim-Ju-won in #1835 Support passing additional params to apply_chat_template by @albertvillanova in #1902 fix(gradio_ui): Gradio 6 compatibility by <a cl...

v1.23.0

v1.23.0

Improvements ✨ Update final answer checks to accept the agent instance by @Zoe14 in #1648 Dialog mode CLI by @aymeric-roucher in #1540 Add Blaxel support for remote code execution by @Joffref in #1791 Proposition: Add exponential backoff with jitter for retries by @suryabdev in #1829 Cut generation at stop sequence post generation by @aymeric-roucher in #1802 Move executor type validation to python executor creation by @Lrakotoson in #1800 Support custom Python code executor in CodeAgent by @albertvillanova in #1707 Retry on rate limit errors by <a class="user-mention notranslate" data-hoverca...

v1.22.0

v1.22.0

What's Changed Bump dev version: v1.22.0.dev0 by @albertvillanova in #1657 refactor(PythonExecutor): inherit from ABC and declare abstract methods by @HairlessVillager in #1654 Fix error for GPT-5 not supporting the stop parameter by @Xmader in #1662 Enable return_full_result directly in run method by @aymeric-roucher in #1658 Make RunResult json serializable by @aymeric-roucher in #1659 Change truncation to remove end rather than middle by @aymeric-roucher in #1665 Document that model kwargs are forwarded to model completion call by @albertvillanova in #1679 Fix missing kwargs forward to vLLM...

v1.21.3

v1.21.3

Bug Fixes 🐛 Fix E2BExecutor by pinning e2b-code-interpreter to &lt; 2 by @albertvillanova in #1733 Full Changelog : v1.21.2...v1.21.3

v1.21.2

v1.21.2

Bug Fixes 🐛 Pin telemetry extra &gt;=0.1.15 to use new TokenUsage structure by @albertvillanova in #1699 Full Changelog : v1.21.1...v1.21.2

v1.21.1

v1.21.1

Bug Fixes 🐛 Fix error for GPT-5 not supporting the stop parameter by @Xmader in #1662 Full Changelog : v1.21.0...v1.21.1

v1.21.0

v1.21.0

Enhancements ✨ Tool &amp; Model Improvements Add Tool to_code_prompt and to_tool_calling_prompt by @albertvillanova in #1599 Improve function body extraction in tools by @HairlessVillager in #1627 Support passing model_kwargs to TransformersModel by @albertvillanova in #1608 Support dict messages as direct input to models by @albertvillanova in #1570 Executor Improvements Enhance LocalPythonExecutor security by blocking dunder calls by @nnfrog in #1551 Fix continue semantics of LocalPythonExecutor by @adaminsky in #1645 Fix GeneratorExp in LocalPythonExecutor to return Generator instead of lis...

v1.20.0

v1.20.0

New Features ✨ Remote Execution : Implement remote Python WasmExecutor by @albertvillanova in #1261 Callbacks : Support callbacks after planning step by @albertvillanova in #1445 Support multiple callbacks per step type in step_callbacks dict by @albertvillanova in #1517 Enhancements 🛠️ Models : Implement rate limiting in all API models by @albertvillanova in #1516 Tools : Implement exception mechanism for final answer in remote executors by @tobiasofsn in #1429 Set default api_key_name in ApiWebSearchTool by @albertvillanova in #1507 Implement rate limit mechanism in ApiWebSearchTool by @alb...

v1.19.0

v1.19.0

Enhancements 🛠️ Agent Upgrades : Support managed agents in ToolCallingAgent by @albertvillanova in #1456 Support context managers for agent cleanup by @tobiasofsn in #1422 Change code tags to xml by @aymeric-roucher in #1442 UI Improvements : Support reset_agent_memory in GradioUI by @JakeBx in #1420 Streaming Refactor : Transfer aggregation of streaming events off the Model class by @aymeric-roucher in #1449 Agent Output Tracking : Store CodeAgent code outputs in ActionStep by @aymeric-roucher in #1463 Bug Fixes 🐛 Fix Agent update planning logic by @Zoe14 in <a class="issue-link js-issue-li...

v1.18.0

v1.18.0

New Features ✨ Multiple Parallel Tool Calls : ToolCallingAgent can now handle multiple tool calls in parallel, significantly enhancing performance for complex tasks. Support multiple tool calls in parallel in ToolCallingAgent by @albertvillanova in #1412 Streaming Output for ToolCallingAgent : ToolCallingAgent now supports streaming outputs, improving responsiveness and user experience during multi-step tool interactions Streaming outputs for ToolCallingAgent 🚀 by @aymeric-roucher in #1409 API Web Search Tool : Introduced a new ApiWebSearchTool, enabling structured web search capabilities via...