Commit Graph

4 Commits

Author SHA1 Message Date
RolandJAAI 06a8c546b9
fix additional_args and num_ctx examples also in zh docs (#260) 2025-01-18 19:09:50 +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 Roucher e5c054cc5b
Pre-release fixes (#207) 2025-01-15 16:56:12 +01:00
Ayuilos c0496dc6bc
[i18n] Add Chinese translation(`zh`) for smolagents (#156)
* Add Chinese version (`zh`) of the documentation for smolagents
2025-01-13 16:24:23 +01:00