build / build-push (push) Successful in 40s
- com.yunhai.agent,端口 8093,context-path /agent,制品 target/agent.jar;与 NoticeService 同构 - CAS 单点登录 + 三层角色权限(学生/教师/管理员/访客)+ 会话与工具调用审计落库 - DeepSeek 大模型编排 + 7 个业务模块工具(请假/公告/宿舍/活动/作业/资源库/教师发展) - 浏览器代执行协议(服务端挂起 → 前端用登录态代调 → toolResult 续跑)+ 调用失败深链兜底 - 登出修复:服务端真正 session.invalidate() + 前端两步登出 + logout-guard - 保留 projman 注入的 .gitea/workflows/build.yml 与 docker/Dockerfile;docker/application-prod.yml、run-app.sh 随工程入库
35 lines
870 B
Java
35 lines
870 B
Java
package com.yunhai.agent.service;
|
|
|
|
import lombok.Data;
|
|
|
|
/**
|
|
* 编排过程中的一个阶段事件(用于 SSE 推送给前端做「正在思考 / 正在调用 XX」的实时反馈)。
|
|
*/
|
|
@Data
|
|
public class AgentEvent {
|
|
|
|
/** thinking / tool_call / tool_result / message / done / error */
|
|
private String type;
|
|
|
|
/** 事件文本(展示用) */
|
|
private String text;
|
|
|
|
/** 结构化负载(工具名、参数、结果等) */
|
|
private Object payload;
|
|
|
|
public static AgentEvent of(String type, String text) {
|
|
AgentEvent e = new AgentEvent();
|
|
e.type = type;
|
|
e.text = text;
|
|
return e;
|
|
}
|
|
|
|
public static AgentEvent of(String type, String text, Object payload) {
|
|
AgentEvent e = new AgentEvent();
|
|
e.type = type;
|
|
e.text = text;
|
|
e.payload = payload;
|
|
return e;
|
|
}
|
|
}
|