Repository navigation
Description
Company or project name
No response
Component
Python SDK
Use case
Voice agents built on Pipecat need memory that survives calls (who the caller is, what was agreed). Loom keeps per-user memory but has no Pipecat integration.
Describe the solution you'd like
Goal. loom.integrations.pipecat: a frame processor or service that recalls a user's memories into the context at the start of a turn and writes the call's facts after it. Keep calls off the audio path's hot loop (recall once per turn, write after).
Files to change. #650 (the OpenAI Agents SDK tools) is a worked example of each:
sdk/python/loom/integrations/pipecat.pyandsdk/python/loom/integrations/__init__.py;- a
pipecatextra insdk/python/pyproject.toml, pinned to a Pipecat minor range; pipecatinSDK_ADAPTER_EXTRASin theMakefile;- the Pipecat modules in the mypy
ignore_missing_importslist for the framework adapters in the rootpyproject.toml; sdk/python/tests/test_pipecat.py;- a row in the table and a section in docs/features/integrations/frameworks.md, the framework list in docs/features/integrations/index.md, a line in docs/reference/python-sdk.md, and the
[pipecat]extra in the framework adapters sentence ofsdk/python/README.md.
Acceptance criteria
- A unit test shows one recall per turn and the write after the turn, with no Loom call on the audio frames.
make test-sdk-adapter-pipecatpasses (one venv with the extra installed, its tests andmypy --strict), and so doesmake test-sdk-adapter-pipecat SDK_ADAPTERS_PYTHON=3.11 SDK_ADAPTERS_RESOLUTION=lowest-direct, the lowest-deps leg of CI'ssdk-python-adaptersjob, which installs every direct requirement at its lower bound.make test-sdk-adapters,make format-check lint typecheckand.venv/bin/python -m pytest tests/unit/test_sdk_extra_requirements.py -qpass; that test checks that every extra inSDK_ADAPTER_EXTRAShasloom/integrations/<extra>.pyandtests/test_<extra>.py.loom/integrations/pipecat.pyimports the framework insidetry/except ImportErrorand re-raises anImportErrorthat namespip install 'clickhouse-loom[pipecat]', assdk/python/loom/integrations/openai_agents.pydoes (lines 31-37). CI'ssdk-python-packagejob checks it withscripts/gates/sdk_wheel_smoke.py, which imports every submodule in a clean venv holding only the wheel and fails on an adapter whoseImportErrordoes not name its extra. Run it locally from an emptydist/:
uv build sdk/python --out-dir dist
uv venv /tmp/sdk-venv
uv pip install --python /tmp/sdk-venv/bin/python dist/*.whl
/tmp/sdk-venv/bin/python scripts/gates/sdk_wheel_smoke.py dist/*.whl- The docs checks pass:
.venv/bin/python -m pytest tests/unit/test_doc_links.py tests/unit/test_public_copy.py -q
.venv/bin/python -m scripts.codegen.docs_reference --checkDescribe alternatives you've considered
A Pipecat app can call the SDK from its own processor; an integration gives it a tested one that keeps Loom off the audio path.
Where the need comes from
The need is mine, an AI tool helped shape the proposal
Additional context
Start after #696 (the Google ADK memory service) merges, or rebase onto it: it edits frameworks.md, integrations/index.md, python-sdk.md, sdk/python/README.md, SDK_ADAPTER_EXTRAS in the Makefile and both pyproject.toml files.
Size: L (several days). Read CONTRIBUTING.md first (signed-off commits), and comment here to say you are working on it.
Activity