2025-07-11 14:40:19 +08:00
|
|
|
import Http from '@/api';
|
|
|
|
|
// 获取聊天智能体
|
|
|
|
|
export const getChatAgent = (id: number) => {
|
|
|
|
|
return Http.get(`/v1/agent/getChatAgent/${id}`);
|
|
|
|
|
};
|
2025-07-15 15:16:03 +08:00
|
|
|
|
|
|
|
|
// 获取历史聊天
|
|
|
|
|
export const getHistoryChat = (params: any) => {
|
|
|
|
|
return Http.get(`/v1/agent/getConversations`, { params });
|
|
|
|
|
};
|
|
|
|
|
// 获取智能体分类
|
|
|
|
|
export const getCategoriesMenus = () => {
|
|
|
|
|
return Http.get(`/v1/agent/getCategoriesMenus`);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const getAgentList = () => {
|
|
|
|
|
return Http.get(`/v1/agent/getAgentList`);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 获取工作流详情
|
|
|
|
|
export const getWorkFlowInfo = (id: number) => {
|
|
|
|
|
return Http.get(`/v1/agent/getWorkFlowInfo/${id}`);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 执行工作流
|
|
|
|
|
export const executeWorkFlow = (params: any) => {
|
|
|
|
|
return Http.post(`/v1/agent/executeWorkFlow`, params);
|
|
|
|
|
};
|