PipelineTask: force constructor keyword arguments

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-25 17:56:01 -08:00
parent 66564392a6
commit 6722aae598
95 changed files with 140 additions and 98 deletions

View File

@@ -150,7 +150,7 @@ async def main(
]
)
task = PipelineTask(pipeline, PipelineParams(allow_interruptions=True))
task = PipelineTask(pipeline, params=PipelineParams(allow_interruptions=True))
if dialout_number:
logger.debug("dialout number detected; doing dialout")

View File

@@ -271,7 +271,7 @@ DO NOT say anything until you've determined if this is a voicemail or human."""
task = PipelineTask(
pipeline,
PipelineParams(allow_interruptions=True),
params=PipelineParams(allow_interruptions=True),
)
if dialout_number:

View File

@@ -77,7 +77,7 @@ async def main(room_url: str, token: str, callId: str, sipUri: str):
]
)
task = PipelineTask(pipeline, PipelineParams(allow_interruptions=True))
task = PipelineTask(pipeline, params=PipelineParams(allow_interruptions=True))
@transport.event_handler("on_first_participant_joined")
async def on_first_participant_joined(transport, participant):