feat: 接入 Agent 历史记录

- src/services/devopsApi.ts: 增加真实 Agent 调用历史列表接口
- src/components/GlobalAgentDrawer.vue: 抽屉打开时加载持久化历史,并展示用途、状态、问题和上下文摘要
This commit is contained in:
湛兮
2026-06-12 06:04:53 +08:00
parent a2eb83051c
commit da3bbb09e1
2 changed files with 75 additions and 2 deletions
+6
View File
@@ -503,6 +503,12 @@ export const devopsApi = {
return data
},
async listAgentInvocations(): Promise<AgentInvocation[]> {
const { data } = await http.get<AgentInvocation[]>('/agent/invocations')
lastDataSource = 'backend'
return data
},
async getSettings(): Promise<SystemSetting[]> {
const [health, integrationConfig] = await Promise.all([
fetchHealth(),