Skip to content

Commit

Permalink
rtvi: add llm-text and tts-text server messages
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Sep 24, 2024
1 parent 35512cc commit 5eaf9a7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/pipecat/processors/frameworks/rtvi.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,22 @@ class RTVILLMFunctionCallResultData(BaseModel):
result: dict | str


class RTVITextMessageData(BaseModel):
text: str


class RTVILLMTextMessage(BaseModel):
label: Literal["rtvi-ai"] = "rtvi-ai"
type: Literal["llm-text"] = "llm-text"
data: RTVITextMessageData


class RTVITTSTextMessage(BaseModel):
label: Literal["rtvi-ai"] = "rtvi-ai"
type: Literal["tts-text"] = "tts-text"
data: RTVITextMessageData


class RTVITranscriptionMessageData(BaseModel):
text: str
user_id: str
Expand Down

0 comments on commit 5eaf9a7

Please sign in to comment.