assistant-runtime-sdk 1.14.0__tar.gz → 1.15.0__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.14.0
3
+ Version: 1.15.0
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.14.0"
56
+ __version__ = "1.15.0"
57
57
  __author__ = "Paul Clinton"
58
58
  __license__ = "AGPL-3.0"
59
59
 
@@ -1924,11 +1924,12 @@ class AsyncAssistantRuntimeClient(BaseAssistantRuntimeClient):
1924
1924
  python_version: Optional[str] = None,
1925
1925
  copilot_version: Optional[str] = None,
1926
1926
  timeout: Optional[float] = None,
1927
+ site_profile: Optional[Dict[str, Any]] = None,
1927
1928
  ) -> Optional[Dict[str, Any]]:
1928
1929
  """Async send version/health info and receive pending notifications."""
1929
1930
  endpoint, payload = self._prepare_heartbeat(
1930
1931
  faco_version, fac_version, frappe_version, erpnext_version,
1931
- python_version, copilot_version,
1932
+ python_version, copilot_version, site_profile,
1932
1933
  )
1933
1934
  return await self._request_post_json(endpoint, payload, timeout=timeout)
1934
1935
 
@@ -2250,6 +2250,7 @@ class BaseAssistantRuntimeClient:
2250
2250
  erpnext_version: Optional[str] = None,
2251
2251
  python_version: Optional[str] = None,
2252
2252
  copilot_version: Optional[str] = None,
2253
+ site_profile: Optional[Dict[str, Any]] = None,
2253
2254
  ) -> tuple:
2254
2255
  payload: Dict[str, Any] = {"tenant_id": self.tenant_id}
2255
2256
  if faco_version:
@@ -2264,6 +2265,9 @@ class BaseAssistantRuntimeClient:
2264
2265
  payload["python_version"] = python_version
2265
2266
  if copilot_version:
2266
2267
  payload["copilot_version"] = copilot_version
2268
+ # The site's apps, customisation counts and server setup; AR stores the latest one.
2269
+ if site_profile is not None:
2270
+ payload["site_profile"] = site_profile
2267
2271
  return "heartbeat.heartbeat", payload
2268
2272
 
2269
2273
  def _prepare_get_notifications(self, user_id: str) -> tuple:
@@ -2907,11 +2907,12 @@ class AssistantRuntimeClient(BaseAssistantRuntimeClient):
2907
2907
  python_version: Optional[str] = None,
2908
2908
  copilot_version: Optional[str] = None,
2909
2909
  timeout: Optional[float] = None,
2910
+ site_profile: Optional[Dict[str, Any]] = None,
2910
2911
  ) -> Optional[Dict[str, Any]]:
2911
2912
  """Send version/health info and receive pending notifications."""
2912
2913
  endpoint, payload = self._prepare_heartbeat(
2913
2914
  faco_version, fac_version, frappe_version, erpnext_version,
2914
- python_version, copilot_version,
2915
+ python_version, copilot_version, site_profile,
2915
2916
  )
2916
2917
  return self._request_post_json(endpoint, payload, timeout=timeout)
2917
2918
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "assistant_runtime_sdk"
3
- version = "1.14.0"
3
+ version = "1.15.0"
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"}