Commit Graph

488 Commits

Author SHA1 Message Date
Fanwang Meng 16cfbdcfdf
Add Chinese translations for text-to-sql example (#366) 2025-01-28 09:42:36 +01:00
Aymeric Roucher 49c34f625c
Gradio chatbot: step duration, number, token count, support nested thoughts (#384)
* Add enhanced Gradio UI with nested agents calls, execution-logs, errors
- Add virtual separation between steps
- Highlight final answer as required in internal discussion
- Show step numbers and token counts
- Include step duration tracking
- Improve message display structure
---------

Co-authored-by: Yuvraj Sharma <48665385+yvrjsharma@users.noreply.github.com>
2025-01-28 09:24:13 +01:00
BUI Van Tuan 3b5c99e87a
Fix Extra planning (#362)
* fix Extra planning
2025-01-28 09:21:58 +01:00
Touseef Ahmad 68f3da12ea
Minor Fix in the example docs (#383) 2025-01-28 08:55:39 +01:00
Tobias Cabanski 525a76b836
add kwargs to gradio launch (#367) 2025-01-28 08:55:03 +01:00
Touseef Ahmad dca7081394
Separate tree for Model docs is added (#382) 2025-01-28 08:44:15 +01:00
Aymeric Roucher 4579a6f7cc
TransformersModel auto-detects VLMs (#378)
* TransformersModel auto-detects VLMs
2025-01-27 20:09:14 +01:00
Aymeric Roucher a5290590c8
Update issue templates (#377) 2025-01-27 19:04:07 +01:00
Sanjeed 5edf940cd9
Add pip install datasets to RAG example (#371) 2025-01-27 16:30:56 +01:00
Albert Villanova del Moral 39133acc90
Use transformers as optional dependency (#360) 2025-01-27 10:07:29 +01:00
Albert Villanova del Moral ce763ff756
Bump version to 1.6.0.dev (#348) 2025-01-24 17:55:55 +01:00
Merve Noyan 408b52abec
Add VLM support (#220)
* vlm initial commit

* transformers integration for vlms

* Add webbrowser example and make it work 🥳🥳

* Refactor image support

* Allow modifying agent attributes in callback

* Improve vlm browser example

* time.sleep(0.5) before screenshot to let js animations happen

* test to validate internal workflow for passing images

* Update test_agents.py

* Improve error logging

* Switch to OpenAIServerModel

* Improve the example

* Format

* add docs about steps, callbacks & co

* Add precisions in doc

* Improve browser

* Tiny prompting update

* Fix style

* fix/add test

* refactor

* Fix write_inner_memory_from_logs for OpenAI format

* Add back summary mode

* Make it work with TransformersModel

* Fix test

* Fix loop

* Fix quality

* Fix mutable default argument

* Rename tool_response_message to error_message and append it

* Working browser with firefox

* Use flatten_messages_as_text passed to TransformersModel

* Fix quality

* Document flatten_messages_as_text in docstring

* Working ctrl + f in browser

* Make style

* Fix summary_mode type hint and add to docstring

* Move image functions to tools

* Update docstrings

* Fix type hint

* Fix typo

* Fix type hints

* Make callback call compatible with old single-argument functions

* Revert update_metrics to have a single arg

* Pass keyword args instead of args to callback

* Update webbrowser

* fix for single message case where final message list is empty

* forgot debugger lol

* accommodate VLM-like chat template and fix tests

* Improve example wording

* Style fixes

* clarify naming and fix tests

* test fix

* Fix style

* Add bm25 to fix one of the doc tests

* fix mocking in VL test

* fix bug in fallback

* add transformers model

* remove chrome dir from helium

* Update Transformers example with flatten_messages_as_text

* Add doc for flatten_messages_as_text

* Fix merge error

---------

Co-authored-by: Merve Noyan <mervenoyan@Merve-MacBook-Pro.local>
Co-authored-by: Aymeric <aymeric.roucher@gmail.com>
Co-authored-by: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com>
2025-01-24 17:01:35 +01:00
Aymeric Roucher de7b0ee799
Improve inference choice examples (#311)
* Improve inference choice examples

* Fix style

---------

Co-authored-by: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com>
2025-01-24 16:32:35 +01:00
RolandJAAI 0196dc7b21
fixed tool examples in prompts (#341) 2025-01-24 15:21:00 +01:00
Touseef Ahmad b5b55a5686
docstring args for ToolCallingAgent, CodeAgent and ManagedAgent (#335)
* docstring args for ToolCallingAgent, CodeAgent and ManagedAgent

* Fix ToolCallingAgent and CodeAgent docstring

* Minor fix

---------

Co-authored-by: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com>
2025-01-24 15:03:49 +01:00
Alex Bason 73621c9cd1
Move torchvision to the torch extra (#297) 2025-01-24 14:31:10 +01:00
Albert Villanova del Moral 2a2b76487b
Fix docstrings of models (#344) 2025-01-24 14:23:24 +01:00
Albert Villanova del Moral 0217d3fd58
Fix MultiStepAgent docstring (#336)
* Fix MultiStepAgent docstring

* Force PR doc build
2025-01-23 17:38:09 +01:00
Albert Villanova del Moral b333e08f66
Update README instructions to run tests (#328) 2025-01-23 15:42:27 +01:00
Albert Villanova del Moral 696b885976
Add args to MultiStepAgent docstring (#332)
* Add args to MultiStepAgent docstring
2025-01-23 12:54:50 +01:00
Albert Villanova del Moral 115c8aef1e
Rename tool_response_message to error_message and append it (#325) 2025-01-23 12:45:58 +01:00
靳灿奇 bc82d1cb76
Update README.md fix quick demo code import bug (#327) 2025-01-23 10:19:50 +01:00
kingdomad b351a8c9ce
Improve static tools initialization safety (#324)
* improve static tools initialization safety

* Allow modification of custom_tools during code execution
2025-01-23 09:43:49 +01:00
Touseef Ahmad 7e9f6e5edb
RAG on your huggingface_doc data using chromadb and groq api (#235)
* RAG on your PDF data using chromadb and groq api

* Multiple embeeding and llm support

* Multiple embedding and llm support

* Default embeddings set to hugging face

* organize imports

* huggingface_doc data source added

* Update and rename Local_PDF_RAG_using_chromadb.py to rag_using_chromadb.py

* Quality fix

* Default agent set to CodeAgent
2025-01-23 09:41:43 +01:00
Touseef Ahmad a806f50ef2
Multiple tool example (#293)
* Update guided_tour.md (#287)

* Example for calling multiple tools from ToolCallingAgent

* CodeAgent added

* Default agent set to CodeAgent and Qualitty fix

* Rename file
2025-01-23 08:55:02 +01:00
Aymeric Roucher fe2f4e735c
Fix tool calls with LiteLLM and tool optional types (#318) 2025-01-22 18:42:10 +01:00
Aymeric Roucher ffaa945936
Unset temperature in models (#315) 2025-01-22 17:20:12 +01:00
Albert Villanova del Moral ce11c7e3d9
Remove package json files (#314)
* Remove package-lock.json
* Remove package.json
2025-01-22 16:27:45 +01:00
Albert Villanova del Moral 0ead477263
Refactor evaluate_augassign and test all operators (#313)
* Test all augassign operators

* Refactor evaluate_augassign
2025-01-22 14:59:09 +01:00
Antoine Jeannot 6196958deb
Fix: source code inspection in interactive shells (#281)
* Support interactive shells for source inspection
* Add tool save e2e tests
2025-01-22 13:43:16 +01:00
Killian Pitiot 5d6502ae1d
Minor fix: adding a 60 seconds timeout to the visit webpage tool (#308)
* adding a 60 seconds timeout

* lowerting the timeout to 20s
2025-01-22 13:02:38 +01:00
Aymeric Roucher 43904f32c7
Support any and none tool types (#280)
* Support any and none tool types
2025-01-22 12:47:05 +01:00
tandiapa 83ecd572fc
fix(interpreter security): functions from the builtins module must be explicitely added so as to prevent the dangerous ones from being indirectly available (compile, exec, eval, breakpoint, __import__, open, ...) (#299) 2025-01-22 12:28:18 +01:00
kingdomad 398c932250
refactor(models): restructure model parameter handling (#227)
* refactor(models): restructure model parameter handling

- Introduce base-class level default parameters (temperature, max_tokens)
- Optimize parameter handling: method args can override base config
- Unify parameter handling across model implementations
2025-01-22 11:27:36 +01:00
Albert Villanova del Moral 117014d2e1
Fix arg passing to AgentExecutionError (#309) 2025-01-22 11:13:59 +01:00
Vlad Iliescu a721837c57
Add Azure OpenAI support (#282)
* Added support for connecting to Azure OpenAI via AzureOpenAIServerModel
2025-01-22 10:44:18 +01:00
Nicholas Broad ec45d6766a
minor fix for console in AgentLogger (#303)
* minor fix for console in AgentLogger
2025-01-22 10:41:05 +01:00
Clémentine Fourrier 2c43546d3c
Fuse stream and direct run calls (#296)
* fuse stream and non stream calls
2025-01-22 10:34:27 +01:00
David Berenstein 428aedde93
Update README and documentation to clarify Hub integrations with Gradio Spaces and fix code snippet formatting (#306)
- Changed the description of Hub integrations to specify sharing and loading of Gradio Spaces as tools.
- Fixed a formatting issue in the code snippet by removing an extraneous comma in the import statement.
2025-01-22 09:28:15 +01:00
Albert Villanova del Moral 5f5aec3ec4
Remove pickle5 package from E2BExecutor (#295) 2025-01-21 17:18:39 +01:00
Aymeric Roucher cfbd527438
Add cool GIF of agent run inspection using Phoenix (#277)
* Add cool GIF of agent run inspection using Phoenix
2025-01-21 13:43:48 +01:00
Albert Villanova del Moral 16f7910df8
Make e2b optional dependency (#292)
* Make e2b optional dependency with extra

* Make e2b imports optional

* Update e2b docs
2025-01-21 12:17:24 +01:00
Sanjeed 257c1fe33b
Update guided_tour.md (#287) 2025-01-21 11:18:45 +01:00
Derek Alia 1e745c7a34
Update building_good_agents.md (#283) 2025-01-21 11:03:51 +01:00
Albert Villanova del Moral fb23e91a21
Add huggingface-hub as required dependency (#288) 2025-01-21 10:50:08 +01:00
Albert Villanova del Moral 0e0d73b096
Try first dunder method in evaluate_augassign (#285)
* Test evaluate_augassign
2025-01-21 10:41:25 +01:00
Albert Villanova del Moral a2b37caff1
Fix CI quality (#286) 2025-01-21 10:40:15 +01:00
Parteek bd08d6485d
Added Hindi docs for smolagents (#279) 2025-01-20 19:30:31 +01:00
tandiapa a4612c98dc
Fix (interpreter security): builtins functions passed as tools enable the use of compile, eval, exec (#274) 2025-01-20 17:06:47 +01:00
Aymeric Roucher 7a91123729
Improve python executor's error logging (#275)
* Improve python executor's error logging
2025-01-20 15:57:16 +01:00