agent-work-layer 0.1.0__tar.gz → 0.2.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.
- {agent_work_layer-0.1.0 → agent_work_layer-0.2.0}/PKG-INFO +1 -1
- {agent_work_layer-0.1.0 → agent_work_layer-0.2.0}/pyproject.toml +1 -1
- {agent_work_layer-0.1.0 → agent_work_layer-0.2.0}/src/agent_work_layer/__init__.py +1 -1
- {agent_work_layer-0.1.0 → agent_work_layer-0.2.0}/src/agent_work_layer/models.py +3 -1
- {agent_work_layer-0.1.0 → agent_work_layer-0.2.0}/src/agent_work_layer/schemas/work-order.schema.json +4 -3
- {agent_work_layer-0.1.0 → agent_work_layer-0.2.0}/src/agent_work_layer/validate.py +2 -2
- {agent_work_layer-0.1.0 → agent_work_layer-0.2.0}/.gitignore +0 -0
- {agent_work_layer-0.1.0 → agent_work_layer-0.2.0}/README.md +0 -0
- {agent_work_layer-0.1.0 → agent_work_layer-0.2.0}/src/agent_work_layer/py.typed +0 -0
- {agent_work_layer-0.1.0 → agent_work_layer-0.2.0}/src/agent_work_layer/schemas/work-report.schema.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: agent-work-layer
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Work Orders and Work Reports for AI agents: Pydantic models and the spec's validation rules.
|
|
5
5
|
Project-URL: Homepage, https://github.com/probita-ai/agent-work-layer/tree/main/python#readme
|
|
6
6
|
Project-URL: Repository, https://github.com/probita-ai/agent-work-layer
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "agent-work-layer"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.2.0"
|
|
8
8
|
description = "Work Orders and Work Reports for AI agents: Pydantic models and the spec's validation rules."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -100,7 +100,7 @@ class Handoff(_Part):
|
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
class WorkOrder(_Document):
|
|
103
|
-
spec: Literal["awl/work-order@0.1", "awl/work-order@0.2"] = ORDER_SPEC
|
|
103
|
+
spec: Literal["awl/work-order@0.1", "awl/work-order@0.2", "awl/work-order@0.3"] = ORDER_SPEC
|
|
104
104
|
id: Annotated[str, Field(min_length=1, max_length=128)]
|
|
105
105
|
created_at: Timestamp
|
|
106
106
|
from_: AgentRef = Field(alias="from")
|
|
@@ -117,6 +117,8 @@ class WorkOrder(_Document):
|
|
|
117
117
|
handoff: Optional[Handoff] = None
|
|
118
118
|
output_schema: Optional[Dict[str, Any]] = None
|
|
119
119
|
parent_id: Optional[Text] = None
|
|
120
|
+
#: The order this one picks up from, after it stopped (SPEC.md §4.5). Not a sub-order.
|
|
121
|
+
continues: Optional[Text] = None
|
|
120
122
|
metadata: Optional[Dict[str, Any]] = None
|
|
121
123
|
|
|
122
124
|
@model_validator(mode="after")
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://awl.dev/schemas/work-order-0.
|
|
4
|
-
"title": "AWL Work Order v0.
|
|
3
|
+
"$id": "https://awl.dev/schemas/work-order-0.3.json",
|
|
4
|
+
"title": "AWL Work Order v0.3",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": ["spec", "id", "created_at", "from", "to", "goal", "criteria", "budget", "deadline", "tools"],
|
|
7
7
|
"properties": {
|
|
8
|
-
"spec": { "enum": ["awl/work-order@0.1", "awl/work-order@0.2"] },
|
|
8
|
+
"spec": { "enum": ["awl/work-order@0.1", "awl/work-order@0.2", "awl/work-order@0.3"] },
|
|
9
9
|
"id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
10
10
|
"created_at": { "type": "string", "format": "date-time" },
|
|
11
11
|
"from": { "$ref": "#/$defs/agentRef" },
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"handoff": { "$ref": "#/$defs/handoff" },
|
|
42
42
|
"output_schema": { "type": "object" },
|
|
43
43
|
"parent_id": { "type": "string", "minLength": 1 },
|
|
44
|
+
"continues": { "type": "string", "minLength": 1 },
|
|
44
45
|
"metadata": { "type": "object" }
|
|
45
46
|
},
|
|
46
47
|
"patternProperties": { "^x-": {} },
|
|
@@ -18,10 +18,10 @@ from jsonschema import Draft202012Validator, FormatChecker, ValidationError
|
|
|
18
18
|
from jsonschema.exceptions import SchemaError
|
|
19
19
|
from jsonschema.validators import extend
|
|
20
20
|
|
|
21
|
-
ORDER_SPEC = "awl/work-order@0.
|
|
21
|
+
ORDER_SPEC = "awl/work-order@0.3"
|
|
22
22
|
REPORT_SPEC = "awl/work-report@0.2"
|
|
23
23
|
#: Every spec version this package reads (SPEC.md §11).
|
|
24
|
-
ORDER_SPECS = ("awl/work-order@0.1", ORDER_SPEC)
|
|
24
|
+
ORDER_SPECS = ("awl/work-order@0.1", "awl/work-order@0.2", ORDER_SPEC)
|
|
25
25
|
REPORT_SPECS = ("awl/work-report@0.1", REPORT_SPEC)
|
|
26
26
|
#: Budget and cost units (SPEC.md §4.2).
|
|
27
27
|
UNITS = ("usd", "tokens", "tool_calls", "seconds")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|