Commit Graph

276 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
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
Lê Thông 116b12e93a
chore: unset console width, utilize auto detect feature (#196) 2025-01-17 19:15:53 +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
RolandJAAI e30ec8ac91
Set ollama context lenght in example to 8192 to make it work (#252)
* set ollama context length in example
2025-01-17 18:41:34 +01:00
Albert Villanova del Moral 58b18f5655
Remove dependency on _is_package_available from transformers (#247) 2025-01-17 18:38:33 +01:00
Aymeric 6db75183ff Fix style 2025-01-17 18:04:16 +01:00
Aymeric d8591dc703 Improve OpenAIServerModel by making api_base and api_url optional (will then point to OpenAI server) 2025-01-17 18:03:51 +01:00
Albert Villanova del Moral 68933e7e90
Make openai dependency optional (#236)
* Make openai optional dependency

* Set openai as an extra dependency
2025-01-17 16:46:18 +01:00
Lucain 1f8fd72acb
Clean makefile, pyproject.toml and CI (#229)
* Clean makefile / pyproject.toml / .github

* new tests after

* add back sqlalchemy

* disable docs tests in CI

* continue on error

* correct continue on error

* Remove all_docs test
2025-01-17 13:18:06 +01:00
Edward Beeching fabc59aa08
Fix missing python modules in CodeAgent system prompt (#226)
* fix modules in system prompt + test
2025-01-17 11:59:30 +01:00
Aymeric Roucher 11a738e53a
Add trust_remote_code arg to TransformersModel (#240) 2025-01-17 11:55:36 +01:00
Aymeric Roucher c255c1ff84
Fix subpackage import vulnerability (#238)
* Fix subpackage import vulnerability
2025-01-17 11:40:49 +01:00
Jan d5c2ef48e7
Add resizeable option to Gradio UI component for better usabilty (#234) 2025-01-16 23:05:23 +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 b4091cb5ce
Allow passing kwargs to all models (#222)
* Allow passing kwargs to all models
2025-01-16 23:03:38 +01:00
RolandJAAI a1d8f3c398
fix tool example with additional args (#228) 2025-01-16 23:00:11 +01:00
stackviolator a4ec1e5be3
Return textboxes on file upload errors (#214) 2025-01-16 16:33:01 +01:00
Aymeric Roucher fdf4fe49ba
Fix additional args in stream_to_gradio (#221) 2025-01-16 15:47:23 +01:00
Albert Villanova del Moral 2a69f1574e
Fix vanilla model answer in example benchmark (#219) 2025-01-16 12:04:41 +01:00
Aymeric 72b01a9909 Restore previous agents.py 2025-01-16 11:54:23 +01:00
Aymeric 96ebe01dc7 Add license_to_call graphic to documentation index 2025-01-16 11:48:16 +01:00
Aymeric 34a718cf02 Fix mascot positioning 2025-01-16 11:40:23 +01:00
Aymeric 40087aad0b Update mascot 2025-01-16 11:38:09 +01:00
Albert Villanova del Moral 2ae590edf4
Rename the benchmark dataset split from train to test (#216) 2025-01-16 09:57:00 +01:00
Albert Villanova del Moral 4449c51cad
Align data types in example benchmark (#205) 2025-01-16 09:54:47 +01:00
Aymeric 98c6688c3d Add pip install for instrumentation 2025-01-16 09:39:28 +01:00
Aymeric Roucher 6ef0837f94
Update README.md (#208) 2025-01-15 18:08:17 +01:00
Ruggero Rossi 4c5f1fe4b4
fix typo in building_good_agents.md (#193)
Change function get_coordinates_from_location to convert_location_to_coordinates
2025-01-15 18:04:54 +01:00
Aymeric 369d066c9d Bump version following release of 1.3.0 2025-01-15 17:32:23 +01:00
Aymeric Roucher e5c054cc5b
Pre-release fixes (#207) 2025-01-15 16:56:12 +01:00
Albert Villanova del Moral df76ed517f
Fix quality in gradio_ui (#206) 2025-01-15 16:12:31 +01:00
Aymeric Roucher 25e00c6e74
Document OpenTelemetry (#204) 2025-01-15 16:07:34 +01:00
Aymeric Roucher 06aca55be6
Fix import from ChatMessage in test_monitoring (#202) 2025-01-15 14:03:41 +01:00
kingdomad 7ce27f1590
fix: fix string concatenation bug in GradioUI.log_user_message (#199) 2025-01-15 14:00:15 +01:00
NeverLucky a22c221fa7
call.func parameter (#194) 2025-01-15 13:58:52 +01:00
Aymeric Roucher 450934ce79
Add support for OpenTelemetry instrumentation 📊 (#200) 2025-01-15 12:10:52 +01:00
Aymeric Roucher ce1cd6d906
Support pandas' iloc indexer (#191) 2025-01-14 19:27:07 +01:00
Aggelos Kyriakoulis 77f656c80d
Implemented support for ast.Pass in the interpeter. (#189) 2025-01-14 17:21:38 +01:00
Aymeric Roucher 5f32373551
Make default tools more robust (#186) 2025-01-14 14:57:11 +01:00
Deng Tongwei 12a2e6f4b4
feat: Add multi-GPU support for TransformersModel (#139)
Add multi-GPU support for TransformersModel
2025-01-14 10:00:08 +01:00
Ilya Gusev c04e8de825
Bugfix: Fix plan_update message display (#179) 2025-01-14 09:58:45 +01:00
Aymeric 1d846072eb Improve GradioUI file upload system 2025-01-13 19:46:36 +01:00
Albert Villanova del Moral 1f96560c92
Fix minor issues in building_good_agents docs (#170)
* Fix doc inter-link to intro_agents in building_good_agents, make text italic, minor typos
2025-01-13 17:26:32 +01:00
tanhuajie ad18041078
Fix tool_calls parsing error in ToolCallingAgent (#160) 2025-01-13 17:24:18 +01:00
Aymeric Roucher c611dfc7e5
Clean local python interpreter: propagate imports (#175) 2025-01-13 17:23:03 +01:00
Albert Villanova del Moral a5a3448551
Fix formatting tests (#171) 2025-01-13 16:34:55 +01:00
stackviolator 2a51efe11f
Add option to upload files to GradioUI (#138)
* Add option to upload files to GradioUI
2025-01-13 16:33:45 +01:00
duydl 67ee777370
Fix minor docs (#173) 2025-01-13 16:31:36 +01:00