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

@@ -99,7 +99,13 @@ async def main():
]
)
task = PipelineTask(pipeline, PipelineParams(allow_interruptions=True, enable_metrics=True))
task = PipelineTask(
pipeline,
params=PipelineParams(
allow_interruptions=True,
enable_metrics=True,
),
)
@transport.event_handler("on_first_participant_joined")
async def on_first_participant_joined(transport, participant):