From a94cc6543fdf56f5cd752eb439f81ce4f51c2ef6 Mon Sep 17 00:00:00 2001 From: Filipi Fuchter Date: Fri, 28 Nov 2025 10:29:22 -0300 Subject: [PATCH] Fixing pipecat agent. --- examples/aws-agentcore/agents/pipecat/pipecat-agent.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/aws-agentcore/agents/pipecat/pipecat-agent.py b/examples/aws-agentcore/agents/pipecat/pipecat-agent.py index 231aee712..e92df69b2 100644 --- a/examples/aws-agentcore/agents/pipecat/pipecat-agent.py +++ b/examples/aws-agentcore/agents/pipecat/pipecat-agent.py @@ -24,6 +24,7 @@ from pipecat.services.openai.llm import OpenAILLMService from pipecat.transports.base_transport import BaseTransport, TransportParams from pipecat.transports.daily.transport import DailyParams from pipecat.transports.smallwebrtc.connection import SmallWebRTCConnection +from pipecat.transports.smallwebrtc.transport import SmallWebRTCTransport from pipecat.transports.smallwebrtc.request_handler import ( SmallWebRTCRequest, ) @@ -55,9 +56,9 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments): yield {"status": "initializing bot!"} # Returning the answer - if isinstance(runner_args, SmallWebRTCRunnerArguments): + if isinstance(transport, SmallWebRTCTransport): yield {"status": "Will return smallwebrtc answer."} - yield runner_args.webrtc_connection.get_answer() + yield {"answer": transport._client._webrtc_connection.get_answer()} stt = DeepgramSTTService(api_key=os.getenv("DEEPGRAM_API_KEY"))