Merge pull request #798 from pipecat-ai/aleix/functioncall-data-frames
frames: FunctionCallResultFrame should be a DataFrame as before
This commit is contained in:
@@ -228,6 +228,17 @@ class LLMEnablePromptCachingFrame(DataFrame):
|
|||||||
enable: bool
|
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
|
@dataclass
|
||||||
class TTSSpeakFrame(DataFrame):
|
class TTSSpeakFrame(DataFrame):
|
||||||
"""A frame that contains a text that should be spoken by the TTS in the
|
"""A frame that contains a text that should be spoken by the TTS in the
|
||||||
@@ -422,17 +433,6 @@ class FunctionCallInProgressFrame(SystemFrame):
|
|||||||
arguments: str
|
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
|
@dataclass
|
||||||
class TransportMessageUrgentFrame(SystemFrame):
|
class TransportMessageUrgentFrame(SystemFrame):
|
||||||
message: Any
|
message: Any
|
||||||
|
|||||||
Reference in New Issue
Block a user