Commit Graph

10 Commits

Author SHA1 Message Date
Aymeric Roucher a4f89b68b2
Add tool saving test (#389)
* Add tool saving test

* Format
2025-01-28 10:58:53 +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
Aymeric Roucher 7a91123729
Improve python executor's error logging (#275)
* Improve python executor's error logging
2025-01-20 15:57:16 +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
Lucain 6e1373a324
Add linter rules + apply make style (#255)
* Add linter rules + apply make style
2025-01-18 19:01:15 +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
Aymeric c22fedaee1 Sort imports and add test workflows 2025-01-06 21:48:15 +01:00
Aymeric 54d6857da2 Pass tests 2024-12-30 18:03:53 +01:00
Aymeric c880f2f5b6 Format 2024-12-27 16:18:19 +01:00
Aymeric e5ca0f0cb8 Support optional arguments in tool calls 2024-12-26 11:55:20 +01:00