refactor: make AI workflows agent-centric

This commit is contained in:
mlogclub
2026-06-22 10:08:51 +08:00
parent 14f50e064f
commit 32ab43e7c2
18 changed files with 436 additions and 400 deletions
@@ -5,11 +5,12 @@ import "agent-desk/internal/ai/workflow/dsl"
type CreateAIWorkflowRequest struct {
Name string `json:"name"`
Description string `json:"description"`
OwnerType string `json:"ownerType"`
OwnerID int64 `json:"ownerId"`
AgentID int64 `json:"agentId"`
Definition dsl.Definition `json:"definition"`
}
type SaveAIWorkflowRequest = CreateAIWorkflowRequest
type UpdateAIWorkflowRequest struct {
ID int64 `json:"id"`
CreateAIWorkflowRequest
@@ -25,6 +26,7 @@ type ValidateAIWorkflowRequest struct {
type PublishAIWorkflowRequest struct {
WorkflowID int64 `json:"workflowId"`
AgentID int64 `json:"agentId"`
Definition dsl.Definition `json:"definition"`
}