package promptcompiler

import (
	"fmt"
	"strings"
)

func formatMessageSendCall(toolName, target string) string {
	toolName = strings.TrimSpace(toolName)
	if toolName == "" {
		toolName = "message_send"
	}
	target = strings.TrimSpace(target)
	if target == "" {
		return ""
	}
	return fmt.Sprintf(
		`%s(target=%q, content="...")`,
		toolName,
		target,
	)
}
