Class ImageGenerationConfig

java.lang.Object
com.github.copilot.rpc.ImageGenerationConfig

@CopilotExperimental public class ImageGenerationConfig extends Object
Experimental. This API may change or be removed in a future release. Opt in to image generation through an authorized Copilot image model. Omission disables on create/cold resume and preserves resident resume state. Not persisted: re-supply after runtime restart. Policy, permissions, offline mode, and tool filters still apply. BYOK image generation is not supported.
  • Constructor Details

    • ImageGenerationConfig

      public ImageGenerationConfig()
  • Method Details

    • getEnabled

      public Boolean getEnabled()
      Gets the image generation opt-in.
      Returns:
      true to opt in, false to disable, or null when unset
    • setEnabled

      public ImageGenerationConfig setEnabled(Boolean enabled)
      Enables or disables image generation.
      Parameters:
      enabled - the opt-in, or null when unset
      Returns:
      this config for method chaining