refactor: remove AgentRunLog related code and components
- Deleted AgentRunLogResponse struct from skill_response.go. - Removed agent_run_log_repository.go and agent_run_log_service.go files. - Eliminated AgentRunLogDetailDialog component and its related logic from the dashboard. - Removed agent run log fetching functions from admin API. - Updated navigation and localization files to remove references to agent run logs.
This commit is contained in:
@@ -57,7 +57,6 @@ var Models = []any{
|
||||
&KnowledgeFeedback{},
|
||||
&SkillDefinition{},
|
||||
&SkillRunLog{},
|
||||
&AgentRunLog{},
|
||||
&AIWorkflow{},
|
||||
&AIWorkflowVersion{},
|
||||
&AIWorkflowRun{},
|
||||
@@ -912,36 +911,6 @@ type SkillRunLog struct {
|
||||
CreatedAt time.Time `gorm:"type:datetime;not null;index"` // CreatedAt 为运行日志创建时间。
|
||||
}
|
||||
|
||||
// AgentRunLog 表示一次客服 Agent 自动运行的总链路日志。
|
||||
type AgentRunLog struct {
|
||||
ID int64 `gorm:"primaryKey;autoIncrement"`
|
||||
ConversationID int64 `gorm:"type:bigint;not null;default:0;index"`
|
||||
MessageID int64 `gorm:"type:bigint;not null;default:0;index"`
|
||||
RequestID string `gorm:"type:varchar(128);not null;default:'';index"`
|
||||
AIAgentID int64 `gorm:"type:bigint;not null;default:0;index"`
|
||||
AIConfigID int64 `gorm:"type:bigint;not null;default:0;index"`
|
||||
UserMessage string `gorm:"type:longtext"`
|
||||
PlannedAction string `gorm:"type:varchar(30);not null;default:'';index"`
|
||||
PlannedSkillID int64 `gorm:"type:bigint;not null;default:0;index"`
|
||||
PlannedSkillName string `gorm:"type:varchar(100);not null;default:''"`
|
||||
SkillRouteTrace string `gorm:"type:text"`
|
||||
ToolSearchTrace string `gorm:"type:text"`
|
||||
GraphToolTrace string `gorm:"type:text"`
|
||||
GraphToolCode string `gorm:"type:varchar(200);not null;default:'';index"`
|
||||
HandoffReason string `gorm:"type:varchar(500);not null;default:''"`
|
||||
PlannedToolCode string `gorm:"type:varchar(200);not null;default:'';index"`
|
||||
PlanReason string `gorm:"type:varchar(500);not null;default:''"`
|
||||
InterruptType string `gorm:"type:varchar(50);not null;default:'';index"`
|
||||
ResumeSource string `gorm:"type:varchar(50);not null;default:'';index"`
|
||||
FinalAction string `gorm:"type:varchar(30);not null;default:'';index"`
|
||||
FinalStatus string `gorm:"type:varchar(30);not null;default:'';index"`
|
||||
ReplyText string `gorm:"type:longtext"`
|
||||
ErrorMessage string `gorm:"type:text"`
|
||||
LatencyMs int64 `gorm:"type:bigint;not null;default:0"`
|
||||
TraceData string `gorm:"type:text"`
|
||||
CreatedAt time.Time `gorm:"type:datetime;not null;index"`
|
||||
}
|
||||
|
||||
// ConversationInterrupt 表示会话级待恢复中断记录。
|
||||
type ConversationInterrupt struct {
|
||||
ID int64 `gorm:"primaryKey;autoIncrement"`
|
||||
|
||||
Reference in New Issue
Block a user