imagegen

package
v0.11.0-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Overview

Package imagegen provides text-to-image generation tools for Overkill.

Supported providers:

  • openai: OpenAI DALL-E 3
  • stability: Stability AI (Stable Diffusion)
  • replicate: Replicate (Flux Schnell, free-ish)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageGenInput

type ImageGenInput struct {
	Prompt   string `json:"prompt"`
	Provider string `json:"provider"` // "openai" | "stability" | "replicate"
	Size     string `json:"size"`     // e.g. "1024x1024", "1792x1024", "1024x1792"
	N        int    `json:"n"`        // number of images (DALL-E 3 only supports 1)
}

ImageGenInput is the JSON input for image_gen.

type ImageGenOutput

type ImageGenOutput struct {
	Images   []string `json:"images"`
	Provider string   `json:"provider"`
	Prompt   string   `json:"prompt"`
}

ImageGenOutput is the JSON output from image_gen.

type Tool

type Tool struct {
	// contains filtered or unexported fields
}

Tool implements tools.Tool for text-to-image generation.

func New

func New(cfg config.ImageGenConfig) *Tool

New creates a new image generation tool with the given config.

func (*Tool) Description

func (t *Tool) Description() string

func (*Tool) Execute

func (t *Tool) Execute(ctx context.Context, input json.RawMessage) (json.RawMessage, error)

func (*Tool) Name

func (t *Tool) Name() string

func (*Tool) Schema

func (t *Tool) Schema() json.RawMessage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL