OnAgentRegistered Agent 注册事件
(agent *agent.Agent)
| 67 | |
| 68 | // OnAgentRegistered Agent 注册事件 |
| 69 | func (i *HTTPInterface) OnAgentRegistered(agent *agent.Agent) error { |
| 70 | if i.opts.EnableLogging { |
| 71 | fmt.Printf(" [HTTP] Agent registered: %s\n", agent.ID()) |
| 72 | fmt.Printf(" → API: POST /agents/%s/run\n", agent.ID()) |
| 73 | fmt.Printf(" → API: GET /agents/%s/status\n", agent.ID()) |
| 74 | } |
| 75 | return nil |
| 76 | } |
| 77 | |
| 78 | // OnRoomRegistered Room 注册事件 |
| 79 | func (i *HTTPInterface) OnRoomRegistered(r *core.Room) error { |