From 01381f6dcd977c5ca3324f90ee407273078fc281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 13 May 2024 16:12:03 -0700 Subject: [PATCH] frames: add TransportMessageFrame --- src/pipecat/frames/frames.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pipecat/frames/frames.py b/src/pipecat/frames/frames.py index 3f6d16bbc..7712f40be 100644 --- a/src/pipecat/frames/frames.py +++ b/src/pipecat/frames/frames.py @@ -4,7 +4,7 @@ # SPDX-License-Identifier: BSD 2-Clause License # -from typing import List, Tuple +from typing import Any, List, Tuple from dataclasses import dataclass, field @@ -157,6 +157,14 @@ class LLMMessagesFrame(DataFrame): """ messages: List[dict] + +@dataclass +class TransportMessageFrame(DataFrame): + message: Any + + def __str__(self): + return f"{self.name}(message: {self.message})" + # # App frames. Application user-defined frames. #