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

Method OnWorkflowRegistered

pkg/asteros/interfaces/a2a.go:107–112  ·  view source on GitHub ↗

OnWorkflowRegistered Workflow 注册事件

(wf workflow.Agent)

Source from the content-addressed store, hash-verified

105
106// OnWorkflowRegistered Workflow 注册事件
107func (i *A2AInterface) OnWorkflowRegistered(wf workflow.Agent) error {
108 if i.opts.EnableLogging {
109 fmt.Printf(" [A2A] Workflow registered: %s\n", wf.Name())
110 }
111 return nil
112}
113
114// SendMessage 发送消息给指定 Agent
115func (i *A2AInterface) SendMessage(ctx context.Context, fromID, toID, message string) error {

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.80
NameMethod · 0.65

Tested by

no test coverage detected