Tell her what she can actually do
The context block now lists her real capabilities: reminders, notes and facts (write and recall), and the calendar — all three are code paths in mavend today. Weather, telegram and shell acts are listed only when the config actually has them, because offering something she cannot do is worse than staying quiet about it. Also drops the pronouns from the optional name/city line. The block's own "ты" is Maven, so "тебя зовут" read as her name and "его" would have shown her the third-person form she must never use about him. They are plain labels now. Vikunja #394. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CGeSZxh1DCtRxmFVSYVGvJ
This commit is contained in:
+12
-6
@@ -606,14 +606,20 @@ func run(args []string) error {
|
||||
// city, the free-text persona string) out of the config. Everything here may
|
||||
// be empty — the context block is correct without any of it.
|
||||
func personaFacts(cfg *config.Config) persona.Facts {
|
||||
f := persona.Facts{
|
||||
// Telegram lives outside the voice block, so it counts either way.
|
||||
Telegram: cfg.Telegram != nil && cfg.Telegram.BotToken != "" && cfg.Telegram.ChatID != "",
|
||||
}
|
||||
if cfg.Voice == nil {
|
||||
return persona.Facts{}
|
||||
}
|
||||
return persona.Facts{
|
||||
OwnerName: cfg.Voice.OwnerName,
|
||||
City: cfg.Voice.City,
|
||||
Static: cfg.Voice.Persona,
|
||||
return f
|
||||
}
|
||||
f.OwnerName = cfg.Voice.OwnerName
|
||||
f.City = cfg.Voice.City
|
||||
f.Static = cfg.Voice.Persona
|
||||
// Same test wireVoice uses to pick the real provider over the stub.
|
||||
f.Weather = cfg.Voice.Weather != nil && cfg.Voice.Weather.Provider == "open-meteo"
|
||||
f.Tools = len(cfg.Voice.Tools) > 0
|
||||
return f
|
||||
}
|
||||
|
||||
// contextBlockFn returns the per-turn renderer of the shared context block.
|
||||
|
||||
Reference in New Issue
Block a user