Files
Codex Local bf1233d5df
ci / verify (push) Canceled after 0s
feat: expand companion platform, device controls, and memoir workflows
Add customer and operator login, BLE provisioning, device fleet controls, call memory, memoir generation, and refreshed family and maintenance portals. Include API contracts, migrations, firmware sources, tests, assets, and deployment documentation.
2026-10-08 10:06:44 +08:00

20 lines
484 B
Go

package elderagent
import (
_ "embed"
"strings"
)
//go:embed prompts/event_time.txt
var eventTimeGuidance string
// Apply at preparation so both existing and newly provisioned bots receive the
// same guidance without modifying their saved persona or prior call snapshot.
func withEventTimeGuidance(role string) string {
guidance := strings.TrimSpace(eventTimeGuidance)
if strings.Contains(role, guidance) {
return role
}
return strings.TrimSpace(role) + "\n" + guidance
}