RejectAllGate
public class RejectAllGate implements SkillPromotionGate
源码Source
io/agentscope/harness/agent/skill/curator/RejectAllGate.java:29–49拒绝所有 Gate,让智能体以受控方式调用外部能力。位于 io.agentscope.harness.agent.skill.curator 包,实现 SkillPromotionGate。核心成员包括 review、RejectAllGate。
Always returns SkillPromotionGate.PromotionDecision.Defer — promotion can only
happen via an explicit HarnessAgent.promoteSkill(...) call from outside the gate.
This is the most paranoid default: the agent's own actions can never put a skill on the live skills root by themselves. Suitable when SRE wants to keep promotion strictly manual.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public RejectAllGate() | 初始化 `RejectAllGate` 实例。 Creates a new instance. |
public RejectAllGate(Duration retryAfter) | 初始化 `RejectAllGate` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Mono<PromotionDecision> review(SkillCandidate candidate, RuntimeContext ctx) | 执行 `review` 方法。 Performs the review operation. |
构造器详情Constructor Detail
RejectAllGate
public RejectAllGate()
初始化 RejectAllGate 实例。
Creates a new instance.
源码Source
io/agentscope/harness/agent/skill/curator/RejectAllGate.java:33–35RejectAllGate
public RejectAllGate(Duration retryAfter)
初始化 RejectAllGate 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
retryAfter | Duration | 重试之后(类型 `Duration`)。The retry after. |
源码Source
io/agentscope/harness/agent/skill/curator/RejectAllGate.java:37–39方法详情Method Detail
review
public Mono<PromotionDecision> review(SkillCandidate candidate, RuntimeContext ctx)
执行 review 方法。
Performs the review operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
candidate | SkillCandidate | candidate(类型 `SkillCandidate`)。The candidate. |
ctx | RuntimeContext | 运行时上下文(类型 `RuntimeContext`)。The ctx. |
Mono<PromotionDecision>返回Mono。Returns mono.
源码Source
io/agentscope/harness/agent/skill/curator/RejectAllGate.java:41–48