Merge remote-tracking branch 'origin/main' into feature/v1.2灵机空间-内容上传审核_rxd
# Conflicts: # pnpm-lock.yaml # src/components/_base/navbar/index.vue # src/components/text-over-tips/index.vue # src/layouts/Basic.vue # src/layouts/Page.vue # src/main.ts # src/router/constants.ts # src/router/index.ts # src/router/typeings.d.ts # src/utils/tools.ts
This commit is contained in:
54
src/api/all/agent.ts
Normal file
54
src/api/all/agent.ts
Normal file
@ -0,0 +1,54 @@
|
||||
import Http from '@/api';
|
||||
// 获取聊天智能体
|
||||
export const getChatAgent = (id: number) => {
|
||||
console.log('param.id', id);
|
||||
return Http.get(`/v1/agent/getChatAgent/${id}`);
|
||||
};
|
||||
|
||||
// 获取历史聊天
|
||||
export const getHistoryChat = (params: any) => {
|
||||
return Http.get(`/v1/agent/getConversations`, params);
|
||||
};
|
||||
// 获取智能体分类
|
||||
export const getCategoriesMenus = () => {
|
||||
return Http.get(`/v1/agent/getCategoriesMenus`);
|
||||
};
|
||||
|
||||
export const getAgentList = (params: any) => {
|
||||
return Http.get(`/v1/agent/getAgentList`, params);
|
||||
};
|
||||
|
||||
// 获取工作流详情
|
||||
export const getWorkFlowInfo = (id: number) => {
|
||||
return Http.get(`/v1/agent/getWorkFlowInfo/${id}`);
|
||||
};
|
||||
|
||||
// 执行工作流
|
||||
export const executeWorkFlow = (params: any) => {
|
||||
return Http.post(`/v1/agent/executeWorkFlow`, params);
|
||||
};
|
||||
|
||||
export const delAgentMessage = (params: any) => {
|
||||
return Http.post(`/v1/agent/delAgentMessage`, params);
|
||||
};
|
||||
// 删除工作流历史记录
|
||||
export const delWorkflowHistoryApi = (id: number) => {
|
||||
return Http.post(`/v1/agent/delWorkflowHistory/${id}`);
|
||||
};
|
||||
|
||||
//获取异步执行工作流任务
|
||||
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);
|
||||
};
|
||||
Reference in New Issue
Block a user