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
-2
View File
@@ -58,8 +58,6 @@ type CreateAIAgentRequest struct {
SkillIDs []int64 `json:"skillIds"`
DirectTools []AIAgentMCPToolRequest `json:"directTools"`
GraphTools []string `json:"graphTools"`
RuntimeMode enums.AIAgentRuntimeMode `json:"runtimeMode"`
WorkflowVersionID int64 `json:"workflowVersionId"`
}
type UpdateAIAgentRequest struct {
@@ -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"`
}
@@ -11,8 +11,7 @@ type AIWorkflowResponse struct {
ID int64 `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
OwnerType string `json:"ownerType"`
OwnerID int64 `json:"ownerId"`
AgentID int64 `json:"agentId"`
Status enums.Status `json:"status"`
DraftDefinition dsl.Definition `json:"draftDefinition"`
PublishedVersionID int64 `json:"publishedVersionId"`