Files
ai-agent/internal/pkg/dto/request/ai_workflow_request.go
T

36 lines
846 B
Go
Raw Normal View History

2026-06-22 00:11:26 +08:00
package request
import "agent-desk/internal/ai/workflow/dsl"
type CreateAIWorkflowRequest struct {
Name string `json:"name"`
Description string `json:"description"`
2026-06-22 10:08:51 +08:00
AgentID int64 `json:"agentId"`
2026-06-22 00:11:26 +08:00
Definition dsl.Definition `json:"definition"`
}
2026-06-22 10:08:51 +08:00
type SaveAIWorkflowRequest = CreateAIWorkflowRequest
2026-06-22 00:11:26 +08:00
type UpdateAIWorkflowRequest struct {
ID int64 `json:"id"`
CreateAIWorkflowRequest
}
type DeleteAIWorkflowRequest struct {
ID int64 `json:"id"`
}
type ValidateAIWorkflowRequest struct {
Definition dsl.Definition `json:"definition"`
}
type PublishAIWorkflowRequest struct {
WorkflowID int64 `json:"workflowId"`
2026-06-22 10:08:51 +08:00
AgentID int64 `json:"agentId"`
2026-06-22 00:11:26 +08:00
Definition dsl.Definition `json:"definition"`
}
type AIWorkflowVersionListRequest struct {
WorkflowID int64 `json:"workflowId"`
}