Skip to content

feat(image-gen): add opt-in image_edit tool#40498

Open
BeliefanX wants to merge 1 commit into
NousResearch:mainfrom
BeliefanX:feat/image-edit-tool-opt-in
Open

feat(image-gen): add opt-in image_edit tool#40498
BeliefanX wants to merge 1 commit into
NousResearch:mainfrom
BeliefanX:feat/image-edit-tool-opt-in

Conversation

@BeliefanX
Copy link
Copy Markdown
Contributor

@BeliefanX BeliefanX commented Jun 6, 2026

Summary

  • Adds an opt-in image_edit tool under the existing image_gen toolset.
  • Dispatches to the configured image provider only when it advertises edit support and exposes edit().
  • Preserves ordered multi-image inputs across images, reference_images, and references; duplicates are intentionally preserved.

Relationship

Testing

  • venv/bin/python -m py_compile tools/image_edit_tool.py tests/tools/test_image_edit_tool.py acp_adapter/tools.py model_tools.py tests/acp/test_tools.py toolsets.py
  • venv/bin/python -m pytest tests/tools/test_image_edit_tool.py tests/acp/test_tools.py -q -o 'addopts=' — 84 passed
  • venv/bin/python -m pytest tests/tools/test_registry.py tests/test_model_tools.py -q -o 'addopts=' — 56 passed
  • venv/bin/python -m ruff check tools/image_edit_tool.py tests/tools/test_image_edit_tool.py acp_adapter/tools.py tests/acp/test_tools.py model_tools.py toolsets.py
  • git diff --check

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have tool/vision Vision analysis and image generation comp/tools Tool registry, model_tools, toolsets labels Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tools Tool registry, model_tools, toolsets P3 Low — cosmetic, nice to have tool/vision Vision analysis and image generation type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants