Amazon Bedrock AgentCore exploration, cont'd
This commit is contained in:
@@ -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}")
|
||||
|
||||
2
examples/aws-agentcore/uv.lock
generated
2
examples/aws-agentcore/uv.lock
generated
@@ -20,6 +20,7 @@ name = "agentcore-pipecat"
|
||||
version = "0.1.0"
|
||||
source = { virtual = "." }
|
||||
dependencies = [
|
||||
{ name = "aiohttp" },
|
||||
{ name = "bedrock-agentcore" },
|
||||
{ name = "pipecat-ai", extra = ["cartesia", "daily", "deepgram", "local-smart-turn-v3", "openai", "runner", "silero", "webrtc"] },
|
||||
]
|
||||
@@ -33,6 +34,7 @@ dev = [
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "aiohttp" },
|
||||
{ name = "bedrock-agentcore" },
|
||||
{ name = "pipecat-ai", extras = ["webrtc", "daily", "silero", "deepgram", "openai", "cartesia", "local-smart-turn-v3", "runner"] },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user