assistant-runtime-sdk 1.2.0__tar.gz → 1.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: assistant_runtime_sdk
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: Python SDK for FAC Cloud - the Assistant Runtime AI assistant backend
5
5
  Keywords: frappe,ai,assistant,llm,mcp,anthropic,openai,streaming
6
6
  Author: Paul Clinton
@@ -53,7 +53,7 @@ Standalone Functions:
53
53
 
54
54
  """
55
55
 
56
- __version__ = "1.2.0"
56
+ __version__ = "1.2.1"
57
57
  __author__ = "Paul Clinton"
58
58
  __license__ = "AGPL-3.0"
59
59
 
@@ -846,7 +846,9 @@ class AsyncAssistantRuntimeClient(BaseAssistantRuntimeClient):
846
846
  async def remove_user_seat(self) -> Optional[Dict[str, Any]]:
847
847
  """Async version of AssistantRuntimeClient.remove_user_seat."""
848
848
  endpoint, params = self._prepare_remove_user_seat()
849
- return await self._request_get(endpoint, params, api_base=self.billing_api_base)
849
+ return await self._request_post_json(
850
+ endpoint, params, api_base=self.billing_api_base
851
+ )
850
852
 
851
853
  async def preview_seat_charge(self) -> Optional[Dict[str, Any]]:
852
854
  """Async version of AssistantRuntimeClient.preview_seat_charge."""
@@ -953,7 +953,11 @@ class AssistantRuntimeClient(BaseAssistantRuntimeClient):
953
953
  timeout: Optional request timeout in seconds.
954
954
 
955
955
  Returns:
956
- {"summary": str | None, "cached": bool, "reason": str | None}
956
+ {"summary": str | None, "cached": bool, "stale": bool,
957
+ "reason": str | None}
958
+
959
+ ``stale`` means the server handed back the previous summary and is
960
+ regenerating behind it — the text is servable, just not current.
957
961
  """
958
962
  endpoint, params = self._prepare_get_memory_summary(user_id, force)
959
963
  return self._request_get(endpoint, params, timeout=timeout, api_base=self.memory_api_base)
@@ -1189,9 +1193,14 @@ class AssistantRuntimeClient(BaseAssistantRuntimeClient):
1189
1193
  return self._request_get(endpoint, params, api_base=self.billing_api_base)
1190
1194
 
1191
1195
  def remove_user_seat(self) -> Optional[Dict[str, Any]]:
1192
- """Remove one seat. No refund; next renewal reflects lower count."""
1196
+ """Remove one vacant seat. No refund; next renewal reflects the lower count.
1197
+
1198
+ POST, not GET: this is a write, and Frappe rolls back any request
1199
+ whose method it considers safe. Over GET the subscription save was
1200
+ discarded while the response still said success.
1201
+ """
1193
1202
  endpoint, params = self._prepare_remove_user_seat()
1194
- return self._request_get(endpoint, params, api_base=self.billing_api_base)
1203
+ return self._request_post_json(endpoint, params, api_base=self.billing_api_base)
1195
1204
 
1196
1205
  def preview_seat_charge(self) -> Optional[Dict[str, Any]]:
1197
1206
  """Preview the prorated cost of adding one seat."""
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "assistant_runtime_sdk"
3
- version = "1.2.0"
3
+ version = "1.2.1"
4
4
  description = "Python SDK for FAC Cloud - the Assistant Runtime AI assistant backend"
5
5
  readme = "README.md"
6
6
  license = {text = "AGPL-3.0"}