mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
进行 Partner 本体对于框架的适配,以及框架层的部分调整
框架: - 调整 ActivateModel 中模型初始化设置的 initHook 权重为-1(最优先) - 为 AgentGateway 中 receive 操作提供模板方法,子类需实现发送逻辑并提供适配器 - 取消了 AgentInteractionAdapter 的单例配置 - 调整 RunningFlow 的异常处理,并在RunningFlowContext中提供错误码进行判断 - 调整模块基类 - 本体: - 新增配置加载异常,继承自Agent启动异常 - 修改 GlobalExceptionData 获取逻辑 - 移除 MessageSender 等交互接口,适配框架的交互逻辑 - 异常处理已适配 - 配置加载逻辑已适配 - Gateway 已适配 - CoreModel 已适配
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
import org.junit.jupiter.api.Test;
|
||||
import work.slhaf.demo.ability.CacheCapability;
|
||||
import work.slhaf.demo.capability.annotation.InjectCapability;
|
||||
|
||||
public class FunctionRouterTest {
|
||||
|
||||
@InjectCapability
|
||||
private CacheCapability cache;
|
||||
|
||||
@Test
|
||||
public void test(){
|
||||
cache.getUserDialogMapStr("123",111);
|
||||
}
|
||||
|
||||
}
|
||||
9
Partner-Test-Demo/src/test/java/TestA.java
Normal file
9
Partner-Test-Demo/src/test/java/TestA.java
Normal file
@@ -0,0 +1,9 @@
|
||||
public class TestA {
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
int a = 1 / 0;
|
||||
}catch (Exception ignore) {
|
||||
}
|
||||
System.out.println("111");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user