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 (*Tool) Execute ¶
func (t *Tool) Execute(ctx context.Context, input json.RawMessage) (json.RawMessage, error)
func (*Tool) Schema ¶
func (t *Tool) Schema() json.RawMessage
Click to show internal directories.
Click to hide internal directories.