ci-platforms / darwin amd64 smoke (push) Skipped
ci / build (amd64, linux, ubuntu-24.04) (push) Failing after 15m28s
ci / release (push) Skipped
ci-platforms / windows amd64 smoke (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
ci / checks (push) Successful in 7m47s
15 lines
390 B
Go
15 lines
390 B
Go
package context
|
|
|
|
import "context"
|
|
|
|
// An adapter must decline a request it cannot fulfil within MaxCents; references are project PNGs explicitly selected by the user or agent.
|
|
type ImageGeneration struct {
|
|
Prompt string
|
|
Count, MaxCents int
|
|
References [][]byte
|
|
}
|
|
type ImageGenerator interface {
|
|
Name() string
|
|
Generate(context.Context, ImageGeneration) ([][]byte, error)
|
|
}
|