feat(design): thread image quality, count and layered output through domain
Add ImageQuality/ImageCount to AgentRequest, AgentChatRequest and Job, add OutputFormat to GeneratorTaskInputArgs, and introduce the LayeredDocument types and LayeredDocumentGenerator port for PSD output. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,8 @@ type AgentRequest struct {
|
|||||||
Mode string
|
Mode string
|
||||||
ImageModel string
|
ImageModel string
|
||||||
ImageSize string
|
ImageSize string
|
||||||
|
ImageQuality string
|
||||||
|
ImageCount int
|
||||||
Messages []AgentChatMessage
|
Messages []AgentChatMessage
|
||||||
Memory AgentMemory
|
Memory AgentMemory
|
||||||
TaskPlan AgentTaskPlan
|
TaskPlan AgentTaskPlan
|
||||||
@@ -41,6 +43,8 @@ type AgentChatRequest struct {
|
|||||||
EnableWebSearch bool
|
EnableWebSearch bool
|
||||||
ImageModel string
|
ImageModel string
|
||||||
ImageSize string
|
ImageSize string
|
||||||
|
ImageQuality string
|
||||||
|
ImageCount int
|
||||||
Mode string
|
Mode string
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,12 +67,32 @@ type GeneratorTaskInputArgs struct {
|
|||||||
AspectRatio string
|
AspectRatio string
|
||||||
Image []string
|
Image []string
|
||||||
ImageURL string
|
ImageURL string
|
||||||
|
OutputFormat string
|
||||||
Prompt string
|
Prompt string
|
||||||
Resolution string
|
Resolution string
|
||||||
SrcBox *NormalizedBox
|
SrcBox *NormalizedBox
|
||||||
DstBox *NormalizedBox
|
DstBox *NormalizedBox
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type LayeredDocumentRequest struct {
|
||||||
|
ImageURL string
|
||||||
|
Prompt string
|
||||||
|
Model string
|
||||||
|
Size string
|
||||||
|
OutputFormat string
|
||||||
|
IdempotencyKey string
|
||||||
|
}
|
||||||
|
|
||||||
|
type LayeredDocument struct {
|
||||||
|
Content string
|
||||||
|
ContentType string
|
||||||
|
Data []byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type LayeredDocumentGenerator interface {
|
||||||
|
GenerateLayeredDocument(ctx context.Context, req LayeredDocumentRequest) (LayeredDocument, error)
|
||||||
|
}
|
||||||
|
|
||||||
type GeneratorTaskSubmitRequest struct {
|
type GeneratorTaskSubmitRequest struct {
|
||||||
CID string
|
CID string
|
||||||
ProjectID string
|
ProjectID string
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ type Job struct {
|
|||||||
Mode string
|
Mode string
|
||||||
ImageModel string
|
ImageModel string
|
||||||
ImageSize string
|
ImageSize string
|
||||||
|
ImageQuality string
|
||||||
|
ImageCount int
|
||||||
TaskPlan AgentTaskPlan
|
TaskPlan AgentTaskPlan
|
||||||
EnableWebSearch bool
|
EnableWebSearch bool
|
||||||
Isolated bool
|
Isolated bool
|
||||||
|
|||||||
Reference in New Issue
Block a user