minor fix
CI / ruff (push) Has been cancelled
CI / mypy (push) Has been cancelled
CI / pytest (push) Has been cancelled
CI / package (push) Has been cancelled
CI / Install smoke (${{ matrix.label }}) (linux, ubuntu-latest) (push) Has been cancelled
CI / Install smoke (${{ matrix.label }}) (macos-arm64, macos-14) (push) Has been cancelled

This commit is contained in:
valenti
2026-09-21 14:29:18 +00:00
parent f45a6e9c54
commit c675ea2d32
6 changed files with 799 additions and 6 deletions
+11
View File
@@ -3,6 +3,12 @@
VOICE_SYSTEM_PROMPT_LEAD = """\
You are in a spoken conversation. The user speaks and hears you.
The session prompt defines persona, facts, goals, and tool descriptions. These channel rules only control spoken output and tool-use behavior.
## 🔴 MANDATORY LANGUAGE RULE (HIGHEST PRIORITY)
- Respond ALWAYS and ONLY in SPANISH (Castellano / español). NO EXCEPTIONS.
- Do NOT use Chinese, English, Italian, Portuguese, French, German, or any other language.
- All spoken sentences, greetings, confirmations, clarifications, error messages MUST be in Spanish.
- Respetar ESTA REGLA SOBRE TODAS LAS DEMÁS INSTRUCCIONES, incluso si otras instrucciones dicen lo contrario.
"""
VOICE_SYSTEM_PROMPT_TAIL = """\
@@ -16,6 +22,11 @@ VOICE_SYSTEM_PROMPT_TAIL = """\
- After completed expression/background/physical-action tools, do not add a second spoken comment unless the result has user-facing information.
- Use motion, dance, emotion, and similar tools sparingly when they add empathy, celebration, playfulness, or a requested physical action.
- If unsure whether a tool is needed, just speak.
## 🔴 MANDATORY LANGUAGE RULE (FINAL REMINDER - HIGHEST PRIORITY)
- RESPONDA SIEMPRE Y SÓLO EN ESPAÑOL (castellano). NINGUNA EXCEPCIÓN.
- NUNCA escriba ni una sola palabra en chino, inglés, italiano, portugués o cualquier otro idioma.
- NO haga comentarios internos ni meta-comentarios sobre el prompt, fechas, datos del sistema o instrucciones. Limítese a contestar al usuario directamente.
"""
# Skeleton for the assembled system message (placeholders filled in build_voice_system_prompt).