mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-12 05:52:39 +00:00
Some checks failed
* refactor: remove CodeInterpreterTool and deprecate code execution params CodeInterpreterTool has been removed. The allow_code_execution and code_execution_mode parameters on Agent are deprecated and will be removed in v2.0. Use dedicated sandbox services (E2B, Modal, etc.) for code execution needs. Changes: - Remove CodeInterpreterTool from crewai-tools (tool, Dockerfile, tests, imports) - Remove docker dependency from crewai-tools - Deprecate allow_code_execution and code_execution_mode on Agent - get_code_execution_tools() returns empty list with deprecation warning - _validate_docker_installation() is a no-op with deprecation warning - Bedrock CodeInterpreter (AWS hosted) and OpenAI code_interpreter are NOT affected * fix: remove empty code_interpreter imports and unused stdlib imports - Remove empty `from code_interpreter_tool import ()` blocks in both crewai_tools/__init__.py and tools/__init__.py that caused SyntaxError after CodeInterpreterTool was removed - Remove unused `shutil` and `subprocess` imports from agent/core.py left over from the code execution params deprecation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: remove redundant _validate_docker_installation call and fix list type annotation - Drop the _validate_docker_installation() call inside the allow_code_execution block — it fired a second DeprecationWarning identical to the one emitted just above it, making the warning fire twice. - Annotate get_code_execution_tools() return type as list[Any] to satisfy mypy (bare `list` fails the type-arg check introduced by this branch). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * ci: retrigger * fix: update test_crew.py to remove CodeInterpreterTool references CodeInterpreterTool was removed from crewai_tools. Update tests to reflect that get_code_execution_tools() now returns an empty list. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: update tool specifications --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>