2025-07-11 14:40:19 +08:00
|
|
|
import Http from '@/api';
|
|
|
|
|
// 获取聊天智能体
|
|
|
|
|
export const getChatAgent = (id: number) => {
|
2025-07-31 18:54:59 +08:00
|
|
|
console.log('param.id', id);
|
2025-07-11 14:40:19 +08:00
|
|
|
return Http.get(`/v1/agent/getChatAgent/${id}`);
|
|
|
|
|
};
|
2025-07-15 15:16:03 +08:00
|
|
|
|
|
|
|
|
// 获取历史聊天
|
|
|
|
|
export const getHistoryChat = (params: any) => {
|
2025-07-16 18:49:28 +08:00
|
|
|
return Http.get(`/v1/agent/getConversations`, params);
|
2025-07-15 15:16:03 +08:00
|
|
|
};
|
|
|
|
|
// 获取智能体分类
|
|
|
|
|
export const getCategoriesMenus = () => {
|
|
|
|
|
return Http.get(`/v1/agent/getCategoriesMenus`);
|
|
|
|
|
};
|
|
|
|
|
|
2025-07-16 18:49:28 +08:00
|
|
|
export const getAgentList = (params: any) => {
|
|
|
|
|
return Http.get(`/v1/agent/getAgentList`, params);
|
2025-07-15 15:16:03 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 获取工作流详情
|
|
|
|
|
export const getWorkFlowInfo = (id: number) => {
|
|
|
|
|
return Http.get(`/v1/agent/getWorkFlowInfo/${id}`);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 执行工作流
|
|
|
|
|
export const executeWorkFlow = (params: any) => {
|
|
|
|
|
return Http.post(`/v1/agent/executeWorkFlow`, params);
|
|
|
|
|
};
|
2025-07-16 18:49:28 +08:00
|
|
|
|
|
|
|
|
export const delAgentMessage = (params: any) => {
|
|
|
|
|
return Http.post(`/v1/agent/delAgentMessage`, params);
|
|
|
|
|
};
|
2025-07-31 14:36:45 +08:00
|
|
|
// 删除工作流历史记录
|
2025-07-31 18:54:59 +08:00
|
|
|
export const delWorkflowHistoryApi = (id: number) => {
|
2025-07-31 14:36:45 +08:00
|
|
|
return Http.post(`/v1/agent/delWorkflowHistory/${id}`);
|
|
|
|
|
};
|
2025-07-31 16:54:04 +08:00
|
|
|
|
|
|
|
|
//获取异步执行工作流任务
|
2025-07-31 18:54:59 +08:00
|
|
|
export const getSyncWorkflowTaskApi = (params: any) => {
|
|
|
|
|
return Http.get(`/v1/agent/getSyncWorkflowTask`, params);
|
|
|
|
|
};
|
|
|
|
|
//置顶
|
|
|
|
|
export const topWorkflowHistoryApi = (id: number) => {
|
|
|
|
|
return Http.post(`/v1/agent/topWorkflowHistory/${id}`);
|
|
|
|
|
};
|
|
|
|
|
//取消指定
|
|
|
|
|
export const cancelTopWorkflowHistoryApi = (id: number) => {
|
|
|
|
|
return Http.post(`/v1/agent/cancelTopWorkflowHistory/${id}`);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const getWorkflowHistoryListApi = (param: any) => {
|
|
|
|
|
return Http.get(`/v1/agent/getWorkflowHistoryList`, param);
|
2025-07-31 16:54:04 +08:00
|
|
|
};
|