Refactor AIAgent runtime handling and remove unused fields
This commit is contained in:
@@ -91,8 +91,6 @@ type AIAgentResponse struct {
|
||||
Skills []AIAgentSkillResponse `json:"skills"`
|
||||
DirectTools []AIAgentMCPToolResponse `json:"directTools"`
|
||||
GraphTools []string `json:"graphTools"`
|
||||
RuntimeMode enums.AIAgentRuntimeMode `json:"runtimeMode"`
|
||||
RuntimeModeName string `json:"runtimeModeName"`
|
||||
WorkflowVersionID int64 `json:"workflowVersionId"`
|
||||
SortNo int `json:"sortNo"`
|
||||
CreatedAt string `json:"createdAt"`
|
||||
|
||||
@@ -31,24 +31,3 @@ var aiModelTypeLabelMap = map[AIModelType]string{
|
||||
func GetAIModelTypeLabel(modelType AIModelType) string {
|
||||
return aiModelTypeLabelMap[modelType]
|
||||
}
|
||||
|
||||
type AIAgentRuntimeMode int
|
||||
|
||||
const (
|
||||
AIAgentRuntimeModeBuiltinGraph AIAgentRuntimeMode = 1
|
||||
AIAgentRuntimeModeWorkflow AIAgentRuntimeMode = 2
|
||||
)
|
||||
|
||||
var AIAgentRuntimeModeValues = []AIAgentRuntimeMode{
|
||||
AIAgentRuntimeModeBuiltinGraph,
|
||||
AIAgentRuntimeModeWorkflow,
|
||||
}
|
||||
|
||||
var aiAgentRuntimeModeLabelMap = map[AIAgentRuntimeMode]string{
|
||||
AIAgentRuntimeModeBuiltinGraph: "内置 Graph",
|
||||
AIAgentRuntimeModeWorkflow: "会话流程",
|
||||
}
|
||||
|
||||
func GetAIAgentRuntimeModeLabel(mode AIAgentRuntimeMode) string {
|
||||
return aiAgentRuntimeModeLabelMap[mode]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user