实现AgentBus自动分发SuperAgent链路
This commit is contained in:
@@ -267,6 +267,19 @@ public class MybatisSourceMessageInboxRepository implements SourceMessageInboxRe
|
||||
return inbox.getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* 读取指定 SourceMessage 的原始 payload JSON。该方法只供内部 AI 分发和排查使用,不向普通前端查询暴露。
|
||||
*/
|
||||
@Override
|
||||
public Optional<String> findPayloadJson(Long id) {
|
||||
if (id == null) {
|
||||
return Optional.empty();
|
||||
}
|
||||
SourceMessagePayloadEntity payload = payloadMapper.selectOne(Wrappers.<SourceMessagePayloadEntity>lambdaQuery()
|
||||
.eq(SourceMessagePayloadEntity::getInboxId, id));
|
||||
return Optional.ofNullable(payload).map(SourceMessagePayloadEntity::getPayloadJson);
|
||||
}
|
||||
|
||||
/**
|
||||
* 记录重复投递 payload 差异,不覆盖第一次保存的原始 payload。
|
||||
*/
|
||||
|
||||
@@ -78,6 +78,11 @@ public interface SourceMessageInboxRepository {
|
||||
*/
|
||||
Long insert(SourceMessageInboxDraft draft);
|
||||
|
||||
/**
|
||||
* 按内部 SourceMessage ID 读取原始 payload JSON,仅供受控内部重放或 AI 分发链路使用。
|
||||
*/
|
||||
Optional<String> findPayloadJson(Long id);
|
||||
|
||||
/**
|
||||
* 幂等命中但 payload 变化时,标记差异并保存安全排查摘要。
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user