PipelineTask: add external pipeline task setup files

This commit is contained in:
Aleix Conchillo Flaqué
2026-01-09 16:35:11 -08:00
parent a992f95c02
commit d2696be03b
3 changed files with 52 additions and 1 deletions

6
changelog/3397.added.md Normal file
View File

@@ -0,0 +1,6 @@
- Added support for setting up a pipeline task from external files. You can now register custom pipeline task setup files by setting the `PIPECAT_SETUP_FILES` environment variable. This variable should contain a colon-separated list of Python files (e.g. `export PIPECAT_SETUP_FILES="setup1.py:setup.py:..."`). Each file must define a function with the following signature:
```python
async def setup_pipeline_task(task: PipelineTask):
...
```

View File

@@ -0,0 +1 @@
- Loading external observers from files is deprecated, use the new pipeline task setup files and `PIPECAT_SETUP_FILES` environment variable instead.