OnAgentRegistered Agent 注册事件
(ag *agent.Agent)
| 113 | |
| 114 | // OnAgentRegistered Agent 注册事件 |
| 115 | func (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 注册事件 |
| 126 | func (i *AGUIInterface) OnRoomRegistered(r *core.Room) error { |