From 3d4620cf95b68d59854aadc9c8eb6af1408cb57e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Fri, 6 Dec 2024 10:48:20 -0800 Subject: [PATCH] frames: FunctionCallResultFrame should be a DataFrame as before --- src/pipecat/frames/frames.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/pipecat/frames/frames.py b/src/pipecat/frames/frames.py index 7b2dc8aaa..a42a6b7de 100644 --- a/src/pipecat/frames/frames.py +++ b/src/pipecat/frames/frames.py @@ -228,6 +228,17 @@ class LLMEnablePromptCachingFrame(DataFrame): enable: bool +@dataclass +class FunctionCallResultFrame(DataFrame): + """A frame containing the result of an LLM function (tool) call.""" + + function_name: str + tool_call_id: str + arguments: str + result: Any + run_llm: bool = True + + @dataclass class TTSSpeakFrame(DataFrame): """A frame that contains a text that should be spoken by the TTS in the @@ -422,17 +433,6 @@ class FunctionCallInProgressFrame(SystemFrame): arguments: str -@dataclass -class FunctionCallResultFrame(SystemFrame): - """A frame containing the result of an LLM function (tool) call.""" - - function_name: str - tool_call_id: str - arguments: str - result: Any - run_llm: bool = True - - @dataclass class TransportMessageUrgentFrame(SystemFrame): message: Any