MCPcopy
hub / github.com/the-open-agent/openagent / CloseMessage

Method CloseMessage

controllers/pipe_webhook.go:423–436  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

421}
422
423func (s *defaultPipeAnswerSender) CloseMessage(text string) error {
424 finalText := text
425 if finalText == "" {
426 switch {
427 case s.text != "":
428 finalText = s.text
429 case s.errorText != "":
430 finalText = s.errorText
431 default:
432 return nil
433 }
434 }
435 return s.provider.SendMessage(s.chatId, finalText)
436}
437
438func newStreamPipeAnswerSender(writer pipepkg.PipeMessageWriter) *streamPipeAnswerSender {
439 return &streamPipeAnswerSender{writer: writer}

Callers

nothing calls this directly

Calls 1

SendMessageMethod · 0.65

Tested by

no test coverage detected