Class NotifyAndWaitGate
java.lang.Object
io.agentscope.harness.agent.skill.curator.NotifyAndWaitGate
- All Implemented Interfaces:
SkillPromotionGate
Multi-replica gate. On
review writes a .review_request.json file next to the
draft skill (so the file is visible to whichever replica gets the eventual approval call) and
fires every configured NotificationSink concurrently. Always returns
SkillPromotionGate.PromotionDecision.Defer — the actual approval comes from the
external system calling HarnessAgent.promoteSkill(...) on any replica.
Sinks are best-effort. A failed sink is logged but does not block the gate or the agent.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.agentscope.harness.agent.skill.curator.SkillPromotionGate
SkillPromotionGate.PromotionDecision -
Constructor Summary
ConstructorsConstructorDescriptionNotifyAndWaitGate(List<NotificationSink> sinks, WorkspaceManager workspaceManager, String draftsDir) NotifyAndWaitGate(List<NotificationSink> sinks, WorkspaceManager workspaceManager, String draftsDir, Duration retryAfter) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<SkillPromotionGate.PromotionDecision>review(SkillCandidate candidate, io.agentscope.core.agent.RuntimeContext ctx) Review a draft.
-
Constructor Details
-
NotifyAndWaitGate
public NotifyAndWaitGate(List<NotificationSink> sinks, WorkspaceManager workspaceManager, String draftsDir) -
NotifyAndWaitGate
public NotifyAndWaitGate(List<NotificationSink> sinks, WorkspaceManager workspaceManager, String draftsDir, Duration retryAfter)
-
-
Method Details
-
review
public reactor.core.publisher.Mono<SkillPromotionGate.PromotionDecision> review(SkillCandidate candidate, io.agentscope.core.agent.RuntimeContext ctx) Description copied from interface:SkillPromotionGateReview a draft. Implementations should perform whatever side effects they need (notification, prompt, etc.) and return aSkillPromotionGate.PromotionDecision.- Specified by:
reviewin interfaceSkillPromotionGate
-