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

Method OnAgentRegistered

pkg/asteros/interfaces/http.go:69–76  ·  view source on GitHub ↗

OnAgentRegistered Agent 注册事件

(agent *agent.Agent)

Source from the content-addressed store, hash-verified

67
68// OnAgentRegistered Agent 注册事件
69func (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 注册事件
79func (i *HTTPInterface) OnRoomRegistered(r *core.Room) error {

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.80
IDMethod · 0.65

Tested by

no test coverage detected