The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(image_gen): document the supports_upscale and creative_controls capability keys
kshitijk4poor1c32b18378ea
diff --git a/agent/image_gen_provider.py b/agent/image_gen_provider.pyindex 250c825ad03..ce7523006c3 100644--- a/agent/image_gen_provider.py+++ b/agent/image_gen_provider.py@@ -33,9 +33,12 @@ class ImageGenProvider(CatalogProviderBase):``speed`` / ``strengths`` / ``price`` for the picker."""def capabilities(self) -> Dict[str, Any]:- """``modalities`` (``"text"`` and/or ``"image"``) and ``max_reference_images``.- Surfaced in the dynamic tool schema so the model knows when ``image_url`` is- honored; the text-only default keeps non-overriding providers backward compatible."""+ """``modalities`` (``"text"`` and/or ``"image"``) and ``max_reference_images``; optionally+ ``supports_upscale`` (bool) and ``creative_controls`` (names from the tool's creative-control+ vocabulary: ``creativity``, ``intensity``, ``complexity``, ``movement``). Surfaced in the+ dynamic tool schema so the model knows when ``image_url`` / ``upscale`` / each control is+ honored, and only declared controls are passed to :meth:`generate`; the text-only default+ keeps non-overriding providers backward compatible."""return {"modalities": ["text"], "max_reference_images": 0}@abc.abstractmethoddiff --git a/website/docs/developer-guide/image-gen-provider-plugin.md b/website/docs/developer-guide/image-gen-provider-plugin.mdindex 82eeaeeb6ba..47684b8cbda 100644--- a/website/docs/developer-guide/image-gen-provider-plugin.md+++ b/website/docs/developer-guide/image-gen-provider-plugin.md@@ -118,6 +118,10 @@ class MyBackendImageGenProvider(ImageGenProvider):# The tool layer surfaces this in the dynamic schema so the model# knows when `image_url` is honored. Default (if you omit this) is# text-only: {"modalities": ["text"], "max_reference_images": 0}.+ # Optional keys: "supports_upscale" (bool) adds an `upscale` param, and+ # "creative_controls" lists the controls you honor from `creativity`,+ # `intensity`, `complexity`, `movement`. Only declared controls appear+ # in the schema and reach generate() as kwargs.return {"modalities": ["text", "image"], "max_reference_images": 4}def generate(