acontext 0.0.10__py3-none-any.whl → 0.0.11__py3-none-any.whl

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.
@@ -15,6 +15,7 @@ from ..types.session import (
15
15
  LearningStatus,
16
16
  ListSessionsOutput,
17
17
  Message,
18
+ MessageObservingStatus,
18
19
  Session,
19
20
  TokenCounts,
20
21
  )
@@ -346,3 +347,21 @@ class AsyncSessionsAPI:
346
347
  "GET", f"/session/{session_id}/token_counts"
347
348
  )
348
349
  return TokenCounts.model_validate(data)
350
+
351
+ async def messages_observing_status(self, session_id: str) -> MessageObservingStatus:
352
+ """Get message observing status counts for a session.
353
+
354
+ Returns the count of messages by their observing status:
355
+ observed, in_process, and pending.
356
+
357
+ Args:
358
+ session_id: The UUID of the session.
359
+
360
+ Returns:
361
+ MessageObservingStatus object containing observed, in_process,
362
+ pending counts and updated_at timestamp.
363
+ """
364
+ data = await self._requester.request(
365
+ "GET", f"/session/{session_id}/observing_status"
366
+ )
367
+ return MessageObservingStatus.model_validate(data)
@@ -15,6 +15,7 @@ from ..types.session import (
15
15
  LearningStatus,
16
16
  ListSessionsOutput,
17
17
  Message,
18
+ MessageObservingStatus,
18
19
  Session,
19
20
  TokenCounts,
20
21
  )
@@ -348,3 +349,20 @@ class SessionsAPI:
348
349
  """
349
350
  data = self._requester.request("GET", f"/session/{session_id}/token_counts")
350
351
  return TokenCounts.model_validate(data)
352
+ def messages_observing_status(self, session_id: str) -> MessageObservingStatus:
353
+ """Get message observing status counts for a session.
354
+
355
+ Returns the count of messages by their observing status:
356
+ observed, in_process, and pending.
357
+
358
+ Args:
359
+ session_id: The UUID of the session.
360
+
361
+ Returns:
362
+ MessageObservingStatus object containing observed, in_process,
363
+ pending counts and updated_at timestamp.
364
+ """
365
+ data = self._requester.request(
366
+ "GET", f"/session/{session_id}/observing_status"
367
+ )
368
+ return MessageObservingStatus.model_validate(data)
acontext/types/session.py CHANGED
@@ -253,3 +253,19 @@ class TokenCounts(BaseModel):
253
253
  ...,
254
254
  description="Total token count for all text and tool-call parts in a session",
255
255
  )
256
+
257
+ class MessageObservingStatus(BaseModel):
258
+ """Response model for message observing status."""
259
+
260
+ observed: int = Field(
261
+ ..., description="Number of messages with observed status"
262
+ )
263
+ in_process: int = Field(
264
+ ..., description="Number of messages with in_process status"
265
+ )
266
+ pending: int = Field(
267
+ ..., description="Number of messages with pending status"
268
+ )
269
+ updated_at: str = Field(
270
+ ..., description="Timestamp when the status was retrieved"
271
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: acontext
3
- Version: 0.0.10
3
+ Version: 0.0.11
4
4
  Summary: Python SDK for the Acontext API
5
5
  Keywords: acontext,sdk,client,api
6
6
  Requires-Dist: httpx>=0.28.1
@@ -13,21 +13,21 @@ acontext/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  acontext/resources/__init__.py,sha256=KSVQ3YJ-wuU6OWGWJ47gDGbjjetP102aEsVSR8JUb_4,721
14
14
  acontext/resources/async_blocks.py,sha256=e_iJpgcAdwS2tXQ16MMCnySlddp5JV3BadN_EyqZSF4,5555
15
15
  acontext/resources/async_disks.py,sha256=2JjLpUkz5YZEkLt_jCts_khTG_b7lvf4cUMfoaJcnI8,6471
16
- acontext/resources/async_sessions.py,sha256=Sle5_IG8EtAusbK8jnJK064pX6icBY3uD5t_xXP_c_k,12543
16
+ acontext/resources/async_sessions.py,sha256=UBqVr7M0BrRifB79u7xWe0CfM66YTeSebiKHpvZZhBI,13252
17
17
  acontext/resources/async_spaces.py,sha256=5lIZjI8GmgoMBcftAMD2vDj2FmbLZ6pi1-yNCWKv4cM,6408
18
18
  acontext/resources/async_tools.py,sha256=RbGaF2kX65Mun-q-Fp5H1J8waWTLIdCOfbdY19jpn1o,1091
19
19
  acontext/resources/blocks.py,sha256=HJdAy5HdyTcHCYCPmqNdvApYKZ6aWs-ORIi_wQt3TUM,5447
20
20
  acontext/resources/disks.py,sha256=BjVhVXoujHWhg6L0TG9GmW9HLTTldJYEPxCbuppRkc4,6336
21
- acontext/resources/sessions.py,sha256=Dr0M1sUhgsMCVwHnhIDLT53WkkrFeZpTPBtJrn-r9RA,12636
21
+ acontext/resources/sessions.py,sha256=7wdCM1rlozv3F05o9a5T9T-EEOp-y1eiVZHVfRYbQUo,13336
22
22
  acontext/resources/spaces.py,sha256=LJP9krygZGdktMDtYGudCpk7yBxe_4v34QLk3SdejwQ,6267
23
23
  acontext/resources/tools.py,sha256=II_185B0HYKSP43hizE6C1zs7kjkkPLKihuEG8s-DRY,1046
24
24
  acontext/types/__init__.py,sha256=QWNLmdSnLE2b5XRXxnI2OKnHVdKQPJH0nJvvOYwhB1o,1448
25
25
  acontext/types/block.py,sha256=CzKByunk642rWXNNnh8cx67UzKLKDAxODmC_whwjP90,1078
26
26
  acontext/types/disk.py,sha256=g9u3rgCh05rK-gay19NUi-WyzI5Vt1GQwcyKv-5TSC4,2361
27
- acontext/types/session.py,sha256=LOzgmj88D-gE6ca6OgGEFKxN4ePWnBjbfxtBqX35afA,9459
27
+ acontext/types/session.py,sha256=H_n4vZJ02ZO5flqGZ8R5AYVSScxScf2r7UgsN5LRIa0,9965
28
28
  acontext/types/space.py,sha256=uxbPrOHYpsntPHqhMCLQ2KovM7BngHC5Q2j7qexVrN8,2537
29
29
  acontext/types/tool.py,sha256=-mVn-vgk2SENK0Ubt-ZgWFZxKa-ddABqcAgXQ69YY-E,805
30
30
  acontext/uploads.py,sha256=6twnqQOY_eerNuEjeSKsE_3S0IfJUiczXtAy4aXqDl8,1379
31
- acontext-0.0.10.dist-info/WHEEL,sha256=ZyFSCYkV2BrxH6-HRVRg3R9Fo7MALzer9KiPYqNxSbo,79
32
- acontext-0.0.10.dist-info/METADATA,sha256=iLEyOHvYTNB011gEEF9kjmTlf0LMiC4wq5Y6jD50xOQ,859
33
- acontext-0.0.10.dist-info/RECORD,,
31
+ acontext-0.0.11.dist-info/WHEEL,sha256=ZyFSCYkV2BrxH6-HRVRg3R9Fo7MALzer9KiPYqNxSbo,79
32
+ acontext-0.0.11.dist-info/METADATA,sha256=rlg5ytr7FzRwgofIKYaZkUFUxbYXoiW2EwOBKXIe1hs,859
33
+ acontext-0.0.11.dist-info/RECORD,,