From 65f5fe8588d534ffd3807f4ef57a62b23f9a5099 Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Wed, 24 Sep 2025 11:05:27 -0400 Subject: [PATCH] `StrandsAgentsProcessor` should still support `OpenAILLMContextFrame` until that frame has been deprecated --- src/pipecat/processors/frameworks/strands_agents.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pipecat/processors/frameworks/strands_agents.py b/src/pipecat/processors/frameworks/strands_agents.py index 829c799ac..323a4e921 100644 --- a/src/pipecat/processors/frameworks/strands_agents.py +++ b/src/pipecat/processors/frameworks/strands_agents.py @@ -16,6 +16,7 @@ from pipecat.frames.frames import ( LLMTextFrame, ) from pipecat.metrics.metrics import LLMTokenUsage +from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContextFrame from pipecat.processors.frame_processor import FrameDirection, FrameProcessor try: @@ -71,7 +72,7 @@ class StrandsAgentsProcessor(FrameProcessor): direction: The direction of frame flow in the pipeline. """ await super().process_frame(frame, direction) - if isinstance(frame, LLMContextFrame): + if isinstance(frame, (LLMContextFrame, OpenAILLMContextFrame)): messages = frame.context.get_messages() if messages: last_message = messages[-1]