feat(ai-web): 尝试自建流程引擎
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
package com.lanyuanxiaoyao.service.ai.web.engine;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流程图中的边
|
||||||
|
*
|
||||||
|
* @author lanyuanxiaoyao
|
||||||
|
* @version 20250630
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
|
||||||
|
public class FlowEdge {
|
||||||
|
@EqualsAndHashCode.Include
|
||||||
|
private String id;
|
||||||
|
private String source;
|
||||||
|
private String target;
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package com.lanyuanxiaoyao.service.ai.web.engine;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流程执行器
|
||||||
|
*
|
||||||
|
* @author lanyuanxiaoyao
|
||||||
|
* @version 20250630
|
||||||
|
*/
|
||||||
|
public class FlowExecutor {
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
package com.lanyuanxiaoyao.service.ai.web.engine;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.eclipse.collections.api.set.ImmutableSet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流程图中的节点
|
||||||
|
*
|
||||||
|
* @author lanyuanxiaoyao
|
||||||
|
* @version 20250630
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
|
||||||
|
public class FlowNode {
|
||||||
|
@EqualsAndHashCode.Include
|
||||||
|
private String id;
|
||||||
|
private ImmutableSet<String> sourceHandlers;
|
||||||
|
private ImmutableSet<String> targetHandlers;
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package com.lanyuanxiaoyao.service.ai.web.engine.store;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据存储
|
||||||
|
*
|
||||||
|
* @author lanyuanxiaoyao
|
||||||
|
* @version 20250630
|
||||||
|
*/
|
||||||
|
public interface FlowStore {
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user