8000 Fix Agent.from_hub for older smolagents exports by albertvillanova · Pull Request #989 · huggingface/smolagents · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix Agent.from_hub for older smolagents exports #989

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
merged 3 commits into from
Mar 15, 2025

Conversation

albertvillanova
Copy link
Member
@albertvillanova albertvillanova commented Mar 15, 2025

Fix Agent.from_hub for agents exported in previous smolagents versions.

Currently they raise:

KeyError: 'executor_type'

The functionality to share agents to the Hub was introduced in smolagents-1.9.0:

However, agents exported with smolagents-1.9.0 are no longer importable with smolagents-1.10.0 after:

This PR allows importing agents exported either with v1.9 or v1.10.

Fix #978.

@albertvillanova albertvillanova changed the title Fix Agent.from_hub for agents exported in previous smolagents versions Fix Agent.from_hub for older smolagents exports Mar 15, 2025
@albertvillanova albertvillanova changed the title Fix Agent.from_hub for older smolagents exports Fix Agent.from_hub for older smolagents exports Mar 15, 2025
@albertvillanova albertvillanova merged commit 8430152 into huggingface:main Mar 15, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] executor_type Key Error when loading agents from_hub pushed with older smolagents versions
2 participants
0