Merge pull request #798 from pipecat-ai/aleix/functioncall-data-frames

frames: FunctionCallResultFrame should be a DataFrame as before
This commit is contained in:
Aleix Conchillo Flaqué
2024-12-06 16:38:23 -08:00
committed by GitHub

View File

@@ -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