Amazon Bedrock AgentCore exploration, cont'd

This commit is contained in:
Paul Kompfner
2025-11-25 10:46:33 -05:00
parent efa0669155
commit 2edfa493b6
2 changed files with 16 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ from pipecat.services.deepgram.stt import DeepgramSTTService
from pipecat.services.llm_service import FunctionCallParams
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.daily.transport import DailyParams, DailyTransport
app = BedrockAgentCoreApp()
@@ -82,6 +82,19 @@ transport_params = {
async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
logger.info(f"Starting bot")
daily_transport: DailyTransport = transport
daily_transport._client._client.set_ice_config(
{
"iceServers": [
{
"urls": ["turn:turn.cloudflare.com:3478?transport=tcp"],
"username": "YOUR_TURN_USERNAME",
"credential": "YOUR_TURN_CREDENTIAL",
},
]
}
)
public_ip = await get_public_ip()
if public_ip:
logger.info(f"Public IP address: {public_ip}")