Commit Graph

13 Commits

Author SHA1 Message Date
Aymeric Roucher d69ae028fa
Simplify managed agents (#484)
* Simplify managed agents
2025-02-03 21:19:54 +01:00
Aymeric Roucher fa1f8d0154
Add CLI for smolagents (#431)
---------

Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
2025-01-30 15:56:50 +01:00
Clémentine Fourrier c6eb9526f1
Untangling Logging (#316)
* Deep refacto that disentangled logging logic between logging (informing the user via console outputs) and memory (storing what happened in the agent).

---------

Co-authored-by: benediktstroebl <50178209+benediktstroebl@users.noreply.github.com>
Co-authored-by: Aymeric <aymeric.roucher@gmail.com>
2025-01-29 16:27:04 +01:00
Fanwang Meng 216ec1a0ae
Add Chinese translations for RAG (#363) 2025-01-28 09:43:06 +01:00
Fanwang Meng 16cfbdcfdf
Add Chinese translations for text-to-sql example (#366) 2025-01-28 09:42:36 +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
RolandJAAI 06a8c546b9
fix additional_args and num_ctx examples also in zh docs (#260) 2025-01-18 19:09:50 +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
Fanwang Meng 3e1c979dac
Add Chinese translations for multi-agent example (#246)
* Add first complete Chinese translation
2025-01-17 19:12:59 +01:00
matterattetatte c56d73731d
Dead Link to Duck Duck Go search tool (#233)
* Update multiagents.md URL to DuckDuckGo
2025-01-16 23:04:40 +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