Skip to content

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

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

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

@BeliefanX BeliefanX commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

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
@BeliefanX
BeliefanX force-pushed the feat/image-edit-tool-opt-in branch from 858c6e9 to 8be6baa Compare June 14, 2026 07:51
@BeliefanX

Copy link
Copy Markdown
Contributor Author

Closing this older standalone image_edit tool PR as obsolete: v0.17 upstream now supports image editing through the unified image_generate surface using image_url/reference_image_urls, so a separate opt-in image_edit tool is no longer needed.

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