-
Notifications
You must be signed in to change notification settings - Fork 47
Smolagents: support ImageContent and AudioContent #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
bab3350
Smolagents: support ImageContent and AudioContent
HSGamer d48f553
Merge remote-tracking branch 'upstream/main'
HSGamer c1fbdba
update uv lock
HSGamer 1ea11ac
add audio to test
HSGamer c4f1619
change the command in audio
HSGamer 91c7d01
add a note about audio package in smolagents docs
HSGamer d6855a3
add test_image
HSGamer be83e12
add test_audio
HSGamer 8ee0e32
add sample files
HSGamer 4090e44
use pytest-datadir to get the sample files
HSGamer 06a42a0
assert to make sure the right image size
HSGamer 39e0d3e
Any result-type
HSGamer 21670f7
add an audio backend via soundfile package to make tests work
grll bf3d63c
fix missing pytest fixture for the datadir
grll 53fe4b2
fix mypy warning no stubs
grll ef3559f
fix format
grll cbbfd3b
improve typing of the forward function
grll 626b39a
fix type definition
grll File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ requires-python = ">=3.10" | |
| license = "MIT" | ||
| authors = [{ name = "Guillaume Raille", email = "[email protected]" }] | ||
| dependencies = [ | ||
| "mcp>=1.9.0", | ||
| "mcp>=1.9.4", | ||
| "jsonref>=1.1.0", | ||
| "python-dotenv>=1.0.1", | ||
| "pydantic>=2.10.6", | ||
|
|
@@ -44,17 +44,23 @@ llamaindex = [ | |
| test = [ | ||
| "pytest-asyncio>=0.25.2", | ||
| "pytest>=8.3.4", | ||
| "pytest-datadir>=1.7.2", | ||
| "mcpadapt[langchain]", | ||
| "mcpadapt[smolagents]", | ||
| "mcpadapt[crewai]", | ||
| "mcpadapt[google-genai]" | ||
| "mcpadapt[google-genai]", | ||
| "mcpadapt[audio]", | ||
| ] | ||
| crewai = [ | ||
| "crewai>=0.108.0", | ||
| ] | ||
| google-genai = [ | ||
| "google-genai>=1.2.0", | ||
| ] | ||
| audio = [ | ||
| "torchaudio>=2.7.1", | ||
| "soundfile>=0.13.1", | ||
| ] | ||
|
|
||
| [tool.hatch.version] | ||
| path = "src/mcpadapt/__init__.py" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.