feat: add workflow version fetching functionality and enhance AIAgentConfigWorkbench display

This commit is contained in:
mlogclub
2026-06-22 22:39:49 +08:00
parent 9b76ef4bd0
commit 3e68fc3344
3 changed files with 100 additions and 31 deletions
+6
View File
@@ -815,6 +815,12 @@ export function fetchAIWorkflowNodeSpecs() {
return request<AIWorkflowNodeSpec[]>("/api/dashboard/ai-workflow/node-spec/list")
}
export function fetchAIWorkflowVersions(query?: Record<string, string | number | undefined>) {
return request<PageResult<AIWorkflowVersion>>(
`/api/dashboard/ai-workflow/version/list${toQueryString(query)}`
)
}
export function validateAIWorkflow(definition: AIWorkflowDefinition) {
return request<AIWorkflowValidationResult>("/api/dashboard/ai-agent/workflow/validate", {
method: "POST",