MCPcopy Create free account
hub / github.com/astercloud/aster / OnWorkflowRegistered

Method OnWorkflowRegistered

pkg/asteros/interfaces/agui.go:137–145  ·  view source on GitHub ↗

OnWorkflowRegistered Workflow 注册事件

(wf workflow.Agent)

Source from the content-addressed store, hash-verified

135
136// OnWorkflowRegistered Workflow 注册事件
137func (i *AGUIInterface) OnWorkflowRegistered(wf workflow.Agent) error {
138 if i.opts.EnableLogging {
139 fmt.Printf(" [AGUI] Workflow registered: %s\n", wf.Name())
140 fmt.Printf(" → Syncing to Control Plane\n")
141 }
142
143 // 同步到控制平面
144 return i.syncWorkflow(wf)
145}
146
147// connect 连接到控制平面
148func (i *AGUIInterface) connect(ctx context.Context) error {

Callers

nothing calls this directly

Calls 3

syncWorkflowMethod · 0.95
PrintfMethod · 0.80
NameMethod · 0.65

Tested by

no test coverage detected