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

Method OnAgentRegistered

pkg/asteros/interfaces/agui.go:115–123  ·  view source on GitHub ↗

OnAgentRegistered Agent 注册事件

(ag *agent.Agent)

Source from the content-addressed store, hash-verified

113
114// OnAgentRegistered Agent 注册事件
115func (i *AGUIInterface) OnAgentRegistered(ag *agent.Agent) error {
116 if i.opts.EnableLogging {
117 fmt.Printf(" [AGUI] Agent registered: %s\n", ag.ID())
118 fmt.Printf(" → Syncing to Control Plane\n")
119 }
120
121 // 同步到控制平面
122 return i.syncAgent(ag)
123}
124
125// OnRoomRegistered Room 注册事件
126func (i *AGUIInterface) OnRoomRegistered(r *core.Room) error {

Callers

nothing calls this directly

Calls 3

syncAgentMethod · 0.95
PrintfMethod · 0.80
IDMethod · 0.65

Tested by

no test coverage detected