feat: 归档 XL10 异步工具业务编译层
- 将 AgentDefinitionCompiler 升级为 AgentRuntimeCompiler - 接入 Workflow 和 Plugin 的同步/异步工具编译与 Redis 任务态 - 增加异步执行配置开关、聊天时间线聚合和后端测试
This commit is contained in:
@@ -67,6 +67,11 @@ public class AgentRuntimeProperties {
|
||||
*/
|
||||
private Duration lockRenewInterval = Duration.ofMinutes(1);
|
||||
|
||||
/**
|
||||
* Agent 异步工具任务 Redis 运行态 TTL。
|
||||
*/
|
||||
private Duration asyncToolTaskTtl = Duration.ofHours(24);
|
||||
|
||||
/**
|
||||
* 获取 Redis 热态 session 缓存 TTL。
|
||||
*
|
||||
@@ -258,6 +263,24 @@ public class AgentRuntimeProperties {
|
||||
this.lockRenewInterval = lockRenewInterval == null ? Duration.ofMinutes(1) : lockRenewInterval;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 Agent 异步工具任务 Redis 运行态 TTL。
|
||||
*
|
||||
* @return 任务 TTL
|
||||
*/
|
||||
public Duration getAsyncToolTaskTtl() {
|
||||
return asyncToolTaskTtl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置 Agent 异步工具任务 Redis 运行态 TTL。
|
||||
*
|
||||
* @param asyncToolTaskTtl 任务 TTL
|
||||
*/
|
||||
public void setAsyncToolTaskTtl(Duration asyncToolTaskTtl) {
|
||||
this.asyncToolTaskTtl = asyncToolTaskTtl == null ? Duration.ofHours(24) : asyncToolTaskTtl;
|
||||
}
|
||||
|
||||
private static String defaultInstanceId() {
|
||||
String envInstanceId = System.getenv("EASYFLOW_INSTANCE_ID");
|
||||
if (StringUtils.hasText(envInstanceId)) {
|
||||
|
||||
Reference in New Issue
Block a user