Alex Bason
73621c9cd1
Move torchvision to the torch extra ( #297 )
2025-01-24 14:31:10 +01:00
Albert Villanova del Moral
2a2b76487b
Fix docstrings of models ( #344 )
2025-01-24 14:23:24 +01:00
Albert Villanova del Moral
0217d3fd58
Fix MultiStepAgent docstring ( #336 )
...
* Fix MultiStepAgent docstring
* Force PR doc build
2025-01-23 17:38:09 +01:00
Albert Villanova del Moral
b333e08f66
Update README instructions to run tests ( #328 )
2025-01-23 15:42:27 +01:00
Albert Villanova del Moral
696b885976
Add args to MultiStepAgent docstring ( #332 )
...
* Add args to MultiStepAgent docstring
2025-01-23 12:54:50 +01:00
Albert Villanova del Moral
115c8aef1e
Rename tool_response_message to error_message and append it ( #325 )
2025-01-23 12:45:58 +01:00
靳灿奇
bc82d1cb76
Update README.md fix quick demo code import bug ( #327 )
2025-01-23 10:19:50 +01:00
kingdomad
b351a8c9ce
Improve static tools initialization safety ( #324 )
...
* improve static tools initialization safety
* Allow modification of custom_tools during code execution
2025-01-23 09:43:49 +01:00
Touseef Ahmad
7e9f6e5edb
RAG on your huggingface_doc data using chromadb and groq api ( #235 )
...
* RAG on your PDF data using chromadb and groq api
* Multiple embeeding and llm support
* Multiple embedding and llm support
* Default embeddings set to hugging face
* organize imports
* huggingface_doc data source added
* Update and rename Local_PDF_RAG_using_chromadb.py to rag_using_chromadb.py
* Quality fix
* Default agent set to CodeAgent
2025-01-23 09:41:43 +01:00
Touseef Ahmad
a806f50ef2
Multiple tool example ( #293 )
...
* Update guided_tour.md (#287 )
* Example for calling multiple tools from ToolCallingAgent
* CodeAgent added
* Default agent set to CodeAgent and Qualitty fix
* Rename file
2025-01-23 08:55:02 +01:00
Aymeric Roucher
fe2f4e735c
Fix tool calls with LiteLLM and tool optional types ( #318 )
2025-01-22 18:42:10 +01:00
Aymeric Roucher
ffaa945936
Unset temperature in models ( #315 )
2025-01-22 17:20:12 +01:00
Albert Villanova del Moral
ce11c7e3d9
Remove package json files ( #314 )
...
* Remove package-lock.json
* Remove package.json
2025-01-22 16:27:45 +01:00
Albert Villanova del Moral
0ead477263
Refactor evaluate_augassign and test all operators ( #313 )
...
* Test all augassign operators
* Refactor evaluate_augassign
2025-01-22 14:59:09 +01:00
Antoine Jeannot
6196958deb
Fix: source code inspection in interactive shells ( #281 )
...
* Support interactive shells for source inspection
* Add tool save e2e tests
2025-01-22 13:43:16 +01:00
Killian Pitiot
5d6502ae1d
Minor fix: adding a 60 seconds timeout to the visit webpage tool ( #308 )
...
* adding a 60 seconds timeout
* lowerting the timeout to 20s
2025-01-22 13:02:38 +01:00
Aymeric Roucher
43904f32c7
Support any and none tool types ( #280 )
...
* Support any and none tool types
2025-01-22 12:47:05 +01:00
tandiapa
83ecd572fc
fix(interpreter security): functions from the builtins module must be explicitely added so as to prevent the dangerous ones from being indirectly available (compile, exec, eval, breakpoint, __import__, open, ...) ( #299 )
2025-01-22 12:28:18 +01:00
kingdomad
398c932250
refactor(models): restructure model parameter handling ( #227 )
...
* refactor(models): restructure model parameter handling
- Introduce base-class level default parameters (temperature, max_tokens)
- Optimize parameter handling: method args can override base config
- Unify parameter handling across model implementations
2025-01-22 11:27:36 +01:00
Albert Villanova del Moral
117014d2e1
Fix arg passing to AgentExecutionError ( #309 )
2025-01-22 11:13:59 +01:00
Vlad Iliescu
a721837c57
Add Azure OpenAI support ( #282 )
...
* Added support for connecting to Azure OpenAI via AzureOpenAIServerModel
2025-01-22 10:44:18 +01:00
Nicholas Broad
ec45d6766a
minor fix for console in AgentLogger ( #303 )
...
* minor fix for console in AgentLogger
2025-01-22 10:41:05 +01:00
Clémentine Fourrier
2c43546d3c
Fuse stream and direct run calls ( #296 )
...
* fuse stream and non stream calls
2025-01-22 10:34:27 +01:00
David Berenstein
428aedde93
Update README and documentation to clarify Hub integrations with Gradio Spaces and fix code snippet formatting ( #306 )
...
- Changed the description of Hub integrations to specify sharing and loading of Gradio Spaces as tools.
- Fixed a formatting issue in the code snippet by removing an extraneous comma in the import statement.
2025-01-22 09:28:15 +01:00
Albert Villanova del Moral
5f5aec3ec4
Remove pickle5 package from E2BExecutor ( #295 )
2025-01-21 17:18:39 +01:00
Aymeric Roucher
cfbd527438
Add cool GIF of agent run inspection using Phoenix ( #277 )
...
* Add cool GIF of agent run inspection using Phoenix
2025-01-21 13:43:48 +01:00
Albert Villanova del Moral
16f7910df8
Make e2b optional dependency ( #292 )
...
* Make e2b optional dependency with extra
* Make e2b imports optional
* Update e2b docs
2025-01-21 12:17:24 +01:00
Sanjeed
257c1fe33b
Update guided_tour.md ( #287 )
2025-01-21 11:18:45 +01:00
Derek Alia
1e745c7a34
Update building_good_agents.md ( #283 )
2025-01-21 11:03:51 +01:00
Albert Villanova del Moral
fb23e91a21
Add huggingface-hub as required dependency ( #288 )
2025-01-21 10:50:08 +01:00
Albert Villanova del Moral
0e0d73b096
Try first dunder method in evaluate_augassign ( #285 )
...
* Test evaluate_augassign
2025-01-21 10:41:25 +01:00
Albert Villanova del Moral
a2b37caff1
Fix CI quality ( #286 )
2025-01-21 10:40:15 +01:00
Parteek
bd08d6485d
Added Hindi docs for smolagents ( #279 )
2025-01-20 19:30:31 +01:00
tandiapa
a4612c98dc
Fix (interpreter security): builtins functions passed as tools enable the use of compile, eval, exec ( #274 )
2025-01-20 17:06:47 +01:00
Aymeric Roucher
7a91123729
Improve python executor's error logging ( #275 )
...
* Improve python executor's error logging
2025-01-20 15:57:16 +01:00
Aymeric Roucher
3c18d4d588
Python interpreter: improve suggestions for possible mappings ( #266 )
2025-01-20 11:40:43 +01:00
Lucain
d19ebc7a48
Make import time faster (optional deps + delay imports) ( #253 )
...
* adapt docs
* optional in pyproject.toml
* get rid of some transformers imports
* optional transformers in models.py
* gradio, transformers, litellm
* small refacto AgentType
* merge conflicts
* mouaif
* fix tests
* AgentText no longer a str
* Add back AgentType as str/Image
* fixed for good
2025-01-20 10:59:43 +01:00
Aymeric Roucher
a2ca95107f
Bump version to 1.5.0.dev ( #256 )
...
* Bump version to 1.5.0.dev
* Fix style
---------
Co-authored-by: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com>
2025-01-20 10:59:16 +01:00
RolandJAAI
35f719164b
Fix Bug in from_langchain in tools.py ( #268 )
...
* Fix from_langchain in tools.py
2025-01-20 10:50:03 +01:00
Lucain
3178b18aab
Remove unused and undocumented parameter ( #273 )
2025-01-20 10:45:55 +01:00
Aymeric Roucher
0abd91cf72
Improve tool call argument parsing ( #267 )
...
* Improve tool call argument parsing
2025-01-20 10:44:40 +01:00
Albert Villanova del Moral
89a6350fe2
Fix quality ( #272 )
2025-01-20 09:49:20 +01:00
RolandJAAI
06a8c546b9
fix additional_args and num_ctx examples also in zh docs ( #260 )
2025-01-18 19:09:50 +01:00
Lucain
6e1373a324
Add linter rules + apply make style ( #255 )
...
* Add linter rules + apply make style
2025-01-18 19:01:15 +01:00
joaopauloschuler
5aa0f2b53d
Fixes bug no attribute 'logger' ( #259 )
2025-01-18 18:31:19 +01:00
Jan
34810986e0
refactor: update model type to ChatMessage in agent classes ( #263 )
2025-01-18 18:27:48 +01:00
Aymeric Roucher
e3ae1800e2
Fixes before release ( #254 )
...
* Fixes before release
2025-01-17 20:20:28 +01:00
Guillaume Raille
a4d029da88
add support for MCP Servers tools as `ToolCollection` ( #232 )
...
* add support for tool collection from mcp servers
* add forgotten documentation
* fix link missing in documentation
* fix linting in CI, bumpruff to use modern version
* mcpadapt added as optional dependencies
* use classmethod for from_hub and from_mcp to better reflect the fact that they return a ToolCollection
* Update src/smolagents/tools.py
Co-authored-by: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com>
* Update src/smolagents/tools.py
Co-authored-by: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com>
* Test ToolCollection.from_mcp
* Rename to mcp extra
* Add mcp extra to test extra
* add a test for from_mcp
* fix typo
* fix tests
* Test ToolCollection.from_mcp
(cherry picked from commit 9284d9ea8cf24d3c934e35a38dfe34f3ce31cef3)
* Make all pytest tests
---------
Co-authored-by: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com>
2025-01-17 19:41:43 +01:00
Moritz Laurer
7d6599e430
docs: small fixes in docs ( #245 )
2025-01-17 19:20:25 +01:00
Ilya Gusev
d1b8a78783
Max length of "print" outputs as a parameter of an agent ( #209 )
...
* Print outputs max length as a parameter
2025-01-17 19:16:47 +01:00