AS AgentScopeAPI 手册 / API Reference

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–35

RejectAllGate

public RejectAllGate(Duration retryAfter)

初始化 RejectAllGate 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
retryAfterDuration重试之后(类型 `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
candidateSkillCandidatecandidate(类型 `SkillCandidate`)。The candidate.
ctxRuntimeContext运行时上下文(类型 `RuntimeContext`)。The ctx.
返回Returns Mono<PromotionDecision>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/skill/curator/RejectAllGate.java:41–48
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.