AS AgentScopeAPI 手册 / API Reference

PromotionDecision

sealed interface PromotionDecision permits PromotionDecision.Approve, PromotionDecision.Reject, PromotionDecision.Defer
源码Source io/agentscope/harness/agent/skill/curator/SkillPromotionGate.java:49–58

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

Final outcome of a gate review.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Approve记录record
承载 Approve数据的记录类型。
A record in io.agentscope.harness.agent.skill.curator that carries data used when components lets agents invoke external capabilities under control.
Reject记录record
承载拒绝数据的记录类型。
A record in io.agentscope.harness.agent.skill.curator that carries data used when components lets agents invoke external capabilities under control.
Defer记录record
承载 Defer数据的记录类型。
A record in io.agentscope.harness.agent.skill.curator that carries data used when components lets agents invoke external capabilities under control.

嵌套类详情Nested Class Detail

Approve

record Approve(String reviewerId, List<String> targetEnvironments, Instant decidedAt) implements PromotionDecision

承载 Approve数据的记录类型。位于 io.agentscope.harness.agent.skill.curator 包,实现 PromotionDecision。核心成员包括 reviewerId、targetEnvironments、decidedAt。

A record in io.agentscope.harness.agent.skill.curator that carries data used when components lets agents invoke external capabilities under control. Declared in io.agentscope.harness.agent.skill.curator. Implements PromotionDecision.

Reject

record Reject(String reason, String reviewerId) implements PromotionDecision

承载拒绝数据的记录类型。位于 io.agentscope.harness.agent.skill.curator 包,实现 PromotionDecision。核心成员包括 reason、reviewerId。

A record in io.agentscope.harness.agent.skill.curator that carries data used when components lets agents invoke external capabilities under control. Declared in io.agentscope.harness.agent.skill.curator. Implements PromotionDecision.

Defer

record Defer(Duration retryAfter, String reason) implements PromotionDecision

承载 Defer数据的记录类型。位于 io.agentscope.harness.agent.skill.curator 包,实现 PromotionDecision。核心成员包括 retryAfter、reason。

A record in io.agentscope.harness.agent.skill.curator that carries data used when components lets agents invoke external capabilities under control. Declared in io.agentscope.harness.agent.skill.curator. Implements PromotionDecision.

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