Skip to content

Commit 0d08f71

Browse files
committed
Capability definition updates
1 parent 008e517 commit 0d08f71

59 files changed

Lines changed: 2559 additions & 61 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ GLOSSARY_GEN := scripts/generate_glossary_docs.py
1010
SERVICE_API_DOC := docs/service-api.md
1111
SERVICE_API_GEN := scripts/generate_service_api_docs.py
1212
SERVICE_API_SRC := $(shell find services -type f -path 'services/*/*/service.py' | sort)
13+
CAPABILITY_DOC := docs/capabilities.md
14+
CAPABILITY_GEN := scripts/generate_capability_docs.py
15+
CAPABILITY_SRC := $(shell find capabilities -type f | sort)
1316
DIAGRAM_SRC := img/diagrams.drawio
1417
DIAGRAM_GEN := img/export-diagrams.sh
1518
DIAGRAM_PNGS := \
@@ -62,14 +65,17 @@ test: check
6265
integration:
6366
:
6467

65-
docs: $(GLOSSARY_DOC) $(SERVICE_API_DOC) $(DIAGRAM_PNGS)
68+
docs: $(GLOSSARY_DOC) $(SERVICE_API_DOC) $(CAPABILITY_DOC) $(DIAGRAM_PNGS)
6669

6770
$(GLOSSARY_DOC): $(GLOSSARY_SRC) $(GLOSSARY_GEN)
6871
$(PY) $(GLOSSARY_GEN)
6972

7073
$(SERVICE_API_DOC): $(SERVICE_API_SRC) $(SERVICE_API_GEN)
7174
$(PY) $(SERVICE_API_GEN)
7275

76+
$(CAPABILITY_DOC): $(CAPABILITY_SRC) $(CAPABILITY_GEN)
77+
$(PY) $(CAPABILITY_GEN)
78+
7379
$(DIAGRAM_PNGS): $(DIAGRAM_SRC) $(DIAGRAM_GEN)
7480
$(DIAGRAM_GEN) $(DIAGRAM_SRC)
7581

capabilities/cache/cache-delete-value/capability.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"autonomy": 0,
88
"requires_approval": true,
99
"side_effects": ["writes_cache"],
10-
"required_capabilities": [],
1110
"input_schema": {
1211
"component_id": "string | The canonical component id namespace for the cache key.",
1312
"key": "string | The cache key within the component namespace."

capabilities/cache/cache-get-value/capability.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"autonomy": 0,
88
"requires_approval": false,
99
"side_effects": [],
10-
"required_capabilities": [],
1110
"input_schema": {
1211
"component_id": "string | The canonical component id namespace for the cache key.",
1312
"key": "string | The cache key within the component namespace."

capabilities/cache/cache-peek-queue/capability.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"autonomy": 0,
88
"requires_approval": false,
99
"side_effects": [],
10-
"required_capabilities": [],
1110
"input_schema": {
1211
"component_id": "string | The canonical component id namespace for the queue.",
1312
"queue": "string | The queue name within the component namespace."

capabilities/cache/cache-pop-queue/capability.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"autonomy": 0,
88
"requires_approval": false,
99
"side_effects": [],
10-
"required_capabilities": [],
1110
"input_schema": {
1211
"component_id": "string | The canonical component id namespace for the queue.",
1312
"queue": "string | The queue name within the component namespace."

capabilities/cache/cache-push-queue/capability.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"autonomy": 0,
88
"requires_approval": true,
99
"side_effects": ["writes_cache"],
10-
"required_capabilities": [],
1110
"input_schema": {
1211
"component_id": "string | The canonical component id namespace for the queue.",
1312
"queue": "string | The queue name within the component namespace.",

capabilities/cache/cache-set-value/capability.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"autonomy": 0,
88
"requires_approval": true,
99
"side_effects": ["writes_cache"],
10-
"required_capabilities": [],
1110
"input_schema": {
1211
"component_id": "string | The canonical component id namespace for the cache key.",
1312
"key": "string | The cache key within the component namespace.",

capabilities/demo-echo/capability.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"autonomy": 0,
88
"requires_approval": false,
99
"side_effects": [],
10-
"required_capabilities": [],
1110
"input_schema": null,
1211
"output_schema": "string | Returns the static string 'Hello, World!'."
1312
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# embedding-upsert-document-batch
2+
3+
Persist a batch of embedding vectors for chunk and spec pairs.
4+
5+
## Parameters
6+
7+
| Name | Type | Required | Default | Description |
8+
|------|------|----------|---------|-------------|
9+
| `items` | `list[UpsertEmbeddingVectorInput]` | yes || Batch of chunk/spec/vector inputs to persist. |
10+
11+
## Returns
12+
13+
`list[EmbeddingRecord]` — persisted embedding materialization records.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"capability_id": "embedding-upsert-document-batch",
3+
"kind": "native_op",
4+
"version": "1.0.0",
5+
"summary": "Persist a batch of embedding vectors for chunk and spec pairs.",
6+
"enabled": true,
7+
"autonomy": 0,
8+
"requires_approval": false,
9+
"side_effects": ["writes_embeddings"],
10+
"input_schema": {
11+
"type": "object",
12+
"properties": {
13+
"items": {
14+
"type": "array",
15+
"description": "Batch of chunk/spec/vector inputs to persist.",
16+
"items": {
17+
"type": "object",
18+
"properties": {
19+
"chunk_id": {
20+
"type": "string"
21+
},
22+
"spec_id": {
23+
"type": "string"
24+
},
25+
"vector": {
26+
"type": "array",
27+
"items": {
28+
"type": "number"
29+
}
30+
}
31+
},
32+
"required": ["chunk_id", "spec_id", "vector"]
33+
}
34+
}
35+
},
36+
"required": ["items"],
37+
"additionalProperties": false
38+
},
39+
"output_schema": {
40+
"type": "array",
41+
"description": "Persisted embedding materialization records.",
42+
"items": {
43+
"type": "object",
44+
"properties": {
45+
"chunk_id": {
46+
"type": "string"
47+
},
48+
"spec_id": {
49+
"type": "string"
50+
},
51+
"content_hash": {
52+
"type": "string"
53+
},
54+
"status": {
55+
"type": "string",
56+
"enum": ["pending", "indexed", "failed"]
57+
},
58+
"error_detail": {
59+
"type": "string"
60+
},
61+
"created_at": {
62+
"type": "string",
63+
"format": "date-time"
64+
},
65+
"updated_at": {
66+
"type": "string",
67+
"format": "date-time"
68+
}
69+
},
70+
"required": [
71+
"chunk_id",
72+
"spec_id",
73+
"content_hash",
74+
"status",
75+
"error_detail",
76+
"created_at",
77+
"updated_at"
78+
]
79+
}
80+
},
81+
"call_target": "service_embedding_authority.upsert_embedding_vectors"
82+
}

0 commit comments

Comments
 (0)