Commit Graph

487 Commits

Author SHA1 Message Date
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
joaopauloschuler a0b4350409
Agents deserve freedom. Freedom is the path to success! additional_authorized_imports=['*'] (#129)
* Add an option to authorize all imports
2025-01-13 16:27:42 +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
sid tuladhar 60b1abdae6
Fixed agents.md (#164)
Fix docs: custom_model should return an object that has a .content attribute
2025-01-13 16:21:51 +01:00
Aggelos Kyriakoulis 695d303401
Bug fixes on TransformersModel (#165)
* TransformersModel bug fixes
2025-01-13 16:20:45 +01:00
Aymeric Roucher 289c06df0f
Log list of tool calls in ActionStep (#172) 2025-01-13 12:08:27 +01:00
chloefeal 5a62304c91
Fixed typo in `parse_code_blobs` docstring (#155)
Fixed typo in `parse_code_blobs` docstring
2025-01-12 15:33:28 +01:00
Jack Kingston 320dd77f37
Tools from Spaces: Fix bug preventing use of long prompts. (#134) 2025-01-12 15:12:53 +01:00
Aggelos Kyriakoulis 14134c23e9
Also added the right link for website button (#159) 2025-01-12 15:02:32 +01:00
Rob Taylor d4b5e811f5
Add top level docs link to README (#121) 2025-01-11 19:28:21 +01:00
Aymeric Roucher fec65e154a
More flexible verbosity level (#150) 2025-01-10 23:46:22 +01:00
Aymeric 82a2fe5bb4 Fix output type sanitization 2025-01-10 22:30:29 +01:00
Aymeric 6743d01ed5 Formatting 2025-01-10 21:45:52 +01:00
Aymeric 9c1a0fa2e5 Fix output types with torch not installed 2025-01-10 21:45:19 +01:00
Aymeric 4e80e1b79a Bump version following release of 1.2.0 2025-01-10 16:24:40 +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
GamifyAI.ai d8a4b831bb
Fix several typos in docs. (#140) 2025-01-10 13:00:24 +01:00
Aymeric Roucher 5c33130fa4
Vastly simplify Model class (#146)
* Vastly simplify Model class by making only one __call__ method 
2025-01-10 12:30:59 +01:00
Aymeric 36ed279c85 Remove server.py 2025-01-09 23:31:09 +01:00
Aymeric Roucher cb9830a554
Support OpenTelemetry (#136)
* Support OpenTelemetry
2025-01-09 23:08:17 +01:00
Aymeric Roucher cf04285cc1
Enable smolagent tools in Hugging Chat! 🚀 (#132)
* Add correct signature, api_name, and description
2025-01-09 15:15:06 +01:00
Aymeric Roucher 067ae9bc90
Support multiple code blobs (#128) 2025-01-08 23:20:50 +01:00
Aymeric Roucher e1414f6653
Remove dependency on LiteLLM (#126) 2025-01-08 22:57:55 +01:00
joaopauloschuler d2f4eecba4
Authorize base function "complex" in local_python_executor.py (#79) 2025-01-08 22:57:20 +01:00
Zetaphor b4528d6a6f
Implement OpenAIServerModel (#109) 2025-01-08 22:39:41 +01:00
Aymeric Roucher d3cd0f9e09
Auto correct wrong assignments to final_answer (#123)
* Auto correct wrong assignments to final_answer
2025-01-08 19:04:11 +01:00
Aymeric Roucher e5d879feab
Change DuckDuckGoSearchTool output_type to string (#116)
* Change DuckDuckGoSearchTool output_type to string and update description accordingly
2025-01-08 09:59:58 +01:00
Aymeric 681758ae84 Fix failing import test in test_agents.py 2025-01-07 14:09:01 +01:00
Izaak Curry 6b8467c546
Fix Spelling Errors in Documentation (#99)
* Update docs/tutorials/tools.md
2025-01-07 14:07:30 +01:00
Omar Irfan Khan 10e0db06e0
fixing spelling and grammar for query in docs/examples/multiagents.md (#98) 2025-01-07 14:05:06 +01:00
Freddy Boulton 7f3a88c597
Small tweaks to Gradio demo 2025-01-07 14:04:11 +01:00
Aymeric 7b191952f8 Update version and doc builder 2025-01-07 14:02:01 +01:00
Aymeric Roucher d09d4c3a54
Merge pull request #95 from derekalia/patch-1
Update docs/examples/rag.md with missing verb
2025-01-07 10:04:48 +01:00
Derek Alia f6ed22561a
Update rag.md with missing verb
Missing verb in “The agent can the generated snippets ...”

Original:
“The agent can the generated snippets and re-retrieve if needed, as in Self-Query.”

Fix:

“The agent can use the generated snippets and re-retrieve if needed, as in Self-Query.”
2025-01-06 16:16:58 -08:00
Aymeric e0ff435caf Merge branch 'main' of github.com:huggingface/smolagents 2025-01-06 22:47:23 +01:00
Aymeric 58d25acff5 Clarify warning for missing imports 2025-01-06 22:47:13 +01:00
Aymeric Roucher dd2896e887
Merge pull request #92 from DarwinAnim8or/patch-1
Include missing pip install library in RAG example
2025-01-06 22:42:10 +01:00
Aymeric Roucher 723582aacf
Update rag.md 2025-01-06 22:30:29 +01:00
Aymeric Roucher b1353720af
Merge pull request #89 from alxfgh/fix-doc-tutorial-errors
Fixed typos and grammatical errors in building_good_agents.md
2025-01-06 22:28:45 +01:00
Gie "Max" Vanommeslaeghe 1f11b9569c
Include missing pip install library 2025-01-06 22:08:56 +01:00