Tool & Model Improvements
Executor Improvements
LocalPythonExecutor security by blocking dunder calls by @nnfrog in https://github.com/huggingface/smolagents/pull/1551continue semantics of LocalPythonExecutorby @adaminsky in https://github.com/huggingface/smolagents/pull/1645GeneratorExp in LocalPythonExecutor to return Generator instead of list by @albertvillanova in https://github.com/huggingface/smolagents/pull/1650Gradio & UI
gr.Number for mapping integer and number type components in launch_gradio_demo by @karenwky in https://github.com/huggingface/smolagents/pull/1320AmazonBedrockServerModel crashes in thinking mode by @benoriol in https://github.com/huggingface/smolagents/pull/1632tool_calling_agent prompt by @yusuf-eren in https://github.com/huggingface/smolagents/pull/1636RemotePythonExecutor should not send variables if none exist by @thomasjpfan in https://github.com/huggingface/smolagents/pull/1605index.md to Korean by @FacerAin in https://github.com/huggingface/smolagents/pull/1581text_to_sql.md to Korean by @nsbg in https://github.com/huggingface/smolagents/pull/1603grammar parameter by @albertvillanova in https://github.com/huggingface/smolagents/pull/1651logs attribute by @albertvillanova in https://github.com/huggingface/smolagents/pull/1653ManagedAgent from docs by @albertvillanova in https://github.com/huggingface/smolagents/pull/1655sse transport by @albertvillanova in https://github.com/huggingface/smolagents/pull/1656model_output by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/1622Full Changelog: https://github.com/huggingface/smolagents/compare/v1.20.0...v1.21.0
Fetched April 7, 2026