feat: add fallback mode for AI agents and update knowledge base handling

- Introduced AIAgentFallbackMode with options for NoAnswer and SuggestRetry.
- Updated AI agent edit component to include fallback mode selection.
- Modified API types and payloads to accommodate fallback mode.
- Removed deprecated KnowledgeFallbackMode and related logic from knowledge base.
- Adjusted knowledge retrieval and response handling to utilize new fallback logic.
- Updated tests to reflect changes in fallback mode handling for AI agents.
This commit is contained in:
mlogclub
2026-04-18 13:36:44 +08:00
parent d9c4b669b2
commit c84870b968
25 changed files with 497 additions and 139 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ import (
const (
enumsPkgName = "enums"
enumsDir = "internal/pkg/enums"
outputPath = "web/lib/generated/enums.ts"
outputPath = "dashboard/lib/generated/enums.ts"
)
type enumValueType string