mirror of
https://github.com/usestrix/strix.git
synced 2026-08-20 18:38:57 +02:00
19 lines
674 B
Go
19 lines
674 B
Go
package render
|
|
|
|
import "strings"
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Direct replies (respond_renderer.py)
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// renderRespondToUser shows the reply as the agent's own prose, since
|
|
// respond_to_user carries the message the user is meant to read.
|
|
func renderRespondToUser(args map[string]any) string {
|
|
var b strings.Builder
|
|
if message := StringValue(args["message"]); message != "" {
|
|
b.WriteString(renderAssistantMarkdown(message) + "\n\n")
|
|
}
|
|
b.WriteString(Col(Gray).Render("○ ") + Dim().Render("waiting for your reply"))
|
|
return b.String()
|
|
}
|