acontext 0.0.10__tar.gz → 0.0.11__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.
- {acontext-0.0.10 → acontext-0.0.11}/PKG-INFO +1 -1
- {acontext-0.0.10 → acontext-0.0.11}/pyproject.toml +1 -1
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/resources/async_sessions.py +19 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/resources/sessions.py +18 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/types/session.py +16 -0
- {acontext-0.0.10 → acontext-0.0.11}/README.md +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/__init__.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/_constants.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/_utils.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/agent/__init__.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/agent/base.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/agent/disk.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/async_client.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/client.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/client_types.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/errors.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/messages.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/py.typed +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/resources/__init__.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/resources/async_blocks.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/resources/async_disks.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/resources/async_spaces.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/resources/async_tools.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/resources/blocks.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/resources/disks.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/resources/spaces.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/resources/tools.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/types/__init__.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/types/block.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/types/disk.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/types/space.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/types/tool.py +0 -0
- {acontext-0.0.10 → acontext-0.0.11}/src/acontext/uploads.py +0 -0
|
@@ -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)
|
|
@@ -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
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|