examples: allow setting custom program arguments

This commit is contained in:
Aleix Conchillo Flaqué
2025-04-23 15:38:07 -07:00
parent 4ee6c4b59e
commit a753a623d4
106 changed files with 223 additions and 125 deletions

View File

@@ -36,6 +36,7 @@ Requirements:
The bot runs as part of a pipeline that processes audio frames and manages the conversation flow.
"""
import argparse
import os
from dotenv import load_dotenv
@@ -112,7 +113,7 @@ async def get_initial_greeting(
return "Hello! How can I help you today?"
async def run_bot(webrtc_connection: SmallWebRTCConnection):
async def run_bot(webrtc_connection: SmallWebRTCConnection, _: argparse.Namespace):
"""Main bot execution function.
Sets up and runs the bot pipeline including: