refactor: make AI workflows agent-centric
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user