v1.21.0
Enhancements โจ
-
Tool & Model Improvements
- Add Tool to_code_prompt and to_tool_calling_prompt by @albertvillanova in https://github.com/huggingface/smolagents/pull/1599
- Improve function body extraction in tools by @HairlessVillager in https://github.com/huggingface/smolagents/pull/1627
- Support passing model_kwargs to TransformersModel by @albertvillanova in https://github.com/huggingface/smolagents/pull/1608
- Support dict messages as direct input to models by @albertvillanova in https://github.com/huggingface/smolagents/pull/1570
-
Executor Improvements
- Enhance
LocalPythonExecutorsecurity by blocking dunder calls by @nnfrog in https://github.com/huggingface/smolagents/pull/1551 - Fix
continuesemantics ofLocalPythonExecutorby @adaminsky in https://github.com/huggingface/smolagents/pull/1645 - Fix
GeneratorExpinLocalPythonExecutorto returnGeneratorinstead oflistby @albertvillanova in https://github.com/huggingface/smolagents/pull/1650
- Enhance