acontext 0.0.8__tar.gz → 0.0.9__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.
Files changed (33) hide show
  1. {acontext-0.0.8 → acontext-0.0.9}/PKG-INFO +1 -1
  2. {acontext-0.0.8 → acontext-0.0.9}/pyproject.toml +1 -1
  3. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/__init__.py +3 -0
  4. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/types/__init__.py +2 -0
  5. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/types/session.py +20 -1
  6. {acontext-0.0.8 → acontext-0.0.9}/README.md +0 -0
  7. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/_constants.py +0 -0
  8. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/_utils.py +0 -0
  9. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/agent/__init__.py +0 -0
  10. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/agent/base.py +0 -0
  11. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/agent/disk.py +0 -0
  12. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/async_client.py +0 -0
  13. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/client.py +0 -0
  14. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/client_types.py +0 -0
  15. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/errors.py +0 -0
  16. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/messages.py +0 -0
  17. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/py.typed +0 -0
  18. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/resources/__init__.py +0 -0
  19. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/resources/async_blocks.py +0 -0
  20. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/resources/async_disks.py +0 -0
  21. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/resources/async_sessions.py +0 -0
  22. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/resources/async_spaces.py +0 -0
  23. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/resources/async_tools.py +0 -0
  24. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/resources/blocks.py +0 -0
  25. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/resources/disks.py +0 -0
  26. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/resources/sessions.py +0 -0
  27. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/resources/spaces.py +0 -0
  28. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/resources/tools.py +0 -0
  29. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/types/block.py +0 -0
  30. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/types/disk.py +0 -0
  31. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/types/space.py +0 -0
  32. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/types/tool.py +0 -0
  33. {acontext-0.0.8 → acontext-0.0.9}/src/acontext/uploads.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: acontext
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: Python SDK for the Acontext API
5
5
  Keywords: acontext,sdk,client,api
6
6
  Requires-Dist: httpx>=0.28.1
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "acontext"
3
- version = "0.0.8"
3
+ version = "0.0.9"
4
4
  description = "Python SDK for the Acontext API"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -19,6 +19,7 @@ from .resources import (
19
19
  SessionsAPI,
20
20
  SpacesAPI,
21
21
  )
22
+ from .types import Task, TaskData
22
23
 
23
24
  __all__ = [
24
25
  "AcontextClient",
@@ -36,6 +37,8 @@ __all__ = [
36
37
  "AsyncBlocksAPI",
37
38
  "AsyncSessionsAPI",
38
39
  "AsyncSpacesAPI",
40
+ "Task",
41
+ "TaskData",
39
42
  "__version__",
40
43
  ]
41
44
 
@@ -20,6 +20,7 @@ from .session import (
20
20
  PublicURL,
21
21
  Session,
22
22
  Task,
23
+ TaskData,
23
24
  TokenCounts,
24
25
  )
25
26
  from .block import Block
@@ -58,6 +59,7 @@ __all__ = [
58
59
  "PublicURL",
59
60
  "Session",
60
61
  "Task",
62
+ "TaskData",
61
63
  "TokenCounts",
62
64
  # Space types
63
65
  "ExperienceConfirmation",
@@ -120,6 +120,25 @@ class Session(BaseModel):
120
120
  updated_at: str = Field(..., description="ISO 8601 formatted update timestamp")
121
121
 
122
122
 
123
+ class TaskData(BaseModel):
124
+ """Task data model representing the structured data stored in a task.
125
+
126
+ This schema matches the TaskData model in acontext_core/schema/session/task.py
127
+ and the Go API TaskData struct.
128
+ """
129
+
130
+ task_description: str = Field(..., description="Description of the task")
131
+ progresses: list[str] | None = Field(
132
+ None, description="List of progress updates for the task"
133
+ )
134
+ user_preferences: list[str] | None = Field(
135
+ None, description="List of user preferences related to the task"
136
+ )
137
+ sop_thinking: str | None = Field(
138
+ None, description="Standard Operating Procedure thinking notes"
139
+ )
140
+
141
+
123
142
  class Task(BaseModel):
124
143
  """Task model representing a task in a session."""
125
144
 
@@ -127,7 +146,7 @@ class Task(BaseModel):
127
146
  session_id: str = Field(..., description="Session UUID")
128
147
  project_id: str = Field(..., description="Project UUID")
129
148
  order: int = Field(..., description="Task order")
130
- data: dict[str, Any] = Field(..., description="Task data dictionary")
149
+ data: TaskData = Field(..., description="Structured task data")
131
150
  status: str = Field(
132
151
  ...,
133
152
  description="Task status: 'success', 'failed', 'running', or 'pending'",
File without changes
File without changes