Skip to content

Support custom Python code executor in CodeAgent - #1707

Merged
aymeric-roucher merged 2 commits into
huggingface:mainfrom
albertvillanova:fu-1705
Oct 10, 2025
Merged

aymeric-roucher merged 2 commits into
huggingface:mainfrom
albertvillanova:fu-1705

Conversation

@albertvillanova

Copy link
Copy Markdown
Member

Support custom Python code executor in CodeAgent.

This PR adds the executor param to CodeAgent class to allow users to provide custom executor instead of being limited to the hardcoded defaults depending on executor_type.

Follow-up to:

@aymeric-roucher
aymeric-roucher merged commit aad599a into huggingface:main Oct 10, 2025
2 of 3 checks passed
aymeric-roucher added a commit that referenced this pull request Oct 10, 2025
maxwellfet928 added a commit to maxwellfet928/smolagents that referenced this pull request Jun 8, 2026
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.

2 participants