Remove LLMThoughtSignatureFrame in favor of using the more generic LLMMessagesAppendFrame

This commit is contained in:
Paul Kompfner
2025-12-08 11:10:05 -05:00
parent 17203ba3e6
commit 7e92597c0e
4 changed files with 18 additions and 49 deletions

View File

@@ -48,7 +48,6 @@ from pipecat.frames.frames import (
LLMSetToolChoiceFrame,
LLMSetToolsFrame,
LLMThoughtEndFrame,
LLMThoughtSignatureFrame,
LLMThoughtStartFrame,
LLMThoughtTextFrame,
SpeechControlParamsFrame,
@@ -644,8 +643,6 @@ class LLMAssistantAggregator(LLMContextAggregator):
await self._handle_thought_text(frame)
elif isinstance(frame, LLMThoughtEndFrame):
await self._handle_thought_end(frame)
elif isinstance(frame, LLMThoughtSignatureFrame):
await self._handle_standalone_thought_signature(frame)
elif isinstance(frame, LLMRunFrame):
await self._handle_llm_run(frame)
elif isinstance(frame, LLMMessagesAppendFrame):
@@ -896,17 +893,6 @@ class LLMAssistantAggregator(LLMContextAggregator):
)
)
async def _handle_standalone_thought_signature(self, frame: LLMThoughtSignatureFrame):
self._context.add_message(
LLMSpecificMessage(
llm=frame.llm,
message={
"type": "thought_signature",
"signature": frame.signature,
},
)
)
def _context_updated_task_finished(self, task: asyncio.Task):
self._context_updated_tasks.discard(task)