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:
mlogclub
2026-06-23 23:22:18 +08:00
parent 1440c3c4c3
commit 6122a1d881
23 changed files with 126 additions and 2026 deletions
-46
View File
@@ -511,40 +511,6 @@ export type MCPToolCallResult = {
structuredContent?: unknown
}
export type AgentRunLog = {
id: number
conversationId: number
messageId: number
aiAgentId: number
aiConfigId: number
userMessage: string
plannedAction: string
plannedSkillId: number
plannedSkillName: string
skillRouteTrace: string
toolSearchTrace: string
graphToolTrace: string
graphToolCode: string
recommendedAction: string
riskLevel: string
ticketDraftReady: boolean
handoffReason: string
plannedToolCode: string
planReason: string
interruptType: string
resumeSource: string
hitlStatus: string
hitlStatusName: string
hitlSummary: string
finalAction: string
finalStatus: string
replyText: string
errorMessage: string
latencyMs: number
traceData: string
createdAt: string
}
export type AIWorkflowNodeRun = {
id: number
workflowRunId: number
@@ -1130,18 +1096,6 @@ export function updateSkillDefinition(payload: UpdateSkillDefinitionPayload) {
})
}
export function fetchAgentRunLogs(
query?: Record<string, string | number | undefined>
) {
return request<PageResult<AgentRunLog>>(
`/api/dashboard/agent-run-log/list${toQueryString(query)}`
)
}
export function fetchAgentRunLog(id: number) {
return request<AgentRunLog>(`/api/dashboard/agent-run-log/${id}`)
}
export function fetchAIWorkflowRuns(
query?: Record<string, string | number | undefined>
) {