MCPcopy
hub / github.com/wavetermdev/waveterm / AiMsgData

Method AiMsgData

pkg/web/sse/ssehandler.go:483–493  ·  view source on GitHub ↗
(dataType string, id string, data interface{})

Source from the content-addressed store, hash-verified

481}
482
483func (h *SSEHandlerCh) AiMsgData(dataType string, id string, data interface{}) error {
484 if !strings.HasPrefix(dataType, "data-") {
485 panic(fmt.Sprintf("AiMsgData type must start with 'data-', got: %s", dataType))
486 }
487 resp := map[string]interface{}{
488 "type": dataType,
489 "id": id,
490 "data": data,
491 }
492 return h.WriteJsonData(resp)
493}

Callers 4

processToolCallInternalFunction · 0.80
processToolCallFunction · 0.80
processAllToolCallsFunction · 0.80
SendToolProgressFunction · 0.80

Calls 1

WriteJsonDataMethod · 0.95

Tested by

no test coverage detected