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

Method validateMessage

pkg/agent/streaming.go:267–272  ·  view source on GitHub ↗

validateMessage 验证消息

(message string)

Source from the content-addressed store, hash-verified

265
266// validateMessage 验证消息
267func (a *Agent) validateMessage(message string) error {
268 if message == "" {
269 return errors.New("message cannot be empty")
270 }
271 return nil
272}
273
274// handleSlashCommandForStream 处理 Slash Command(流式版本)
275func (a *Agent) handleSlashCommandForStream(ctx context.Context, msg *types.Message, writer *stream.Writer[*session.Event]) (bool, error) {

Callers 1

StreamMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected