AS AgentScopeAPI 手册 / API Reference

NotificationSink

public interface NotificationSink
源码Source io/agentscope/harness/agent/skill/curator/NotificationSink.java:27–49

定义通知 Sink契约的接口。位于 io.agentscope.harness.agent.skill.curator 包。核心成员包括 notify、noOp、logging。

Pushes SkillCandidate metadata to an external system (Slack webhook, ticket service, Nacos config item, …). NotifyAndWaitGate fires its sinks once per draft submission; sinks are best-effort and never block the gate.

方法摘要Method Summary

方法Method说明Description
public Mono<Void> notify(SkillCandidate candidate)
设置该参数。
Performs the notify operation.
static public NotificationSink noOp()
static
返回无 Op。
No-op — useful as the "I'll wire my own sink later" default.
static public NotificationSink logging()
static
返回日志。
Logs the candidate at INFO; production setups can route via slf4j → ELK / Loki.

方法详情Method Detail

notify

public Mono<Void> notify(SkillCandidate candidate)

设置该参数。

Performs the notify operation.

参数Parameters
名称Name类型Type说明Description
candidateSkillCandidatecandidate(类型 `SkillCandidate`)。The candidate.
返回Returns Mono<Void>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/skill/curator/NotificationSink.java:29

noOp

static public NotificationSink noOp()
static

返回无 Op。

No-op — useful as the "I'll wire my own sink later" default.

返回Returns NotificationSink
返回NotificationSink。Returns notification sink.
源码Source io/agentscope/harness/agent/skill/curator/NotificationSink.java:32–34

logging

static public NotificationSink logging()
static

返回日志。

Logs the candidate at INFO; production setups can route via slf4j → ELK / Loki.

返回Returns NotificationSink
返回NotificationSink。Returns notification sink.
源码Source io/agentscope/harness/agent/skill/curator/NotificationSink.java:37–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.