diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a3f882e9..3362a24b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 corresponding example in `pipecat-examples` to see how to pass custom data to your bot. +- Added `body` to the `WebsocketRunnerArguments` as an optional parameter. + Custom `body` information can be passed from the server into the bot file via + the `bot()` method using this new parameter. + - Added video streaming support to `LiveKitTransport`. - Added `OpenAIRealtimeLLMService` and `AzureRealtimeLLMService` which provide diff --git a/src/pipecat/runner/types.py b/src/pipecat/runner/types.py index 842765d25..89aecd84c 100644 --- a/src/pipecat/runner/types.py +++ b/src/pipecat/runner/types.py @@ -51,9 +51,11 @@ class WebSocketRunnerArguments(RunnerArguments): Parameters: websocket: WebSocket connection for audio streaming + body: Additional request data """ websocket: WebSocket + body: Optional[Any] = field(default_factory=dict) @dataclass