processors(realtime-ai): add support for appending to the LLM context

This commit is contained in:
Aleix Conchillo Flaqué
2024-07-19 13:44:16 -07:00
parent 846ae765e5
commit b85dd7283a
3 changed files with 22 additions and 0 deletions

View File

@@ -158,6 +158,15 @@ class LLMMessagesFrame(DataFrame):
messages: List[dict]
@dataclass
class LLMMessagesAppendFrame(DataFrame):
"""A frame containing a list of LLM messages that neeed to be added to the
current context.
"""
messages: List[dict]
@dataclass
class LLMMessagesUpdateFrame(DataFrame):
"""A frame containing a list of new LLM messages. These messages will