Add large payload utilities - #6907
Conversation
8cae4ac to
af06d0b
Compare
|
Addressed the review comments in the latest push:
Validation:
|
af06d0b to
c98d93f
Compare
|
Addressed the latest review comment in the latest push. The inline transfer decision now clamps to Validation:
|
c98d93f to
fd6263f
Compare
|
Addressed the latest example review comment in the latest push. The example receiver now keeps strong references to in-flight byte-stream read tasks, discards them when complete, exposes cleanup via Validation:
|
fd6263f to
5cbc25e
Compare
|
Addressed the parser review comment in the latest push.
Validation:
|
5cbc25e to
3355f60
Compare
|
Addressed the content-type validation review comment in the latest push.
Validation:
|
3355f60 to
6bda1bd
Compare
|
Addressed the latest two review comments in the latest push. The byte-stream publish path now abort-closes the writer with a reason when Validation:
|
6bda1bd to
9c393d5
Compare
|
Addressed the latest checksum and stream-validation review comments in the latest push.
Validation:
|
|
Addressed the latest example review comment in the latest push. The receiver example now uses an explicit Validation:
|
3f89478 to
3db44c0
Compare
|
Addressed the latest descriptor-location review comment in the latest push.
Validation:
|
Summary
utils.large_payloadhelpers for publishing application payloads that may exceed practical data-packet size limitsstream_bytesfallback for larger payloadsexamples/otherand focused unit coverageRefs #6906
Testing
python -m ruff check --fix livekit-agents/livekit/agents/utils/large_payload.py tests/test_large_payload.py livekit-agents/livekit/agents/utils/__init__.py examples/other/large-payload.pypython -m ruff format livekit-agents/livekit/agents/utils/large_payload.py tests/test_large_payload.py livekit-agents/livekit/agents/utils/__init__.py examples/other/large-payload.pyPYTHONPATH=livekit-agents python -m pytest tests/test_large_payload.py --unitMYPYPATH=livekit-agents python -m mypy --explicit-package-bases livekit-agents/livekit/agents/utils/large_payload.py