MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / AiMsgError

Method AiMsgError

pkg/web/sse/ssehandler.go:475–481  ·  view source on GitHub ↗
(errText string)

Source from the content-addressed store, hash-verified

473}
474
475func (h *SSEHandlerCh) AiMsgError(errText string) error {
476 resp := map[string]interface{}{
477 "type": AiMsgError,
478 "errorText": errText,
479 }
480 return h.WriteJsonData(resp)
481}
482
483func (h *SSEHandlerCh) AiMsgData(dataType string, id string, data interface{}) error {
484 if !strings.HasPrefix(dataType, "data-") {

Callers 7

RunAIChatFunction · 0.80
processGeminiStreamFunction · 0.80
processChatStreamFunction · 0.80
handleAnthropicEventFunction · 0.80
handleOpenAIEventFunction · 0.80

Calls 1

WriteJsonDataMethod · 0.95

Tested by

no test coverage detected