feat(agent): 新增智能体应用功能

- 添加智能体列表页面和相关API
- 实现聊天功能,包括历史对话和当前对话
- 新增工作流功能,包括表单提交和结果展示- 优化路由配置,增加智能体相关路由
- 添加全局常量和枚举,用于智能体类型区分
This commit is contained in:
林志军
2025-07-16 18:49:28 +08:00
parent 616665d219
commit b3af007dd2
15 changed files with 412 additions and 182 deletions

View File

@ -6,15 +6,15 @@ export const getChatAgent = (id: number) => {
// 获取历史聊天
export const getHistoryChat = (params: any) => {
return Http.get(`/v1/agent/getConversations`, { params });
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 getAgentList = (params: any) => {
return Http.get(`/v1/agent/getAgentList`, params);
};
// 获取工作流详情
@ -26,3 +26,7 @@ export const getWorkFlowInfo = (id: number) => {
export const executeWorkFlow = (params: any) => {
return Http.post(`/v1/agent/executeWorkFlow`, params);
};
export const delAgentMessage = (params: any) => {
return Http.post(`/v1/agent/delAgentMessage`, params);
};