From 05581e4e9d3e7cf7883a7ddddc55f173e4b094fa Mon Sep 17 00:00:00 2001 From: Ramnique Singh <30795890+ramnique@users.noreply.github.com> Date: Thu, 10 Apr 2025 01:34:29 +0530 Subject: [PATCH] bugfix: python sdk losing state --- apps/python-sdk/pyproject.toml | 2 +- apps/python-sdk/src/rowboat/client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/python-sdk/pyproject.toml b/apps/python-sdk/pyproject.toml index b107d8b6..d31b2766 100644 --- a/apps/python-sdk/pyproject.toml +++ b/apps/python-sdk/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "rowboat" -version = "3.0.0" +version = "3.1.0" authors = [ { name = "Ramnique Singh", email = "ramnique@rowboatlabs.com" }, ] diff --git a/apps/python-sdk/src/rowboat/client.py b/apps/python-sdk/src/rowboat/client.py index d270c0c5..555d8676 100644 --- a/apps/python-sdk/src/rowboat/client.py +++ b/apps/python-sdk/src/rowboat/client.py @@ -100,7 +100,7 @@ class StatefulChat: ) # Update internal state - self.messages = response_data.messages + self.messages.extend(response_data.messages) self.state = response_data.state # Return only the final message content