AS AgentScopeAPI 手册 / API Reference

SkillPromotionGate

public interface SkillPromotionGate
源码Source io/agentscope/harness/agent/skill/curator/SkillPromotionGate.java:40–59

定义技能 Promotion Gate契约的接口。位于 io.agentscope.harness.agent.skill.curator 包。核心成员包括 review。

Decides whether a draft skill is allowed to be promoted into the live skills directory.

Implementations:

  • RejectAllGate — defers everything; only programmatic HarnessAgent.promoteSkill(...) can move drafts forward (enterprise default)

  • LocalApprovalGate — single-replica HITL via the host shell / CLI prompt

  • NotifyAndWaitGate — multi-replica: writes a .review_request.json file next to the draft and notifies one or more NotificationSinks; waits for an external system to call promoteSkill again

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
PromotionDecision接口interface
定义 Promotion 决策契约的接口。
Final outcome of a gate review.

方法摘要Method Summary

方法Method说明Description
public Mono<PromotionDecision> review(SkillCandidate candidate, RuntimeContext ctx)
执行 `review` 方法。
Review a draft.

方法详情Method Detail

review

public Mono<PromotionDecision> review(SkillCandidate candidate, RuntimeContext ctx)

执行 review 方法。

Review a draft.

参数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/SkillPromotionGate.java:46

嵌套类详情Nested Class Detail

PromotionDecision

sealed interface PromotionDecision permits PromotionDecision.Approve, PromotionDecision.Reject, PromotionDecision.Defer

定义 Promotion 决策契约的接口。位于 io.agentscope.harness.agent.skill.curator 包。

Final outcome of a gate review.

基于官方固定版本源码静态生成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.