feat: add prompt opening behavior modes

This commit is contained in:
Xin Wang
2026-08-04 13:29:21 +08:00
parent 78bba090a2
commit 5bf5987fe4
11 changed files with 235 additions and 97 deletions

View File

@@ -132,6 +132,9 @@ class BaseBrain:
async def on_greeting_finished(self) -> None:
"""Continue startup after the shared greeting has actually played."""
async def on_interruption_processed(self) -> None:
"""Observe that an output interruption reached assistant aggregation."""
def prepare_greeting_context(
self,
greeting: str,
@@ -214,6 +217,8 @@ class Brain(Protocol):
async def on_greeting_finished(self) -> None: ...
async def on_interruption_processed(self) -> None: ...
def prepare_greeting_context(
self,
greeting: str,