acontext 0.0.8__py3-none-any.whl → 0.0.9__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.
acontext/__init__.py
CHANGED
|
@@ -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
|
|
acontext/types/__init__.py
CHANGED
|
@@ -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",
|
acontext/types/session.py
CHANGED
|
@@ -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:
|
|
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'",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
acontext/__init__.py,sha256=
|
|
1
|
+
acontext/__init__.py,sha256=jAgRawWIjyMd6g3gq7Xm_3vNB31cPj8rMFPO4LGQKdM,1027
|
|
2
2
|
acontext/_constants.py,sha256=-OxfFwn4UdkQiNkyWhBmpM7KnZv6SgR-gMPEkjLKtDA,362
|
|
3
3
|
acontext/_utils.py,sha256=GKQH45arKh0sDu64u-5jwrII_ctnU_oChYlgR5lRkfE,1250
|
|
4
4
|
acontext/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -21,13 +21,13 @@ acontext/resources/disks.py,sha256=BjVhVXoujHWhg6L0TG9GmW9HLTTldJYEPxCbuppRkc4,6
|
|
|
21
21
|
acontext/resources/sessions.py,sha256=mETp0dtGBi9e20L5f_KbCzw-6oP0pjtUmx-9Vlb8vYA,12634
|
|
22
22
|
acontext/resources/spaces.py,sha256=LJP9krygZGdktMDtYGudCpk7yBxe_4v34QLk3SdejwQ,6267
|
|
23
23
|
acontext/resources/tools.py,sha256=II_185B0HYKSP43hizE6C1zs7kjkkPLKihuEG8s-DRY,1046
|
|
24
|
-
acontext/types/__init__.py,sha256=
|
|
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=
|
|
27
|
+
acontext/types/session.py,sha256=HU8i8zxHGfGkHS9YRlh4JDst3aWZLfqSIUVq-HX4GYg,8444
|
|
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.
|
|
32
|
-
acontext-0.0.
|
|
33
|
-
acontext-0.0.
|
|
31
|
+
acontext-0.0.9.dist-info/WHEEL,sha256=xDCZ-UyfvkGuEHPeI7BcJzYKIZzdqN8A8o1M5Om8IyA,79
|
|
32
|
+
acontext-0.0.9.dist-info/METADATA,sha256=O1dmjGIvaW5EisSVf5E9huYMe2jo_SmrYUUhy6JVv_Q,14395
|
|
33
|
+
acontext-0.0.9.dist-info/RECORD,,
|
|
File without changes
|