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 |
|---|---|---|
candidate | SkillCandidate | candidate(类型 `SkillCandidate`)。The candidate. |
Mono<Void>返回Mono。Returns mono.
源码Source
io/agentscope/harness/agent/skill/curator/NotificationSink.java:29noOp
static public NotificationSink noOp()
static
返回无 Op。
No-op — useful as the "I'll wire my own sink later" default.
NotificationSink返回NotificationSink。Returns notification sink.
源码Source
io/agentscope/harness/agent/skill/curator/NotificationSink.java:32–34logging
static public NotificationSink logging()
static
返回日志。
Logs the candidate at INFO; production setups can route via slf4j → ELK / Loki.
NotificationSink返回NotificationSink。Returns notification sink.
源码Source
io/agentscope/harness/agent/skill/curator/NotificationSink.java:37–48