Commit Graph

12 Commits

Author SHA1 Message Date
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
RolandJAAI a1d8f3c398
fix tool example with additional args (#228) 2025-01-16 23:00:11 +01:00
duydl 67ee777370
Fix minor docs (#173) 2025-01-13 16:31:36 +01:00
Aymeric Roucher eca83800e3
Halve import time by removing torch dependency (#147)
* Halve import time by removing torch dependency
2025-01-10 15:00:28 +01:00
Aymeric Roucher cb9830a554
Support OpenTelemetry (#136)
* Support OpenTelemetry
2025-01-09 23:08:17 +01:00
Izaak Curry 6b8467c546
Fix Spelling Errors in Documentation (#99)
* Update docs/tutorials/tools.md
2025-01-07 14:07:30 +01:00
Aymeric f3c4edb073 Remove references to transformers.agents in doc and examples 2025-01-06 14:02:58 +01:00
Aymeric 05772cb28c Remove gradio tools from doc 2024-12-31 19:29:22 +01:00
Aymeric 4c9f04ee2f Clarify tool sharing doc 2024-12-31 19:12:00 +01:00
Aymeric 8a769904c9 Update doc on tools 2024-12-31 19:08:18 +01:00
Aymeric 64de40efcb Various doc improvements 2024-12-31 17:28:43 +01:00
Aymeric aa06a7ad78 Move doc to 'en' subfolder 2024-12-31 12:46:17 +01:00