@quickpipeaiab/domain 0.0.0-stage → 0.9.0

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.
package/ai.ttl ADDED
@@ -0,0 +1,3653 @@
1
+ @prefix ai: <https://id.quickpipe.ai/domain/ai#> .
2
+ @prefix ai-vocab: <https://id.quickpipe.ai/domain/vocab/ai#> .
3
+ @prefix core: <https://id.quickpipe.ai/domain/core#> .
4
+ @prefix core-vocab: <https://id.quickpipe.ai/domain/vocab/core#> .
5
+ @prefix identity: <https://id.quickpipe.ai/domain/identity#> .
6
+ @prefix billing: <https://id.quickpipe.ai/domain/billing#> .
7
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
8
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11
+
12
+ <https://id.quickpipe.ai/domain/ai>
13
+ a owl:Ontology ;
14
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.9.0/ai> ;
15
+ owl:versionInfo "0.9.0" ;
16
+ core:title "QuickPipe domain model: ai"@en ;
17
+ core:preferred-prefix "ai" ;
18
+ core:preferred-namespace "https://id.quickpipe.ai/domain/ai#" ;
19
+ owl:imports <https://id.quickpipe.ai/domain/core> ,
20
+ <https://id.quickpipe.ai/domain/vocab/ai> ,
21
+ <https://id.quickpipe.ai/domain/identity> ,
22
+ <https://id.quickpipe.ai/domain/billing> .
23
+
24
+ # Runs (kai-agent 0041 Runs, platform decision 0003 Q3, Q8, Q10).
25
+
26
+ ai:run a owl:Class ;
27
+ rdfs:subClassOf core:run ;
28
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:run
29
+ [ a owl:Restriction ; owl:onProperty ai:of-task ; owl:someValuesFrom ai:task ] ) ] ;
30
+ core:label "run of kai-agent"@en ;
31
+ core:definition "One execution of one task, with one prompt version. A run of the caller of a key is for one workspace and one user. A run of an internal caller has no workspace and no user."@en ;
32
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
33
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
34
+ core:owner core:kai-agent ;
35
+ core:has-contract true ;
36
+ core:retention "none" ;
37
+ core:retention-clock core-vocab:retention-clock-since-created ;
38
+ core:controller-role core-vocab:controller-role-controller .
39
+
40
+ ai:run-segment a owl:Class ;
41
+ rdfs:subClassOf core:activity ;
42
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:activity
43
+ [ a owl:Restriction ; owl:onProperty ai:part-of-run ; owl:someValuesFrom ai:run ] ) ] ;
44
+ core:label "run segment"@en ;
45
+ core:definition "The part of a run from its start or a resume to the next suspend or its final status. Its number is unique in its run, and the first run segment has the number 1."@en ;
46
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
47
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
48
+ core:owner core:kai-agent .
49
+
50
+ ai:run-status-period a owl:Class ;
51
+ rdfs:subClassOf core:entity ;
52
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
53
+ [ a owl:Restriction ; owl:onProperty ai:of-run ; owl:someValuesFrom ai:run ]
54
+ [ a owl:Restriction ; owl:onProperty ai:has-status-value ; owl:someValuesFrom core:concept ] ) ] ;
55
+ core:label "run status period"@en ;
56
+ core:definition "One state of a run for a period of time, from its generated-at time to its invalidated-at time."@en ;
57
+ core:example "A time-bounded entity: it holds from its generated-at time to its invalidated-at time, and the current status has no invalidated-at time (platform decision 0003 Q10)."@en ;
58
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
59
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
60
+ core:owner core:kai-agent ;
61
+ core:division core-vocab:division-open ;
62
+ core:has-contract true .
63
+
64
+ ai:final-status a owl:Class ;
65
+ rdfs:subClassOf ai:run-status-period ;
66
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:run-status-period
67
+ [ a owl:Class ; owl:unionOf (
68
+ [ a owl:Restriction ; owl:onProperty ai:has-status-value ; owl:hasValue ai-vocab:run-status-completed ]
69
+ [ a owl:Restriction ; owl:onProperty ai:has-status-value ; owl:hasValue ai-vocab:run-status-failed ]
70
+ [ a owl:Restriction ; owl:onProperty ai:has-status-value ; owl:hasValue ai-vocab:run-status-cancelled ]
71
+ [ a owl:Restriction ; owl:onProperty ai:has-status-value ; owl:hasValue ai-vocab:run-status-skipped ] ) ] ) ] ;
72
+ core:label "final status"@en ;
73
+ core:definition "A status after which a run cannot change."@en ;
74
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
75
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
76
+ core:owner core:kai-agent .
77
+
78
+ ai:webhook a owl:Class ;
79
+ rdfs:subClassOf core:event ;
80
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:event
81
+ [ a owl:Restriction ; owl:onProperty ai:tells-status ; owl:someValuesFrom ai:run-status-period ] ) ] ;
82
+ core:label "webhook of kai-agent"@en ;
83
+ core:definition "When a run suspends or gets a final status, the service sends a webhook to the webhook URL of the key that started the run."@en ;
84
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0010-run-streams.md#Decision" ;
85
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
86
+ core:owner core:kai-agent ;
87
+ core:division core-vocab:division-disjoint-open ;
88
+ core:has-contract true .
89
+
90
+ ai:run-suspended a owl:Class ;
91
+ rdfs:subClassOf ai:webhook ;
92
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:webhook
93
+ [ a owl:Restriction ; owl:onProperty ai:tells-status ; owl:someValuesFrom
94
+ [ a owl:Restriction ; owl:onProperty ai:has-status-value ; owl:hasValue ai-vocab:run-status-suspended ] ] ) ] ;
95
+ core:label "run suspended"@en ;
96
+ core:definition "The webhook `run.suspended`: the run got the status `suspended`. It asks the caller for tokens, or tells the caller that `billing` refused a hold."@en ;
97
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Contract" ;
98
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
99
+ core:owner core:kai-agent ;
100
+ core:has-contract true .
101
+
102
+ ai:run-completed a owl:Class ;
103
+ rdfs:subClassOf ai:webhook ;
104
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:webhook
105
+ [ a owl:Restriction ; owl:onProperty ai:tells-status ; owl:someValuesFrom
106
+ [ a owl:Restriction ; owl:onProperty ai:has-status-value ; owl:hasValue ai-vocab:run-status-completed ] ] ) ] ;
107
+ core:label "run completed"@en ;
108
+ core:definition "The webhook `run.completed`: the run got the final status `completed`. The service sends the output of the run with it."@en ;
109
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Contract" ;
110
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
111
+ core:owner core:kai-agent ;
112
+ core:has-contract true .
113
+
114
+ ai:run-failed a owl:Class ;
115
+ rdfs:subClassOf ai:webhook ;
116
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:webhook
117
+ [ a owl:Restriction ; owl:onProperty ai:tells-status ; owl:someValuesFrom
118
+ [ a owl:Restriction ; owl:onProperty ai:has-status-value ; owl:hasValue ai-vocab:run-status-failed ] ] ) ] ;
119
+ core:label "run failed"@en ;
120
+ core:definition "The webhook `run.failed`: the run got the final status `failed`."@en ;
121
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Contract" ;
122
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
123
+ core:owner core:kai-agent ;
124
+ core:has-contract true .
125
+
126
+ ai:run-cancelled a owl:Class ;
127
+ rdfs:subClassOf ai:webhook ;
128
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:webhook
129
+ [ a owl:Restriction ; owl:onProperty ai:tells-status ; owl:someValuesFrom
130
+ [ a owl:Restriction ; owl:onProperty ai:has-status-value ; owl:hasValue ai-vocab:run-status-cancelled ] ] ) ] ;
131
+ core:label "run cancelled"@en ;
132
+ core:definition "The webhook `run.cancelled`: the run got the final status `cancelled`."@en ;
133
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Contract" ;
134
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
135
+ core:owner core:kai-agent ;
136
+ core:has-contract true .
137
+
138
+ ai:run-skipped a owl:Class ;
139
+ rdfs:subClassOf ai:webhook ;
140
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:webhook
141
+ [ a owl:Restriction ; owl:onProperty ai:tells-status ; owl:someValuesFrom
142
+ [ a owl:Restriction ; owl:onProperty ai:has-status-value ; owl:hasValue ai-vocab:run-status-skipped ] ] ) ] ;
143
+ core:label "run skipped"@en ;
144
+ core:definition "The webhook `run.skipped`: a run of a schedule got the final status `skipped` and did not start."@en ;
145
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Contract" ;
146
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
147
+ core:owner core:kai-agent ;
148
+ core:has-contract true .
149
+
150
+ [] a owl:AllDisjointClasses ;
151
+ owl:members ( ai:run-suspended ai:run-completed ai:run-failed ai:run-cancelled ai:run-skipped ) .
152
+
153
+ ai:run-limit a owl:Class ;
154
+ rdfs:subClassOf core:entity ;
155
+ core:label "run limit"@en ;
156
+ core:definition "A maximum of a run, from its task. A hold can lower the run limit of tokens of one run, as 0020 tells."@en ;
157
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
158
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
159
+ core:owner core:kai-agent .
160
+
161
+ ai:rate-limit a owl:Class ;
162
+ rdfs:subClassOf core:entity ;
163
+ core:label "rate limit"@en ;
164
+ core:definition "A maximum number of requests for one task, for each user and for each workspace. The task code holds it, as 0020 tells."@en ;
165
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
166
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
167
+ core:owner core:kai-agent .
168
+
169
+ ai:identifier-index a owl:Class ;
170
+ rdfs:subClassOf core:entity ;
171
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
172
+ [ a owl:Restriction ; owl:onProperty ai:of-run ; owl:someValuesFrom ai:run ]
173
+ [ a owl:Restriction ; owl:onProperty ai:has-identifier ; owl:someValuesFrom identity:identifier ] ) ] ;
174
+ core:label "identifier index"@en ;
175
+ core:definition "The identifiers of persons in the input and the tool results of a run. The service writes it at run time, as 0031 tells."@en ;
176
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
177
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
178
+ core:owner core:kai-agent ;
179
+ core:retention "none" ;
180
+ core:retention-clock core-vocab:retention-clock-since-created ;
181
+ core:controller-role core-vocab:controller-role-processor .
182
+
183
+ ai:schedule a owl:Class ;
184
+ rdfs:subClassOf core:entity ;
185
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
186
+ [ a owl:Restriction ; owl:onProperty ai:has-cron ; owl:someValuesFrom xsd:string ] ) ] ;
187
+ core:label "schedule"@en ;
188
+ core:definition "A task, a cron expression, a time zone, a workspace, a user and an input. The worker starts a run at each time of the schedule. The key that makes it owns it, as 0037 tells."@en ;
189
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
190
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
191
+ core:owner core:kai-agent ;
192
+ core:has-contract true ;
193
+ core:retention "none" ;
194
+ core:retention-clock core-vocab:retention-clock-since-created ;
195
+ core:controller-role core-vocab:controller-role-processor .
196
+
197
+ ai:thread a owl:Class ;
198
+ rdfs:subClassOf core:entity ;
199
+ core:label "thread"@en ;
200
+ core:definition "A conversation of one user in one workspace, with a title, its messages and its memory, as 0033 and 0024 tell."@en ;
201
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
202
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
203
+ core:owner core:kai-agent ;
204
+ core:has-contract true ;
205
+ core:retention "none" ;
206
+ core:retention-clock core-vocab:retention-clock-since-created ;
207
+ core:controller-role core-vocab:controller-role-processor .
208
+
209
+ ai:memory a owl:Class ;
210
+ rdfs:subClassOf core:entity ;
211
+ core:label "memory"@en ;
212
+ core:definition "The memory of a task that enables it: the `workingMemory` facts about the user, and the semantic recall of past messages. The Mastra resource is `workspace:user`. Memory never crosses workspaces or users."@en ;
213
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0024-memory-and-vectors.md#Decision" ;
214
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
215
+ core:owner core:kai-agent ;
216
+ core:retention "P30D" ;
217
+ core:retention-clock core-vocab:retention-clock-since-created ;
218
+ core:controller-role core-vocab:controller-role-processor .
219
+
220
+ # Run content (kai-agent 0023).
221
+
222
+ ai:run-content a owl:Class ;
223
+ rdfs:subClassOf core:entity ;
224
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
225
+ [ a owl:Restriction ; owl:onProperty ai:of-run ; owl:someValuesFrom ai:run ]
226
+ [ a owl:Restriction ; owl:onProperty ai:has-rendered-prompt ; owl:someValuesFrom xsd:string ] ) ] ;
227
+ core:label "run content"@en ;
228
+ core:definition "The table `execution.contents` holds the input, the rendered prompt, the output and the tool calls of each run. A daily job deletes content that is older than 30 days, and the metadata of the run stays. A task with `ephemeral` has no content. A request to erase a user or a workspace deletes its content."@en ;
229
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0023-content-retention.md#Decision" ;
230
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
231
+ core:owner core:kai-agent ;
232
+ core:retention "P30D" ;
233
+ core:retention-clock core-vocab:retention-clock-since-created ;
234
+ core:controller-role core-vocab:controller-role-processor .
235
+
236
+ # Scorers and scores (kai-agent 0016).
237
+
238
+ ai:scorer a owl:Class ;
239
+ rdfs:subClassOf core:entity ;
240
+ owl:disjointUnionOf ( ai:rule-scorer ai:judge-scorer ) ;
241
+ core:label "scorer"@en ;
242
+ core:definition "A scorer of a task, made with `createScorer` from `@mastra/core`. A scorer can be a rule or a model that acts as a judge."@en ;
243
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0016-prompt-promotion.md#Decision" ;
244
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
245
+ core:owner core:kai-agent ;
246
+ core:division core-vocab:division-disjoint-closed .
247
+
248
+ ai:rule-scorer a owl:Class ;
249
+ rdfs:subClassOf ai:scorer ;
250
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:scorer
251
+ [ a owl:Restriction ; owl:onProperty ai:has-scorer-kind ; owl:hasValue ai-vocab:scorer-kind-rule ] ) ] ;
252
+ core:label "rule scorer"@en ;
253
+ core:definition "A scorer that is a rule."@en ;
254
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0016-prompt-promotion.md#Decision" ;
255
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
256
+ core:owner core:kai-agent .
257
+
258
+ ai:judge-scorer a owl:Class ;
259
+ rdfs:subClassOf ai:scorer ;
260
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:scorer
261
+ [ a owl:Restriction ; owl:onProperty ai:has-scorer-kind ; owl:hasValue ai-vocab:scorer-kind-judge ] ) ] ;
262
+ core:label "judge scorer"@en ;
263
+ core:definition "A scorer that is a model that acts as a judge."@en ;
264
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0016-prompt-promotion.md#Decision" ;
265
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
266
+ core:owner core:kai-agent .
267
+
268
+ ai:score a owl:Class ;
269
+ rdfs:subClassOf core:entity ;
270
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
271
+ [ a owl:Restriction ; owl:onProperty ai:by-scorer ; owl:someValuesFrom ai:scorer ]
272
+ [ a owl:Restriction ; owl:onProperty ai:of-run ; owl:someValuesFrom ai:run ] ) ] ;
273
+ core:label "score of a run"@en ;
274
+ core:definition "The result of one scorer for one run. A replay and the live scores on a sample of runs give the scores that a person uses to review a draft and to publish it."@en ;
275
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0016-prompt-promotion.md#Decision" ;
276
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
277
+ core:owner core:kai-agent .
278
+
279
+ # Tasks and prompts (kai-agent 0041 Tasks and prompts).
280
+
281
+ ai:task a owl:Class ;
282
+ rdfs:subClassOf core:plan ;
283
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:plan
284
+ [ a owl:Restriction ; owl:onProperty ai:has-runner ; owl:someValuesFrom core:concept ] ) ] ;
285
+ core:label "task"@en ;
286
+ core:definition "A named unit of work in the catalog, with a runner, schemas, run limits, a task minimum and task tags."@en ;
287
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
288
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
289
+ core:owner core:kai-agent ;
290
+ core:division core-vocab:division-open ;
291
+ core:has-contract true .
292
+
293
+ ai:decision-task a owl:Class ;
294
+ rdfs:subClassOf ai:task ;
295
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:task
296
+ [ a owl:Restriction ; owl:onProperty ai:has-decision-form ; owl:someValuesFrom core:concept ]
297
+ [ a owl:Restriction ; owl:onProperty ai:has-runner ; owl:hasValue ai-vocab:runner-completion ]
298
+ [ a owl:Restriction ; owl:onProperty ai:has-output-kind ; owl:hasValue ai-vocab:output-kind-object ] ) ] ;
299
+ core:label "decision task"@en ;
300
+ core:definition "A task with a decision form, the runner `completion` and the output kind `object`. Its output has one decision in a closed form, as 0054 tells."@en ;
301
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
302
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
303
+ core:owner core:kai-agent .
304
+
305
+ ai:eval-set a owl:Class ;
306
+ rdfs:subClassOf core:entity ;
307
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
308
+ [ a owl:Restriction ; owl:onProperty ai:of-task ; owl:someValuesFrom ai:task ]
309
+ [ a owl:Restriction ; owl:onProperty ai:has-pass-mark ; owl:someValuesFrom xsd:decimal ] ) ] ;
310
+ core:label "eval set"@en ;
311
+ core:definition "The examples of one task, with one pass mark, that gate the prompt versions of the task. It is not the golden set of `leads` or a decision test of `lead-scoring`."@en ;
312
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
313
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
314
+ core:owner core:kai-agent .
315
+
316
+ ai:prompt-version a owl:Class ;
317
+ rdfs:subClassOf core:plan ;
318
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:plan
319
+ [ a owl:Restriction ; owl:onProperty ai:of-task ; owl:someValuesFrom ai:task ]
320
+ [ a owl:Restriction ; owl:onProperty ai:has-template ; owl:someValuesFrom xsd:string ] ) ] ;
321
+ core:label "prompt version"@en ;
322
+ core:definition "An immutable template of one task, with a number that is unique in its task, and its model settings."@en ;
323
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
324
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
325
+ core:owner core:kai-agent ;
326
+ core:division core-vocab:division-open ;
327
+ core:has-contract true .
328
+
329
+ ai:draft a owl:Class ;
330
+ rdfs:subClassOf ai:prompt-version ;
331
+ core:label "draft of kai-agent"@en ;
332
+ core:definition "A prompt version that was never `current` or `candidate`, and that no override pins."@en ;
333
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
334
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
335
+ core:owner core:kai-agent .
336
+
337
+ ai:partial a owl:Class ;
338
+ rdfs:subClassOf core:entity ;
339
+ core:label "partial"@en ;
340
+ core:definition "A named template block that many prompt versions use. It has its own numbers and belongs to no task."@en ;
341
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
342
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
343
+ core:owner core:kai-agent .
344
+
345
+ ai:release a owl:Class ;
346
+ rdfs:subClassOf core:entity ;
347
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
348
+ [ a owl:Restriction ; owl:onProperty ai:has-current ; owl:someValuesFrom ai:prompt-version ] ) ] ;
349
+ core:label "release of kai-agent"@en ;
350
+ core:definition "The `current` prompt version of a task, and an optional `candidate` with a percentage."@en ;
351
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
352
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
353
+ core:owner core:kai-agent ;
354
+ core:has-contract true .
355
+
356
+ ai:override a owl:Class ;
357
+ rdfs:subClassOf core:entity ;
358
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
359
+ [ a owl:Restriction ; owl:onProperty ai:pins ; owl:someValuesFrom ai:prompt-version ] ) ] ;
360
+ core:label "override"@en ;
361
+ core:definition "A pin of one workspace to one prompt version of one task, as 0038 tells. An override comes before the release."@en ;
362
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
363
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
364
+ core:owner core:kai-agent ;
365
+ core:has-contract true .
366
+
367
+ ai:eval-result a owl:Class ;
368
+ rdfs:subClassOf core:entity ;
369
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
370
+ [ a owl:Restriction ; owl:onProperty ai:with-prompt-version ; owl:someValuesFrom ai:prompt-version ]
371
+ [ a owl:Restriction ; owl:onProperty ai:has-eval-set-hash ; owl:someValuesFrom xsd:string ]
372
+ [ a owl:Restriction ; owl:onProperty ai:has-pass-mark ; owl:someValuesFrom xsd:decimal ]
373
+ [ a owl:Restriction ; owl:onProperty ai:has-average-score ; owl:someValuesFrom xsd:decimal ]
374
+ [ a owl:Restriction ; owl:onProperty ai:has-average-cost ; owl:someValuesFrom xsd:long ] ) ] ;
375
+ core:label "eval result"@en ;
376
+ core:definition "The result of one eval of one prompt version. It has the average score, the average cost of one eval run, the escalation rate, the hash of the eval set and the pass mark."@en ;
377
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
378
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
379
+ core:owner core:kai-agent .
380
+
381
+ # Registry (kai-agent 0041 Registry, 0018, 0021).
382
+
383
+ ai:fallback-list a owl:Class ;
384
+ rdfs:subClassOf core:entity ;
385
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
386
+ [ a owl:Restriction ; owl:onProperty [ owl:inverseOf ai:has-fallback-list ] ; owl:someValuesFrom ai:prompt-version ] ) ] ;
387
+ core:label "fallback list"@en ;
388
+ core:definition "The ordered list of models of a prompt version, each with its own model settings. The service uses the next model after a provider error, a time limit or an object that fails its schema after all repairs."@en ;
389
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Registry" ;
390
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
391
+ core:owner core:kai-agent ;
392
+ core:has-contract true .
393
+
394
+ ai:fallback-entry a owl:Class ;
395
+ rdfs:subClassOf core:entity ;
396
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
397
+ [ a owl:Restriction ; owl:onProperty ai:in-fallback-list ; owl:someValuesFrom ai:fallback-list ] ) ] ;
398
+ core:label "entry of a fallback list"@en ;
399
+ core:definition "Each entry of the fallback list is a `provider/model` with its own settings. It can use a different provider."@en ;
400
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
401
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
402
+ core:owner core:kai-agent ;
403
+ core:has-contract true .
404
+
405
+ # Calls and spend (kai-agent 0041 Calls and spend, platform decision 0003 Q4b).
406
+
407
+ ai:source a owl:Class ;
408
+ rdfs:subClassOf core:software-agent ;
409
+ owl:disjointUnionOf ( ai:provider ai:mcp-server ) ;
410
+ core:label "provider or MCP host of an outbound call"@en ;
411
+ core:definition "The provider or the MCP host of an outbound call."@en ;
412
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
413
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
414
+ core:owner core:kai-agent ;
415
+ core:division core-vocab:division-disjoint-closed .
416
+
417
+ ai:provider a owl:Class ;
418
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:source
419
+ [ a owl:Restriction ; owl:onProperty [ owl:inverseOf ai:of-provider ] ; owl:someValuesFrom ai:model ] ) ] ;
420
+ rdfs:subClassOf ai:source , billing:source ;
421
+ core:label "provider of kai-agent"@en ;
422
+ core:definition "An external API that gives models for a cost. The registry lists the providers."@en ;
423
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Registry" ;
424
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
425
+ core:owner core:kai-agent .
426
+
427
+ ai:mcp-server a owl:Class ;
428
+ rdfs:subClassOf ai:source ;
429
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:source
430
+ [ a owl:Restriction ; owl:onProperty [ owl:inverseOf ai:on-server ] ; owl:someValuesFrom ai:mcp-tool ] ) ] ;
431
+ core:label "MCP server"@en ;
432
+ core:definition "A server that gives tools through the Model Context Protocol. The caller names it in the field `servers` of a request, and its host must match the allow list of 0011."@en ;
433
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
434
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
435
+ core:owner core:kai-agent ;
436
+ core:has-contract true .
437
+
438
+ [] a owl:AllDisjointClasses ;
439
+ owl:members ( identity:source ai:source ) .
440
+
441
+ ai:target a owl:Class ;
442
+ rdfs:subClassOf core:entity ;
443
+ core:label "target"@en ;
444
+ core:definition "The model, the operation or the tool of an outbound call."@en ;
445
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
446
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
447
+ core:owner core:kai-agent ;
448
+ core:division core-vocab:division-disjoint-open .
449
+
450
+ ai:model a owl:Class ;
451
+ rdfs:subClassOf ai:target ;
452
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:target
453
+ [ a owl:Restriction ; owl:onProperty ai:of-provider ; owl:someValuesFrom ai:provider ] ) ] ;
454
+ core:label "model of kai-agent"@en ;
455
+ core:definition "One `provider/model` of the registry. A prompt version names its model and the model settings, as 0021 tells."@en ;
456
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Registry" ;
457
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
458
+ core:owner core:kai-agent ;
459
+ core:has-contract true .
460
+
461
+ ai:tool a owl:Class ;
462
+ rdfs:subClassOf ai:target ;
463
+ owl:disjointUnionOf ( ai:mcp-tool ai:client-tool ) ;
464
+ core:label "tool"@en ;
465
+ core:definition "An operation that the model of a run can call. The task sets the tools that its runs can use."@en ;
466
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
467
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
468
+ core:owner core:kai-agent ;
469
+ core:division core-vocab:division-disjoint-closed ;
470
+ core:has-contract true .
471
+
472
+ [] a owl:AllDisjointClasses ;
473
+ owl:members ( ai:model ai:tool ) .
474
+
475
+ ai:mcp-tool a owl:Class ;
476
+ rdfs:subClassOf ai:tool ;
477
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:tool
478
+ [ a owl:Restriction ; owl:onProperty ai:has-tool-kind ; owl:hasValue ai-vocab:tool-kind-mcp ] ) ] ;
479
+ core:label "MCP tool"@en ;
480
+ core:definition "A tool of an MCP server. The model sees each tool as `{server}.{tool}`, for example `crm.updateDealStage`."@en ;
481
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0011-mcp-servers.md#Decision" ;
482
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
483
+ core:owner core:kai-agent ;
484
+ core:has-contract true .
485
+
486
+ ai:client-tool a owl:Class ;
487
+ rdfs:subClassOf ai:tool ;
488
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:tool
489
+ [ a owl:Restriction ; owl:onProperty ai:has-tool-kind ; owl:hasValue ai-vocab:tool-kind-client ] ) ] ;
490
+ core:label "client tool"@en ;
491
+ core:definition "A tool that the caller declares in the field `tools` of a request, with no server code. The browser of the caller runs it while the run has the status `suspended`, as 0013 tells."@en ;
492
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
493
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
494
+ core:owner core:kai-agent ;
495
+ core:has-contract true .
496
+
497
+ ai:server-token a owl:Class ;
498
+ rdfs:subClassOf core:entity ;
499
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
500
+ [ a owl:Restriction ; owl:onProperty ai:for-server ; owl:someValuesFrom ai:mcp-server ] ) ] ;
501
+ core:label "server token"@en ;
502
+ core:definition "A token that the service sends to one MCP server, with one server token kind."@en ;
503
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
504
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
505
+ core:owner core:kai-agent ;
506
+ core:has-contract true .
507
+
508
+ ai:outbound-call a owl:Class ;
509
+ rdfs:subClassOf core:activity ;
510
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:activity
511
+ [ a owl:Restriction ; owl:onProperty ai:to-source ; owl:someValuesFrom ai:source ] ) ] ;
512
+ core:label "outbound call"@en ;
513
+ core:definition "One request from the service to a provider or an MCP server."@en ;
514
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
515
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
516
+ core:owner core:kai-agent ;
517
+ core:division core-vocab:division-open .
518
+
519
+ ai:repair-attempt a owl:Class ;
520
+ rdfs:subClassOf ai:outbound-call ,
521
+ [ a owl:Restriction ; owl:onProperty ai:has-outbound-kind ; owl:hasValue ai-vocab:outbound-kind-model ] ;
522
+ core:label "repair attempt"@en ;
523
+ core:definition "An outbound call of the kind `model` that sends the Ajv errors of an object and asks for a corrected object."@en ;
524
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
525
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
526
+ core:owner core:kai-agent .
527
+
528
+ ai:escalation a owl:Class ;
529
+ rdfs:subClassOf ai:outbound-call ;
530
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:outbound-call
531
+ [ a owl:Restriction ; owl:onProperty ai:has-outbound-kind ; owl:hasValue ai-vocab:outbound-kind-model ]
532
+ [ a owl:Restriction ; owl:onProperty ai:escalates ; owl:someValuesFrom ai:outbound-call ] ) ] ;
533
+ owl:disjointWith ai:repair-attempt ;
534
+ core:label "model escalation"@en ;
535
+ core:definition "An outbound call of the kind `model` to the escalation model, after a valid object with the confidence `low`. It sends the same prompt and the same input. It is not the escalation of `desk`."@en ;
536
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
537
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
538
+ core:owner core:kai-agent .
539
+
540
+ ai:spend-entry a owl:Class ;
541
+ rdfs:subClassOf core:entity ;
542
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
543
+ [ a owl:Restriction ; owl:onProperty ai:of-outbound-call ; owl:someValuesFrom ai:outbound-call ]
544
+ [ a owl:Restriction ; owl:onProperty ai:in-cost-unit ; owl:someValuesFrom core:concept ] ) ] ;
545
+ core:label "spend entry"@en ;
546
+ core:definition "One row of `spend.entries`: the cost of one cost unit of one outbound call."@en ;
547
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
548
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
549
+ core:owner core:kai-agent ;
550
+ core:retention "none" ;
551
+ core:retention-clock core-vocab:retention-clock-since-created ;
552
+ core:controller-role core-vocab:controller-role-controller .
553
+
554
+ ai:budget a owl:Class ;
555
+ rdfs:subClassOf core:entity ;
556
+ core:label "budget of kai-agent"@en ;
557
+ core:definition "A maximum of the costs of QuickPipe in one calendar month in UTC. It protects QuickPipe. It is not a monthly limit of a workspace."@en ;
558
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
559
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
560
+ core:owner core:kai-agent .
561
+
562
+ ai:model-limit a owl:Class ;
563
+ rdfs:subClassOf core:entity ;
564
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
565
+ [ a owl:Restriction ; owl:onProperty ai:to-source ; owl:someValuesFrom ai:source ]
566
+ [ a owl:Restriction ; owl:onProperty ai:to-target ; owl:someValuesFrom ai:target ]
567
+ [ a owl:Restriction ; owl:onProperty ai:has-call-timeout ; owl:someValuesFrom xsd:integer ] ) ] ;
568
+ core:label "model limit"@en ;
569
+ core:definition "The maximums of one model of one provider: its call time limit."@en ;
570
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
571
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
572
+ core:owner core:kai-agent ;
573
+ core:has-contract true .
574
+
575
+ # Actors (kai-agent 0041 Actors). Workspace, user, key and the roles caller and audit actor are terms of core.
576
+
577
+ ai:admin-change a owl:Class ;
578
+ rdfs:subClassOf core:activity ;
579
+ core:label "admin change"@en ;
580
+ core:definition "Each change writes a row to `access.audit` with the actor, the change and a diff."@en ;
581
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0017-prompt-admin.md#Decision" ;
582
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
583
+ core:owner core:kai-agent ;
584
+ core:retention "P7Y" ;
585
+ core:retention-clock core-vocab:retention-clock-since-created ;
586
+ core:controller-role core-vocab:controller-role-controller .
587
+
588
+ [] a owl:AllDisjointClasses ;
589
+ owl:members ( ai:run ai:run-segment ai:run-status-period ai:webhook ai:task ai:prompt-version ai:partial ai:release ai:override
590
+ ai:fallback-list ai:fallback-entry ai:run-limit ai:rate-limit ai:identifier-index ai:schedule ai:thread ai:memory
591
+ ai:target ai:server-token ai:source ai:outbound-call ai:spend-entry ai:budget ai:model-limit ai:admin-change ai:run-content ai:scorer ai:score
592
+ ai:eval-set ai:eval-result ) .
593
+
594
+ # Object properties.
595
+
596
+ ai:of-task a owl:ObjectProperty , owl:FunctionalProperty ;
597
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:prompt-version ai:release ai:override ai:schedule ai:spend-entry ai:scorer ai:eval-set ) ] ;
598
+ rdfs:range ai:task ;
599
+ core:label "of task"@en ;
600
+ core:definition "The task of a run, a prompt version, a release, an override, a schedule, a spend entry, a scorer or an eval set."@en ;
601
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
602
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
603
+ core:owner core:kai-agent .
604
+
605
+ ai:with-prompt-version a owl:ObjectProperty , owl:FunctionalProperty ;
606
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:spend-entry ai:eval-result ) ] ;
607
+ rdfs:range ai:prompt-version ;
608
+ core:label "with prompt version"@en ;
609
+ core:definition "Each run records its prompt version. Each trace and each spend row has the version. Each eval result is for one prompt version."@en ;
610
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0014-prompt-store.md#Decision" ;
611
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
612
+ core:owner core:kai-agent .
613
+
614
+ ai:by-caller a owl:ObjectProperty , owl:FunctionalProperty ;
615
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:spend-entry ) ] ;
616
+ rdfs:range core:concept ;
617
+ core:label "by caller"@en ;
618
+ core:definition "The caller of a run, from the scheme of callers: a backend with a key, or the internal caller `eval` or `replay`. A spend entry has a copy of the caller of its run."@en ;
619
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Actors" ;
620
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
621
+ core:owner core:kai-agent .
622
+
623
+ ai:of-schedule a owl:ObjectProperty , owl:FunctionalProperty ;
624
+ rdfs:domain ai:run ;
625
+ rdfs:range ai:schedule ;
626
+ core:label "of schedule"@en ;
627
+ core:definition "The schedule whose time started the run. The worker starts a run at each time of the schedule."@en ;
628
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0037-schedules.md#Decision" ;
629
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
630
+ core:owner core:kai-agent .
631
+
632
+ ai:in-thread a owl:ObjectProperty , owl:FunctionalProperty ;
633
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:memory ) ] ;
634
+ rdfs:range ai:thread ;
635
+ core:label "in thread"@en ;
636
+ core:definition "The thread of a conversation. The caller sends a `thread` id for a conversation."@en ;
637
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0024-memory-and-vectors.md#Decision" ;
638
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
639
+ core:owner core:kai-agent .
640
+
641
+ ai:of-run a owl:ObjectProperty , owl:FunctionalProperty ;
642
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run-status-period ai:identifier-index ai:server-token ai:outbound-call ai:spend-entry ai:run-content ai:score ai:flow-event ) ] ;
643
+ rdfs:range ai:run ;
644
+ core:label "of run"@en ;
645
+ core:definition "The run of a run status, an identifier index, a stored server token, an outbound call or a spend entry."@en ;
646
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
647
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
648
+ core:owner core:kai-agent .
649
+
650
+ ai:part-of-run a owl:ObjectProperty , owl:FunctionalProperty ;
651
+ rdfs:domain ai:run-segment ;
652
+ rdfs:range ai:run ;
653
+ core:label "part of run"@en ;
654
+ core:definition "The run that a run segment is a part of."@en ;
655
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
656
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
657
+ core:owner core:kai-agent .
658
+
659
+ ai:with-hold a owl:ObjectProperty , owl:FunctionalProperty ;
660
+ rdfs:domain ai:run-segment ;
661
+ rdfs:range billing:hold ;
662
+ core:label "with hold"@en ;
663
+ core:definition "Each run segment of a run of a workspace with a maximum cost above zero gets one hold of kind `run` in `billing` before its first model call. The hold id is `kai-agent:run:<id>:<segment>`, with the run id and the number of the run segment."@en ;
664
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0020-limits.md#Holds" ;
665
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
666
+ core:owner core:kai-agent .
667
+
668
+ ai:in-run-segment a owl:ObjectProperty , owl:FunctionalProperty ;
669
+ rdfs:domain ai:outbound-call ;
670
+ rdfs:range ai:run-segment ;
671
+ core:label "in run segment"@en ;
672
+ core:definition "The run segment of an outbound call. The cost of a run segment is the sum of the spend entries of the run segment."@en ;
673
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0020-limits.md#Holds" ;
674
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
675
+ core:owner core:kai-agent .
676
+
677
+ ai:has-status-value a owl:ObjectProperty , owl:FunctionalProperty ;
678
+ rdfs:domain ai:run-status-period ;
679
+ rdfs:range core:concept ;
680
+ core:label "has status value"@en ;
681
+ core:definition "The value of a run status, from the scheme of run statuses."@en ;
682
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
683
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
684
+ core:owner core:kai-agent .
685
+
686
+ ai:has-suspend-reason a owl:ObjectProperty , owl:FunctionalProperty ;
687
+ rdfs:domain ai:run-status-period ;
688
+ rdfs:range core:concept ;
689
+ core:label "has suspend reason"@en ;
690
+ core:definition "Why a run has the status `suspended`. A suspended run has one reason."@en ;
691
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
692
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
693
+ core:owner core:kai-agent .
694
+
695
+ ai:has-skip-reason a owl:ObjectProperty , owl:FunctionalProperty ;
696
+ rdfs:domain ai:run-status-period ;
697
+ rdfs:range core:concept ;
698
+ core:label "has skip reason"@en ;
699
+ core:definition "Why a run of a schedule did not start. A run of a schedule that did not start has one skip reason."@en ;
700
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
701
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
702
+ core:owner core:kai-agent .
703
+
704
+ ai:has-failure-reason a owl:ObjectProperty , owl:FunctionalProperty ;
705
+ rdfs:domain ai:run-status-period ;
706
+ rdfs:range core:concept ;
707
+ core:label "has failure reason"@en ;
708
+ core:definition "Why a run has the status `failed`. A failed run has one failure reason, the first cause that stops the run."@en ;
709
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
710
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
711
+ core:owner core:kai-agent .
712
+
713
+ ai:tells-status a owl:ObjectProperty , owl:FunctionalProperty ;
714
+ rdfs:domain ai:webhook ;
715
+ rdfs:range ai:run-status-period ;
716
+ core:label "tells status"@en ;
717
+ core:definition "The run status that a webhook tells. The run webhooks are the status history of a run."@en ;
718
+ core:source "docs/decisions/0003-modelling-patterns.md#Decision" ;
719
+ core:decided-in "docs/decisions/0003-modelling-patterns.md" ;
720
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
721
+ core:owner core:kai-agent .
722
+
723
+ ai:has-runner a owl:ObjectProperty , owl:FunctionalProperty ;
724
+ rdfs:domain ai:task ;
725
+ rdfs:range core:concept ;
726
+ core:label "has runner"@en ;
727
+ core:definition "How the service runs a task. The runner is a field of the task. A caller does not choose it."@en ;
728
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0008-runners.md#Decision" ;
729
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
730
+ core:owner core:kai-agent .
731
+
732
+ ai:has-output-kind a owl:ObjectProperty , owl:FunctionalProperty ;
733
+ rdfs:domain ai:task ;
734
+ rdfs:range core:concept ;
735
+ core:label "has output kind"@en ;
736
+ core:definition "The form of the output of a task. Each task declares an output kind."@en ;
737
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0045-output.md#Decision" ;
738
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
739
+ core:owner core:kai-agent .
740
+
741
+ ai:has-task-tag a owl:ObjectProperty ;
742
+ rdfs:domain ai:task ;
743
+ rdfs:range billing:tag ;
744
+ core:label "has task tag"@en ;
745
+ core:definition "A key and a value in the task code that the hold of each run of the task carries to `billing`. A task tag is a tag of `billing`. A task has a maximum of 5 task tags, because a hold has a maximum of 5 tags."@en ;
746
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
747
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
748
+ core:owner core:kai-agent .
749
+
750
+ ai:has-run-limit a owl:ObjectProperty ;
751
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:task ai:run ) ] ;
752
+ rdfs:range ai:run-limit ;
753
+ core:label "has run limit"@en ;
754
+ core:definition "A run limit of a task, or of one run when its hold lowered the run limit of tokens."@en ;
755
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0020-limits.md#Holds" ;
756
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
757
+ core:owner core:kai-agent .
758
+
759
+ ai:has-rate-limit a owl:ObjectProperty , owl:FunctionalProperty ;
760
+ rdfs:domain ai:task ;
761
+ rdfs:range ai:rate-limit ;
762
+ core:label "has rate limit"@en ;
763
+ core:definition "Each task has a rate limit for each user and for each workspace."@en ;
764
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0020-limits.md#Rate limits and run limits" ;
765
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
766
+ core:owner core:kai-agent .
767
+
768
+ ai:allows-tool a owl:ObjectProperty ;
769
+ rdfs:domain ai:task ;
770
+ rdfs:range ai:tool ;
771
+ core:label "allows tool"@en ;
772
+ core:definition "The task sets which tools of each server the agent can use. A tool that the task does not allow is not visible to the model."@en ;
773
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0011-mcp-servers.md#Decision" ;
774
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
775
+ core:owner core:kai-agent .
776
+
777
+ ai:has-limit-kind a owl:ObjectProperty , owl:FunctionalProperty ;
778
+ rdfs:domain ai:run-limit ;
779
+ rdfs:range core:concept ;
780
+ core:label "has limit kind"@en ;
781
+ core:definition "What a run limit limits, from the scheme of run limits: steps, tool calls, tokens, time, client tools or the size of a client tool result."@en ;
782
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
783
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
784
+ core:owner core:kai-agent .
785
+
786
+ ai:for-token-kind a owl:ObjectProperty , owl:FunctionalProperty ;
787
+ rdfs:domain ai:run-limit ;
788
+ rdfs:range core:concept ;
789
+ core:label "for token kind"@en ;
790
+ core:definition "The token kind of a run limit of tokens. The maximum cost of a hold uses the maximum tokens of each token kind at the unit cost."@en ;
791
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0020-limits.md#Holds" ;
792
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
793
+ core:owner core:kai-agent .
794
+
795
+ ai:has-fallback-list a owl:ObjectProperty , owl:FunctionalProperty ;
796
+ rdfs:domain ai:prompt-version ;
797
+ rdfs:range ai:fallback-list ;
798
+ core:label "has fallback list"@en ;
799
+ core:definition "Each prompt version has a `provider/model`, the model settings and an ordered fallback list."@en ;
800
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
801
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
802
+ core:owner core:kai-agent .
803
+
804
+ ai:in-fallback-list a owl:ObjectProperty , owl:FunctionalProperty ;
805
+ rdfs:domain ai:fallback-entry ;
806
+ rdfs:range ai:fallback-list ;
807
+ core:label "in fallback list"@en ;
808
+ core:definition "The fallback list of an entry."@en ;
809
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
810
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
811
+ core:owner core:kai-agent .
812
+
813
+ ai:uses-model a owl:ObjectProperty , owl:FunctionalProperty ;
814
+ rdfs:domain ai:fallback-entry ;
815
+ rdfs:range ai:model ;
816
+ core:label "uses model"@en ;
817
+ core:definition "The `provider/model` of an entry of a fallback list."@en ;
818
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
819
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
820
+ core:owner core:kai-agent .
821
+
822
+ ai:uses-partial a owl:ObjectProperty ;
823
+ rdfs:domain ai:prompt-version ;
824
+ rdfs:range ai:partial ;
825
+ core:label "uses partial"@en ;
826
+ core:definition "A prompt version records the number of each partial that it uses."@en ;
827
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0015-templates.md#Decision" ;
828
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
829
+ core:owner core:kai-agent .
830
+
831
+ ai:has-current a owl:ObjectProperty , owl:FunctionalProperty ;
832
+ rdfs:domain ai:release ;
833
+ rdfs:range ai:prompt-version ;
834
+ core:label "has current"@en ;
835
+ core:definition "The `current` prompt version of the release of a task. A rollback sets `current` to an older version."@en ;
836
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0014-prompt-store.md#Decision" ;
837
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
838
+ core:owner core:kai-agent .
839
+
840
+ ai:has-candidate a owl:ObjectProperty , owl:FunctionalProperty ;
841
+ rdfs:domain ai:release ;
842
+ rdfs:range ai:prompt-version ;
843
+ core:label "has candidate version"@en ;
844
+ core:definition "The optional `candidate` prompt version of the release of a task. A publish makes a draft the candidate, with a percentage."@en ;
845
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0016-prompt-promotion.md#Decision" ;
846
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
847
+ core:owner core:kai-agent .
848
+
849
+ ai:pins a owl:ObjectProperty , owl:FunctionalProperty ;
850
+ rdfs:domain ai:override ;
851
+ rdfs:range ai:prompt-version ;
852
+ core:label "pins"@en ;
853
+ core:definition "The prompt version that an override pins for one workspace and one task."@en ;
854
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0038-workspace-overrides.md#Decision" ;
855
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
856
+ core:owner core:kai-agent .
857
+
858
+ ai:owned-by-key a owl:ObjectProperty , owl:FunctionalProperty ;
859
+ rdfs:domain ai:schedule ;
860
+ rdfs:range core:key ;
861
+ core:label "owned by key"@en ;
862
+ core:definition "The key that makes a schedule owns it. The runs send their webhooks to the URL of that key."@en ;
863
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0037-schedules.md#Decision" ;
864
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
865
+ core:owner core:kai-agent .
866
+
867
+ ai:allows-task a owl:ObjectProperty ;
868
+ rdfs:domain core:key ;
869
+ rdfs:range ai:task ;
870
+ core:label "allows task"@en ;
871
+ core:definition "The key record lists the tasks that the caller can start. An empty list allows no task."@en ;
872
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0005-service-keys.md#Decision" ;
873
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
874
+ core:owner core:kai-agent .
875
+
876
+ ai:of-provider a owl:ObjectProperty , owl:FunctionalProperty ;
877
+ rdfs:domain ai:model ;
878
+ rdfs:range ai:provider ;
879
+ core:label "of provider"@en ;
880
+ core:definition "The provider of a model. The code names a model only as `provider/model`, where `model` is the model id of that provider."@en ;
881
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0018-provider-registry.md#Decision" ;
882
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
883
+ core:owner core:kai-agent .
884
+
885
+ ai:limits-provider a owl:ObjectProperty , owl:FunctionalProperty ;
886
+ rdfs:domain ai:budget ;
887
+ rdfs:range ai:provider ;
888
+ core:label "limits provider"@en ;
889
+ core:definition "The `subject` of a budget is the provider for the scope `provider`, and empty for the scope `global`."@en ;
890
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
891
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
892
+ core:owner core:kai-agent .
893
+
894
+ ai:has-tool-kind a owl:ObjectProperty , owl:FunctionalProperty ;
895
+ rdfs:domain ai:tool ;
896
+ rdfs:range core:concept ;
897
+ core:label "has tool kind"@en ;
898
+ core:definition "The tool kind of a tool: the origin of the tool."@en ;
899
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
900
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
901
+ core:owner core:kai-agent .
902
+
903
+ ai:has-tool-risk a owl:ObjectProperty , owl:FunctionalProperty ;
904
+ rdfs:domain ai:tool ;
905
+ rdfs:range core:concept ;
906
+ core:label "has tool risk"@en ;
907
+ core:definition "The effect of a tool on data. The service gives each tool one risk from its MCP annotations."@en ;
908
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0012-tool-approval.md#Decision" ;
909
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
910
+ core:owner core:kai-agent .
911
+
912
+ ai:on-server a owl:ObjectProperty , owl:FunctionalProperty ;
913
+ rdfs:domain ai:mcp-tool ;
914
+ rdfs:range ai:mcp-server ;
915
+ core:label "on server"@en ;
916
+ core:definition "The MCP server that gives an MCP tool."@en ;
917
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0011-mcp-servers.md#Decision" ;
918
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
919
+ core:owner core:kai-agent .
920
+
921
+ ai:for-server a owl:ObjectProperty , owl:FunctionalProperty ;
922
+ rdfs:domain ai:server-token ;
923
+ rdfs:range ai:mcp-server ;
924
+ core:label "for server"@en ;
925
+ core:definition "The service sends each server token only to its server."@en ;
926
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0011-mcp-servers.md#Decision" ;
927
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
928
+ core:owner core:kai-agent .
929
+
930
+ ai:has-server-token-kind a owl:ObjectProperty , owl:FunctionalProperty ;
931
+ rdfs:domain ai:server-token ;
932
+ rdfs:range core:concept ;
933
+ core:label "has server token kind"@en ;
934
+ core:definition "The server token kind of a server token: the issuer and the use of the token, as 0011 tells."@en ;
935
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
936
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
937
+ core:owner core:kai-agent .
938
+
939
+ ai:has-outbound-kind a owl:ObjectProperty , owl:FunctionalProperty ;
940
+ rdfs:domain ai:outbound-call ;
941
+ rdfs:range core:concept ;
942
+ core:label "has outbound kind"@en ;
943
+ core:definition "The outbound kind of an outbound call: the type of the call."@en ;
944
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
945
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
946
+ core:owner core:kai-agent .
947
+
948
+ ai:has-outbound-result a owl:ObjectProperty , owl:FunctionalProperty ;
949
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:outbound-call ai:spend-entry ) ] ;
950
+ rdfs:range core:concept ;
951
+ core:label "has outbound result"@en ;
952
+ core:definition "The end of an outbound call. A spend entry has the outbound result of its call."@en ;
953
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
954
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
955
+ core:owner core:kai-agent .
956
+
957
+ ai:has-object-check a owl:ObjectProperty , owl:FunctionalProperty ;
958
+ rdfs:domain ai:outbound-call ;
959
+ rdfs:range core:concept ;
960
+ core:label "has object check"@en ;
961
+ core:definition "The result of the Ajv check of the object that an outbound call of the kind `model` gives."@en ;
962
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
963
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
964
+ core:owner core:kai-agent .
965
+
966
+ ai:to-source a owl:ObjectProperty , owl:FunctionalProperty ;
967
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:outbound-call ai:spend-entry ai:model-limit ) ] ;
968
+ rdfs:range ai:source ;
969
+ core:label "to source"@en ;
970
+ core:definition "The provider or the MCP host of an outbound call, a spend entry or a model limit. An outbound call has one source. A spend entry has the source of its call. A model limit has the provider of its model."@en ;
971
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
972
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
973
+ core:owner core:kai-agent .
974
+
975
+ ai:to-target a owl:ObjectProperty , owl:FunctionalProperty ;
976
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:outbound-call ai:spend-entry ai:model-limit ) ] ;
977
+ rdfs:range ai:target ;
978
+ core:label "to target"@en ;
979
+ core:definition "The model, the operation or the tool of an outbound call, a spend entry or a model limit. An outbound call has one target. Each spend row records the model that answered, not the first model of the list. A model limit has the model id."@en ;
980
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
981
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
982
+ core:owner core:kai-agent .
983
+
984
+ ai:of-outbound-call a owl:ObjectProperty , owl:FunctionalProperty ;
985
+ rdfs:domain ai:spend-entry ;
986
+ rdfs:range ai:outbound-call ;
987
+ core:label "of outbound call"@en ;
988
+ core:definition "The outbound call of a spend entry. The spend entries of one call have the same `call` id."@en ;
989
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0019-spend-ledger.md#Decision" ;
990
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
991
+ core:owner core:kai-agent .
992
+
993
+ ai:in-cost-unit a owl:ObjectProperty , owl:FunctionalProperty ;
994
+ rdfs:domain ai:spend-entry ;
995
+ rdfs:range core:concept ;
996
+ core:label "in cost unit"@en ;
997
+ core:definition "The cost unit of a spend entry. The service uses the token kinds of a model as cost units."@en ;
998
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Concepts of other models" ;
999
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1000
+ core:owner core:kai-agent .
1001
+
1002
+ ai:at-unit-cost a owl:ObjectProperty , owl:FunctionalProperty ;
1003
+ rdfs:domain ai:spend-entry ;
1004
+ rdfs:range billing:unit-cost ;
1005
+ core:label "at unit cost"@en ;
1006
+ core:definition "The unit cost row of a spend entry. A change of a unit cost never changes an old row."@en ;
1007
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0019-spend-ledger.md#Decision" ;
1008
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1009
+ core:owner core:kai-agent .
1010
+
1011
+ ai:has-budget-scope a owl:ObjectProperty , owl:FunctionalProperty ;
1012
+ rdfs:domain ai:budget ;
1013
+ rdfs:range core:concept ;
1014
+ core:label "has budget scope"@en ;
1015
+ core:definition "The budget scope of a budget: what the budget limits."@en ;
1016
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
1017
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1018
+ core:owner core:kai-agent .
1019
+
1020
+ ai:has-identifier a owl:ObjectProperty ;
1021
+ rdfs:domain ai:identifier-index ;
1022
+ rdfs:range identity:identifier ;
1023
+ core:label "has identifier"@en ;
1024
+ core:definition "An identifier of a person in the input or the tool results of the run of an identifier index."@en ;
1025
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0031-forget.md#Erasure of a person" ;
1026
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1027
+ core:owner core:kai-agent .
1028
+
1029
+ ai:by-scorer a owl:ObjectProperty , owl:FunctionalProperty ;
1030
+ rdfs:domain ai:score ;
1031
+ rdfs:range ai:scorer ;
1032
+ core:label "by scorer"@en ;
1033
+ core:definition "The scorer that gives a score."@en ;
1034
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0016-prompt-promotion.md#Decision" ;
1035
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1036
+ core:owner core:kai-agent .
1037
+
1038
+ ai:has-scorer-kind a owl:ObjectProperty , owl:FunctionalProperty ;
1039
+ rdfs:domain ai:scorer ;
1040
+ rdfs:range core:concept ;
1041
+ core:label "has scorer kind"@en ;
1042
+ core:definition "The scorer kind of a scorer: a rule or a model that acts as a judge."@en ;
1043
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0016-prompt-promotion.md#Decision" ;
1044
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1045
+ core:owner core:kai-agent .
1046
+
1047
+ ai:has-decision-form a owl:ObjectProperty , owl:FunctionalProperty ;
1048
+ rdfs:domain ai:task ;
1049
+ rdfs:range core:concept ;
1050
+ core:label "has decision form"@en ;
1051
+ core:definition "The decision form of a decision task, from the scheme of decision forms. The task code declares it."@en ;
1052
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Decision tasks" ;
1053
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1054
+ core:owner core:kai-agent .
1055
+
1056
+ ai:has-escalation-model a owl:ObjectProperty , owl:FunctionalProperty ;
1057
+ rdfs:domain ai:prompt-version ;
1058
+ rdfs:range ai:model ;
1059
+ core:label "has escalation model"@en ;
1060
+ core:definition "The one model of the prompt version of a decision task that answers again after a valid object with the confidence `low`, as 0054 tells. It has its own model settings, and it is not a part of the fallback list."@en ;
1061
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Registry" ;
1062
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1063
+ core:owner core:kai-agent .
1064
+
1065
+ ai:with-confidence a owl:ObjectProperty , owl:FunctionalProperty ;
1066
+ rdfs:domain ai:run ;
1067
+ rdfs:range core:concept ;
1068
+ core:label "with decision confidence"@en ;
1069
+ core:hint "How sure Koa is of its answer."@en ;
1070
+ core:definition "The decision confidence of the final object of a run of a decision task. The output of the task has no decision confidence. A run of a different task has none."@en ;
1071
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Decision confidence" ;
1072
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1073
+ core:owner core:kai-agent .
1074
+
1075
+ ai:escalates a owl:ObjectProperty , owl:FunctionalProperty ;
1076
+ rdfs:domain ai:outbound-call ;
1077
+ rdfs:range ai:outbound-call ;
1078
+ core:label "escalates"@en ;
1079
+ core:definition "The earlier outbound call of the same run, with a valid object of the decision confidence `low`, that an escalation answers again."@en ;
1080
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Escalation" ;
1081
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1082
+ core:owner core:kai-agent .
1083
+
1084
+ # Datatype properties.
1085
+
1086
+ ai:has-correlation-id a owl:DatatypeProperty , owl:FunctionalProperty ;
1087
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:spend-entry ) ] ;
1088
+ rdfs:range xsd:string ;
1089
+ core:label "has run correlation id"@en ;
1090
+ core:definition "The trace id of the request that starts a run. Later requests of the run have their own traces, with a span link to it."@en ;
1091
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
1092
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1093
+ core:owner core:kai-agent ;
1094
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1095
+
1096
+ ai:has-segment-number a owl:DatatypeProperty , owl:FunctionalProperty ;
1097
+ rdfs:domain ai:run-segment ;
1098
+ rdfs:range xsd:positiveInteger ;
1099
+ core:label "has segment number"@en ;
1100
+ core:definition "The number of a run segment. Its number is unique in its run, and the first run segment has the number 1. It is an ordinal, not an id."@en ;
1101
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
1102
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1103
+ core:owner core:kai-agent ;
1104
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1105
+
1106
+ ai:has-schema-version a owl:DatatypeProperty , owl:FunctionalProperty ;
1107
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:task ai:prompt-version ) ] ;
1108
+ rdfs:range xsd:positiveInteger ;
1109
+ core:label "has schema version"@en ;
1110
+ core:definition "The major version of the input and output JSON Schemas of a task, in `@quickpipeaiab/contracts`."@en ;
1111
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
1112
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1113
+ core:owner core:kai-agent ;
1114
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1115
+
1116
+ ai:has-task-minimum a owl:DatatypeProperty , owl:FunctionalProperty ;
1117
+ rdfs:domain ai:task ;
1118
+ rdfs:range xsd:long ;
1119
+ core:label "has task minimum"@en ;
1120
+ core:definition "The smallest cost that lets a task give one useful result, for example one complete answer. The task code declares it."@en ;
1121
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
1122
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1123
+ core:owner core:kai-agent ;
1124
+ core:unit core-vocab:unit-micro-usd ;
1125
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1126
+
1127
+ ai:is-ephemeral a owl:DatatypeProperty , owl:FunctionalProperty ;
1128
+ rdfs:domain ai:task ;
1129
+ rdfs:range xsd:boolean ;
1130
+ core:label "is ephemeral"@en ;
1131
+ core:definition "A task can set `ephemeral`. The service then stores no content of its runs."@en ;
1132
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0006-task-catalog.md#Decision" ;
1133
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1134
+ core:owner core:kai-agent ;
1135
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1136
+
1137
+ ai:enables-memory a owl:DatatypeProperty , owl:FunctionalProperty ;
1138
+ rdfs:domain ai:task ;
1139
+ rdfs:range xsd:boolean ;
1140
+ core:label "enables memory"@en ;
1141
+ core:definition "A task can enable memory."@en ;
1142
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0024-memory-and-vectors.md#Decision" ;
1143
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1144
+ core:owner core:kai-agent ;
1145
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1146
+
1147
+ ai:has-version-number a owl:DatatypeProperty , owl:FunctionalProperty ;
1148
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:prompt-version ai:partial ) ] ;
1149
+ rdfs:range xsd:positiveInteger ;
1150
+ core:label "has version number"@en ;
1151
+ core:definition "The number of a prompt version, unique in its task, or the number of a partial, unique in its name. It is an ordinal, not an id."@en ;
1152
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1153
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1154
+ core:owner core:kai-agent ;
1155
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1156
+
1157
+ ai:has-template a owl:DatatypeProperty , owl:FunctionalProperty ;
1158
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:prompt-version ai:partial ) ] ;
1159
+ rdfs:range xsd:string ;
1160
+ core:label "has template"@en ;
1161
+ core:definition "The LiquidJS template of a prompt version or of a partial. LiquidJS renders each prompt template with `strictVariables` and `strictFilters`."@en ;
1162
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0015-templates.md#Decision" ;
1163
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1164
+ core:owner core:kai-agent ;
1165
+ core:gdpr-category core-vocab:gdpr-category-non-personal ;
1166
+ core:may-contain-free-text true .
1167
+
1168
+ ai:has-note a owl:DatatypeProperty , owl:FunctionalProperty ;
1169
+ rdfs:domain ai:prompt-version ;
1170
+ rdfs:range xsd:string ;
1171
+ core:label "has note"@en ;
1172
+ core:definition "The note of the author of a prompt version."@en ;
1173
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0014-prompt-store.md#Decision" ;
1174
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1175
+ core:owner core:kai-agent ;
1176
+ core:gdpr-category core-vocab:gdpr-category-non-personal ;
1177
+ core:may-contain-free-text true .
1178
+
1179
+ ai:has-candidate-percentage a owl:DatatypeProperty , owl:FunctionalProperty ;
1180
+ rdfs:domain ai:release ;
1181
+ rdfs:range xsd:decimal ;
1182
+ core:label "has candidate percentage"@en ;
1183
+ core:definition "The percentage of the candidate of a release. The service selects the candidate or the `current` version from a hash of `workspace:user:task`. At 100%, the candidate becomes `current`."@en ;
1184
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0016-prompt-promotion.md#Decision" ;
1185
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1186
+ core:owner core:kai-agent ;
1187
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1188
+
1189
+ ai:at-position a owl:DatatypeProperty , owl:FunctionalProperty ;
1190
+ rdfs:domain ai:fallback-entry ;
1191
+ rdfs:range xsd:positiveInteger ;
1192
+ core:label "at position"@en ;
1193
+ core:definition "The position of an entry in its ordered fallback list. The first entry is the model of the prompt version."@en ;
1194
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
1195
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1196
+ core:owner core:kai-agent ;
1197
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1198
+
1199
+ ai:has-temperature a owl:DatatypeProperty , owl:FunctionalProperty ;
1200
+ rdfs:domain ai:fallback-entry ;
1201
+ rdfs:range xsd:decimal ;
1202
+ core:label "has temperature"@en ;
1203
+ core:definition "The temperature of the model settings."@en ;
1204
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
1205
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1206
+ core:owner core:kai-agent ;
1207
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1208
+
1209
+ ai:has-max-output-tokens a owl:DatatypeProperty , owl:FunctionalProperty ;
1210
+ rdfs:domain ai:fallback-entry ;
1211
+ rdfs:range xsd:positiveInteger ;
1212
+ core:label "has max output tokens"@en ;
1213
+ core:definition "The maximum output tokens of the model settings."@en ;
1214
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
1215
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1216
+ core:owner core:kai-agent ;
1217
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1218
+
1219
+ ai:has-provider-options a owl:DatatypeProperty , owl:FunctionalProperty ;
1220
+ rdfs:domain ai:fallback-entry ;
1221
+ rdfs:range xsd:string ;
1222
+ core:label "has provider options"@en ;
1223
+ core:definition "The provider options of the model settings, for example prompt cache, as a JSON object."@en ;
1224
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
1225
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1226
+ core:owner core:kai-agent ;
1227
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1228
+
1229
+ ai:has-model-id a owl:DatatypeProperty , owl:FunctionalProperty ;
1230
+ rdfs:domain ai:model ;
1231
+ rdfs:range xsd:string ;
1232
+ core:label "has model id"@en ;
1233
+ core:definition "The model id of a model at its provider, the part `model` of `provider/model`."@en ;
1234
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0018-provider-registry.md#Decision" ;
1235
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1236
+ core:owner core:kai-agent ;
1237
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1238
+
1239
+ ai:has-retention-terms a owl:DatatypeProperty , owl:FunctionalProperty ;
1240
+ rdfs:domain ai:provider ;
1241
+ rdfs:range xsd:string ;
1242
+ core:label "has retention terms"@en ;
1243
+ core:definition "Each provider in the registry records its region of processing and its retention terms."@en ;
1244
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0030-processing-outside-eu.md#Decision" ;
1245
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1246
+ core:owner core:kai-agent ;
1247
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1248
+
1249
+ ai:has-url a owl:DatatypeProperty , owl:FunctionalProperty ;
1250
+ rdfs:domain ai:mcp-server ;
1251
+ rdfs:range xsd:string ;
1252
+ core:label "has url"@en ;
1253
+ core:definition "The URL of an MCP server. The host of each URL must match a pattern in the allow list. A URL must use HTTPS, or a host of the Render private network."@en ;
1254
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0011-mcp-servers.md#Decision" ;
1255
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1256
+ core:owner core:kai-agent ;
1257
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1258
+
1259
+ ai:has-webhook-url a owl:DatatypeProperty , owl:FunctionalProperty ;
1260
+ rdfs:domain core:key ;
1261
+ rdfs:range xsd:string ;
1262
+ core:label "has webhook url"@en ;
1263
+ core:definition "Each key has one optional webhook URL and a secret for the signatures. One URL gets all topics."@en ;
1264
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0010-run-streams.md#Decision" ;
1265
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1266
+ core:owner core:kai-agent ;
1267
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1268
+
1269
+ ai:has-api-version a owl:DatatypeProperty , owl:FunctionalProperty ;
1270
+ rdfs:domain core:key ;
1271
+ rdfs:range xsd:string ;
1272
+ core:label "has API version"@en ;
1273
+ core:definition "The dated version of the HTTP contract that a key pins. It is a public label for a set of schema major versions, as 0007 tells."@en ;
1274
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
1275
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1276
+ core:owner core:kai-agent ;
1277
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1278
+
1279
+ ai:has-read-only-hint a owl:DatatypeProperty , owl:FunctionalProperty ;
1280
+ rdfs:domain ai:tool ;
1281
+ rdfs:range xsd:boolean ;
1282
+ core:label "has read only hint"@en ;
1283
+ core:definition "The MCP annotation `readOnlyHint` of a tool. A tool with no annotation has no value."@en ;
1284
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tool risk from the MCP annotations" ;
1285
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1286
+ core:owner core:kai-agent ;
1287
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1288
+
1289
+ ai:has-destructive-hint a owl:DatatypeProperty , owl:FunctionalProperty ;
1290
+ rdfs:domain ai:tool ;
1291
+ rdfs:range xsd:boolean ;
1292
+ core:label "has destructive hint"@en ;
1293
+ core:definition "The MCP annotation `destructiveHint` of a tool. A tool with no annotation has no value."@en ;
1294
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tool risk from the MCP annotations" ;
1295
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1296
+ core:owner core:kai-agent ;
1297
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1298
+
1299
+ ai:has-maximum a owl:DatatypeProperty , owl:FunctionalProperty ;
1300
+ rdfs:domain ai:run-limit ;
1301
+ rdfs:range xsd:decimal ;
1302
+ core:label "has run limit maximum"@en ;
1303
+ core:definition "The maximum of a run limit."@en ;
1304
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
1305
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1306
+ core:owner core:kai-agent ;
1307
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1308
+
1309
+ ai:has-maximum-per-user a owl:DatatypeProperty , owl:FunctionalProperty ;
1310
+ rdfs:domain ai:rate-limit ;
1311
+ rdfs:range xsd:nonNegativeInteger ;
1312
+ core:label "has maximum per user"@en ;
1313
+ core:definition "The maximum number of requests for one task for each user."@en ;
1314
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
1315
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1316
+ core:owner core:kai-agent ;
1317
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1318
+
1319
+ ai:has-maximum-per-workspace a owl:DatatypeProperty , owl:FunctionalProperty ;
1320
+ rdfs:domain ai:rate-limit ;
1321
+ rdfs:range xsd:nonNegativeInteger ;
1322
+ core:label "has maximum per workspace"@en ;
1323
+ core:definition "The maximum number of requests for one task for each workspace."@en ;
1324
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
1325
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1326
+ core:owner core:kai-agent ;
1327
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1328
+
1329
+ ai:has-call-timeout a owl:DatatypeProperty , owl:FunctionalProperty ;
1330
+ rdfs:domain ai:model-limit ;
1331
+ rdfs:range xsd:integer ;
1332
+ core:label "has call timeout"@en ;
1333
+ core:definition "The call time limit of a model limit: the longest time that one call of the model can take. After this time the call ends with the failure timeout."@en ;
1334
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
1335
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1336
+ core:owner core:kai-agent ;
1337
+ core:unit core-vocab:unit-second ;
1338
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1339
+
1340
+ ai:has-maximum-cost a owl:DatatypeProperty , owl:FunctionalProperty ;
1341
+ rdfs:domain ai:budget ;
1342
+ rdfs:range xsd:long ;
1343
+ core:label "has maximum cost"@en ;
1344
+ core:definition "The maximum of the costs of a budget in one calendar month in UTC."@en ;
1345
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
1346
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1347
+ core:owner core:kai-agent ;
1348
+ core:unit core-vocab:unit-micro-usd ;
1349
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1350
+
1351
+ ai:has-quantity a owl:DatatypeProperty , owl:FunctionalProperty ;
1352
+ rdfs:domain ai:spend-entry ;
1353
+ rdfs:range xsd:decimal ;
1354
+ core:label "has quantity"@en ;
1355
+ core:definition "The quantity of the cost unit of a spend entry, for example the number of tokens of one token kind."@en ;
1356
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0019-spend-ledger.md#Decision" ;
1357
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1358
+ core:owner core:kai-agent ;
1359
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1360
+
1361
+ ai:has-cron a owl:DatatypeProperty , owl:FunctionalProperty ;
1362
+ rdfs:domain ai:schedule ;
1363
+ rdfs:range xsd:string ;
1364
+ core:label "has cron"@en ;
1365
+ core:definition "The cron expression of a schedule."@en ;
1366
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0037-schedules.md#Decision" ;
1367
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1368
+ core:owner core:kai-agent ;
1369
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1370
+
1371
+ ai:has-time-zone a owl:DatatypeProperty , owl:FunctionalProperty ;
1372
+ rdfs:domain ai:schedule ;
1373
+ rdfs:range xsd:string ;
1374
+ core:label "has time zone"@en ;
1375
+ core:definition "The time zone of the cron expression of a schedule."@en ;
1376
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0037-schedules.md#Decision" ;
1377
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1378
+ core:owner core:kai-agent ;
1379
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1380
+
1381
+ ai:has-schedule-input a owl:DatatypeProperty , owl:FunctionalProperty ;
1382
+ rdfs:domain ai:schedule ;
1383
+ rdfs:range xsd:string ;
1384
+ core:label "has schedule input"@en ;
1385
+ core:definition "The input of the runs of a schedule, as a JSON object that the input schema of the task checks."@en ;
1386
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0037-schedules.md#Decision" ;
1387
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1388
+ core:owner core:kai-agent ;
1389
+ core:gdpr-category core-vocab:gdpr-category-personal ;
1390
+ core:lawful-basis core-vocab:lawful-basis-legitimate-interests ;
1391
+ core:review-status core-vocab:review-status-draft ;
1392
+ core:may-contain-free-text true .
1393
+
1394
+ ai:last-message-at a owl:DatatypeProperty , owl:FunctionalProperty ;
1395
+ rdfs:domain ai:thread ;
1396
+ rdfs:range xsd:dateTime ;
1397
+ core:label "last message at"@en ;
1398
+ core:definition "The time of the last message of a thread."@en ;
1399
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0033-threads.md#Decision" ;
1400
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1401
+ core:owner core:kai-agent ;
1402
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1403
+
1404
+ ai:has-title a owl:DatatypeProperty , owl:FunctionalProperty ;
1405
+ rdfs:domain ai:thread ;
1406
+ rdfs:range xsd:string ;
1407
+ core:label "has title"@en ;
1408
+ core:definition "The title of a thread. The title comes from the title feature of Mastra memory. It stays until a delete."@en ;
1409
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0033-threads.md#Decision" ;
1410
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1411
+ core:owner core:kai-agent ;
1412
+ core:gdpr-category core-vocab:gdpr-category-personal ;
1413
+ core:lawful-basis core-vocab:lawful-basis-legitimate-interests ;
1414
+ core:review-status core-vocab:review-status-draft ;
1415
+ core:may-contain-free-text true .
1416
+
1417
+ ai:has-input a owl:DatatypeProperty , owl:FunctionalProperty ;
1418
+ rdfs:domain ai:run-content ;
1419
+ rdfs:range xsd:string ;
1420
+ core:label "has input"@en ;
1421
+ core:definition "The input of a run in `execution.contents`, after the privacy filter and the mask replace email addresses, phone numbers and secrets."@en ;
1422
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0023-content-retention.md#Decision" ;
1423
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1424
+ core:owner core:kai-agent ;
1425
+ core:gdpr-category core-vocab:gdpr-category-personal ;
1426
+ core:lawful-basis core-vocab:lawful-basis-legitimate-interests ;
1427
+ core:review-status core-vocab:review-status-draft ;
1428
+ core:may-contain-free-text true .
1429
+
1430
+ ai:has-rendered-prompt a owl:DatatypeProperty , owl:FunctionalProperty ;
1431
+ rdfs:domain ai:run-content ;
1432
+ rdfs:range xsd:string ;
1433
+ core:label "has rendered prompt"@en ;
1434
+ core:definition "The prompt of a run in `execution.contents`, after the template engine rendered it and the mask replaced personal data and secrets."@en ;
1435
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0023-content-retention.md#Decision" ;
1436
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1437
+ core:owner core:kai-agent ;
1438
+ core:gdpr-category core-vocab:gdpr-category-personal ;
1439
+ core:lawful-basis core-vocab:lawful-basis-legitimate-interests ;
1440
+ core:review-status core-vocab:review-status-draft ;
1441
+ core:may-contain-free-text true .
1442
+
1443
+ ai:has-output a owl:DatatypeProperty , owl:FunctionalProperty ;
1444
+ rdfs:domain ai:run-content ;
1445
+ rdfs:range xsd:string ;
1446
+ core:label "has output"@en ;
1447
+ core:definition "The output of a run in `execution.contents`, after the mask replaced personal data and secrets."@en ;
1448
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0023-content-retention.md#Decision" ;
1449
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1450
+ core:owner core:kai-agent ;
1451
+ core:gdpr-category core-vocab:gdpr-category-personal ;
1452
+ core:lawful-basis core-vocab:lawful-basis-legitimate-interests ;
1453
+ core:review-status core-vocab:review-status-draft ;
1454
+ core:may-contain-free-text true .
1455
+
1456
+ ai:has-tool-calls a owl:DatatypeProperty , owl:FunctionalProperty ;
1457
+ rdfs:domain ai:run-content ;
1458
+ rdfs:range xsd:string ;
1459
+ core:label "has tool calls"@en ;
1460
+ core:definition "The tool calls of a run in `execution.contents`, as a JSON array, after the mask replaced personal data and secrets."@en ;
1461
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0023-content-retention.md#Decision" ;
1462
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1463
+ core:owner core:kai-agent ;
1464
+ core:gdpr-category core-vocab:gdpr-category-personal ;
1465
+ core:lawful-basis core-vocab:lawful-basis-legitimate-interests ;
1466
+ core:review-status core-vocab:review-status-draft ;
1467
+ core:may-contain-free-text true .
1468
+
1469
+ ai:has-score-value a owl:DatatypeProperty , owl:FunctionalProperty ;
1470
+ rdfs:domain ai:score ;
1471
+ rdfs:range xsd:decimal ;
1472
+ core:label "has score value"@en ;
1473
+ core:definition "The value of a score, a number from 0 to 1."@en ;
1474
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0016-prompt-promotion.md#Decision" ;
1475
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1476
+ core:owner core:kai-agent ;
1477
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1478
+
1479
+ # Tables (docs/decisions/0003-modelling-patterns.md#Tables and columns). The worked example: spend.entries.
1480
+
1481
+ ai:schema-spend a owl:NamedIndividual , core:database-schema ;
1482
+ core:has-name "spend" ;
1483
+ core:label "spend schema"@en ;
1484
+ core:definition "The Postgres schema of `kai-agent` that holds the spend entries, the unit costs, the budgets and the model limits."@en ;
1485
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1486
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1487
+ core:owner core:kai-agent .
1488
+
1489
+ ai:schema-execution a owl:NamedIndividual , core:database-schema ;
1490
+ core:has-name "execution" ;
1491
+ core:label "execution schema"@en ;
1492
+ core:definition "The Postgres schema of `kai-agent` that holds the runs and their segments."@en ;
1493
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1494
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1495
+ core:owner core:kai-agent .
1496
+
1497
+ ai:table-execution-runs a owl:NamedIndividual , core:table ;
1498
+ core:in-database-schema ai:schema-execution ;
1499
+ core:has-name "runs" ;
1500
+ core:has-row-class ai:run ;
1501
+ core:label "execution.runs"@en ;
1502
+ core:definition "The table of the runs of `kai-agent`: one row for each run."@en ;
1503
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1504
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1505
+ core:owner core:kai-agent .
1506
+
1507
+ ai:column-execution-runs-confidence a owl:NamedIndividual , core:column ;
1508
+ core:of-table ai:table-execution-runs ;
1509
+ core:has-name "confidence" ;
1510
+ core:stores-property ai:with-confidence ;
1511
+ core:label "execution.runs.confidence"@en ;
1512
+ core:definition "The decision confidence of the final object of the run: a notation of the scheme decision confidence. It is null for a run of a task that is not a decision task, and until the run has its final object."@en ;
1513
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Decision confidence" ;
1514
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1515
+ core:owner core:kai-agent .
1516
+
1517
+ ai:table-spend-entries a owl:NamedIndividual , core:table ;
1518
+ core:in-database-schema ai:schema-spend ;
1519
+ core:has-name "entries" ;
1520
+ core:has-row-class ai:spend-entry ;
1521
+ core:label "spend.entries"@en ;
1522
+ core:definition "The table of the spend entries of `kai-agent`: one row for each cost unit of an outbound call with a cost."@en ;
1523
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1524
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1525
+ core:owner core:kai-agent .
1526
+
1527
+ ai:column-spend-entries-call a owl:NamedIndividual , core:column ;
1528
+ core:of-table ai:table-spend-entries ;
1529
+ core:has-name "call" ;
1530
+ core:stores-property ai:of-outbound-call ;
1531
+ core:in-primary-key true ;
1532
+ core:label "spend.entries.call"@en ;
1533
+ core:definition "The id of the outbound call of the spend entry."@en ;
1534
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1535
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1536
+ core:owner core:kai-agent .
1537
+
1538
+ ai:column-spend-entries-cost-unit a owl:NamedIndividual , core:column ;
1539
+ core:of-table ai:table-spend-entries ;
1540
+ core:has-name "cost_unit" ;
1541
+ core:stores-property ai:in-cost-unit ;
1542
+ core:in-primary-key true ;
1543
+ core:label "spend.entries.cost_unit"@en ;
1544
+ core:definition "The notation of the cost unit of the spend entry."@en ;
1545
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1546
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1547
+ core:owner core:kai-agent .
1548
+
1549
+ ai:column-spend-entries-run a owl:NamedIndividual , core:column ;
1550
+ core:of-table ai:table-spend-entries ;
1551
+ core:has-name "run" ;
1552
+ core:stores-property ai:of-run ;
1553
+ core:label "spend.entries.run"@en ;
1554
+ core:definition "The id of the run of the spend entry."@en ;
1555
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1556
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1557
+ core:owner core:kai-agent .
1558
+
1559
+ ai:column-spend-entries-segment a owl:NamedIndividual , core:column ;
1560
+ core:of-table ai:table-spend-entries ;
1561
+ core:has-name "segment" ;
1562
+ core:not-modelled-reason "A copy of the run segment of the outbound call, `ai:in-run-segment` of the call. The foreign key to `execution.segments` and the sum of the cost of a run segment need it."@en ;
1563
+ core:label "spend.entries.segment"@en ;
1564
+ core:definition "The number of the run segment of the outbound call."@en ;
1565
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1566
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1567
+ core:owner core:kai-agent .
1568
+
1569
+ ai:column-spend-entries-source a owl:NamedIndividual , core:column ;
1570
+ core:of-table ai:table-spend-entries ;
1571
+ core:has-name "source" ;
1572
+ core:stores-property ai:to-source ;
1573
+ core:label "spend.entries.source"@en ;
1574
+ core:definition "The name of the provider of the spend entry."@en ;
1575
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1576
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1577
+ core:owner core:kai-agent .
1578
+
1579
+ ai:column-spend-entries-target a owl:NamedIndividual , core:column ;
1580
+ core:of-table ai:table-spend-entries ;
1581
+ core:has-name "target" ;
1582
+ core:stores-property ai:to-target ;
1583
+ core:label "spend.entries.target"@en ;
1584
+ core:definition "The model id of the spend entry."@en ;
1585
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1586
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1587
+ core:owner core:kai-agent .
1588
+
1589
+ ai:column-spend-entries-quantity a owl:NamedIndividual , core:column ;
1590
+ core:of-table ai:table-spend-entries ;
1591
+ core:has-name "quantity" ;
1592
+ core:stores-property ai:has-quantity ;
1593
+ core:label "spend.entries.quantity"@en ;
1594
+ core:definition "The number of cost units of the spend entry."@en ;
1595
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1596
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1597
+ core:owner core:kai-agent .
1598
+
1599
+ ai:column-spend-entries-unit-cost a owl:NamedIndividual , core:column ;
1600
+ core:of-table ai:table-spend-entries ;
1601
+ core:has-name "unit_cost" ;
1602
+ core:stores-property ai:at-unit-cost ;
1603
+ core:label "spend.entries.unit_cost"@en ;
1604
+ core:definition "The id of the unit cost that priced the spend entry."@en ;
1605
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1606
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1607
+ core:owner core:kai-agent .
1608
+
1609
+ ai:column-spend-entries-cost a owl:NamedIndividual , core:column ;
1610
+ core:of-table ai:table-spend-entries ;
1611
+ core:has-name "cost" ;
1612
+ core:stores-property billing:has-cost ;
1613
+ core:label "spend.entries.cost"@en ;
1614
+ core:definition "The cost of the spend entry in micro-USD."@en ;
1615
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1616
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1617
+ core:owner core:kai-agent .
1618
+
1619
+ ai:column-spend-entries-result a owl:NamedIndividual , core:column ;
1620
+ core:of-table ai:table-spend-entries ;
1621
+ core:has-name "result" ;
1622
+ core:stores-property ai:has-outbound-result ;
1623
+ core:label "spend.entries.result"@en ;
1624
+ core:definition "The notation of the outbound result of the call of the spend entry."@en ;
1625
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1626
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1627
+ core:owner core:kai-agent .
1628
+
1629
+ ai:column-spend-entries-workspace a owl:NamedIndividual , core:column ;
1630
+ core:of-table ai:table-spend-entries ;
1631
+ core:has-name "workspace" ;
1632
+ core:stores-property core:in-workspace ;
1633
+ core:label "spend.entries.workspace"@en ;
1634
+ core:definition "The id of the workspace of the spend entry. It is empty for an internal caller."@en ;
1635
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1636
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1637
+ core:owner core:kai-agent .
1638
+
1639
+ ai:column-spend-entries-user-id a owl:NamedIndividual , core:column ;
1640
+ core:of-table ai:table-spend-entries ;
1641
+ core:has-name "user_id" ;
1642
+ core:stores-property core:for-user ;
1643
+ core:label "spend.entries.user_id"@en ;
1644
+ core:definition "The id of the user of the run of the spend entry. It is empty for an internal caller and for a subscription."@en ;
1645
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1646
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1647
+ core:owner core:kai-agent .
1648
+
1649
+ ai:column-spend-entries-caller a owl:NamedIndividual , core:column ;
1650
+ core:of-table ai:table-spend-entries ;
1651
+ core:has-name "caller" ;
1652
+ core:stores-property ai:by-caller ;
1653
+ core:label "spend.entries.caller"@en ;
1654
+ core:definition "The notation of the caller of the run of the spend entry."@en ;
1655
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1656
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1657
+ core:owner core:kai-agent .
1658
+
1659
+ ai:column-spend-entries-task a owl:NamedIndividual , core:column ;
1660
+ core:of-table ai:table-spend-entries ;
1661
+ core:has-name "task" ;
1662
+ core:stores-property ai:of-task ;
1663
+ core:label "spend.entries.task"@en ;
1664
+ core:definition "The name of the task of the run of the spend entry."@en ;
1665
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1666
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1667
+ core:owner core:kai-agent .
1668
+
1669
+ ai:column-spend-entries-prompt-version a owl:NamedIndividual , core:column ;
1670
+ core:of-table ai:table-spend-entries ;
1671
+ core:has-name "prompt_version" ;
1672
+ core:stores-property ai:with-prompt-version ;
1673
+ core:label "spend.entries.prompt_version"@en ;
1674
+ core:definition "The version number of the prompt version of the run of the spend entry."@en ;
1675
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1676
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1677
+ core:owner core:kai-agent .
1678
+
1679
+ ai:column-spend-entries-correlation a owl:NamedIndividual , core:column ;
1680
+ core:of-table ai:table-spend-entries ;
1681
+ core:has-name "correlation" ;
1682
+ core:stores-property ai:has-correlation-id ;
1683
+ core:label "spend.entries.correlation"@en ;
1684
+ core:definition "The correlation id of the run of the spend entry."@en ;
1685
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1686
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1687
+ core:owner core:kai-agent .
1688
+
1689
+ ai:column-spend-entries-created-at a owl:NamedIndividual , core:column ;
1690
+ core:of-table ai:table-spend-entries ;
1691
+ core:has-name "created_at" ;
1692
+ core:stores-property core:generated-at ;
1693
+ core:label "spend.entries.created_at"@en ;
1694
+ core:definition "The time when the service wrote the spend entry."@en ;
1695
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1696
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1697
+ core:owner core:kai-agent .
1698
+
1699
+ ai:schema-prompts a owl:NamedIndividual , core:database-schema ;
1700
+ core:has-name "prompts" ;
1701
+ core:label "prompts schema"@en ;
1702
+ core:definition "The Postgres schema of `kai-agent` that holds the prompt versions, the partials, the releases and the eval results."@en ;
1703
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
1704
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1705
+ core:owner core:kai-agent .
1706
+
1707
+ ai:table-prompts-eval-results a owl:NamedIndividual , core:table ;
1708
+ core:in-database-schema ai:schema-prompts ;
1709
+ core:has-name "eval_results" ;
1710
+ core:has-row-class ai:eval-result ;
1711
+ core:label "prompts.eval_results"@en ;
1712
+ core:definition "The table of the eval results of `kai-agent`: one row for each eval of one prompt version."@en ;
1713
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
1714
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1715
+ core:owner core:kai-agent .
1716
+
1717
+ ai:column-prompts-eval-results-id a owl:NamedIndividual , core:column ;
1718
+ core:of-table ai:table-prompts-eval-results ;
1719
+ core:has-name "id" ;
1720
+ core:not-modelled-reason "The row key of the eval result. The model identifies an eval result by its prompt version and its eval set hash."@en ;
1721
+ core:label "prompts.eval_results.id"@en ;
1722
+ core:definition "The id of the eval result."@en ;
1723
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
1724
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1725
+ core:owner core:kai-agent .
1726
+
1727
+ ai:column-prompts-eval-results-task a owl:NamedIndividual , core:column ;
1728
+ core:of-table ai:table-prompts-eval-results ;
1729
+ core:has-name "task" ;
1730
+ core:not-modelled-reason "A copy of the task of the prompt version, `ai:of-task` of the version. The foreign key to `prompts.versions` needs it."@en ;
1731
+ core:label "prompts.eval_results.task"@en ;
1732
+ core:definition "The name of the task of the prompt version of the eval result."@en ;
1733
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
1734
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1735
+ core:owner core:kai-agent .
1736
+
1737
+ ai:column-prompts-eval-results-version a owl:NamedIndividual , core:column ;
1738
+ core:of-table ai:table-prompts-eval-results ;
1739
+ core:has-name "version" ;
1740
+ core:stores-property ai:with-prompt-version ;
1741
+ core:label "prompts.eval_results.version"@en ;
1742
+ core:definition "The number of the prompt version that the eval scored."@en ;
1743
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
1744
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1745
+ core:owner core:kai-agent .
1746
+
1747
+ ai:column-prompts-eval-results-eval-set-hash a owl:NamedIndividual , core:column ;
1748
+ core:of-table ai:table-prompts-eval-results ;
1749
+ core:has-name "eval_set_hash" ;
1750
+ core:stores-property ai:has-eval-set-hash ;
1751
+ core:label "prompts.eval_results.eval_set_hash"@en ;
1752
+ core:definition "The hash of the eval set that the eval used."@en ;
1753
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
1754
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1755
+ core:owner core:kai-agent .
1756
+
1757
+ ai:column-prompts-eval-results-pass-mark a owl:NamedIndividual , core:column ;
1758
+ core:of-table ai:table-prompts-eval-results ;
1759
+ core:has-name "pass_mark" ;
1760
+ core:stores-property ai:has-pass-mark ;
1761
+ core:label "prompts.eval_results.pass_mark"@en ;
1762
+ core:definition "The pass mark of the eval set when the eval ran."@en ;
1763
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
1764
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1765
+ core:owner core:kai-agent .
1766
+
1767
+ ai:column-prompts-eval-results-average-score a owl:NamedIndividual , core:column ;
1768
+ core:of-table ai:table-prompts-eval-results ;
1769
+ core:has-name "average_score" ;
1770
+ core:stores-property ai:has-average-score ;
1771
+ core:label "prompts.eval_results.average_score"@en ;
1772
+ core:definition "The average score of the runs of the eval, from 0 to 1."@en ;
1773
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
1774
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1775
+ core:owner core:kai-agent .
1776
+
1777
+ ai:column-prompts-eval-results-average-cost a owl:NamedIndividual , core:column ;
1778
+ core:of-table ai:table-prompts-eval-results ;
1779
+ core:has-name "average_cost" ;
1780
+ core:stores-property ai:has-average-cost ;
1781
+ core:label "prompts.eval_results.average_cost"@en ;
1782
+ core:definition "The average cost of one eval run in micro-USD, rounded up to the next integer."@en ;
1783
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
1784
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1785
+ core:owner core:kai-agent .
1786
+
1787
+ ai:column-prompts-eval-results-escalation-rate a owl:NamedIndividual , core:column ;
1788
+ core:of-table ai:table-prompts-eval-results ;
1789
+ core:has-name "escalation_rate" ;
1790
+ core:stores-property ai:has-escalation-rate ;
1791
+ core:label "prompts.eval_results.escalation_rate"@en ;
1792
+ core:definition "The share of the runs of the eval with an escalation, from 0 to 1."@en ;
1793
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
1794
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1795
+ core:owner core:kai-agent .
1796
+
1797
+ ai:column-prompts-eval-results-created-at a owl:NamedIndividual , core:column ;
1798
+ core:of-table ai:table-prompts-eval-results ;
1799
+ core:has-name "created_at" ;
1800
+ core:stores-property core:generated-at ;
1801
+ core:label "prompts.eval_results.created_at"@en ;
1802
+ core:definition "The time when the service wrote the eval result."@en ;
1803
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
1804
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1805
+ core:owner core:kai-agent .
1806
+
1807
+ # Metric instruments (docs/decisions/0003-modelling-patterns.md#Metric instruments). The worked example: kai-agent 0025.
1808
+
1809
+ ai:metric-attribute-task a owl:NamedIndividual , core:metric-attribute ;
1810
+ core:has-name "task" ;
1811
+ core:takes-values-from ai:task ;
1812
+ core:label "task attribute of kai-agent"@en ;
1813
+ core:definition "The metric attribute with the name of the task of a run."@en ;
1814
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1815
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1816
+ core:owner core:kai-agent .
1817
+
1818
+ ai:metric-attribute-runner a owl:NamedIndividual , core:metric-attribute ;
1819
+ core:has-name "runner" ;
1820
+ core:takes-values-from ai-vocab:runner ;
1821
+ core:label "runner attribute of kai-agent"@en ;
1822
+ core:definition "The metric attribute with the runner of the task of a run."@en ;
1823
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1824
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1825
+ core:owner core:kai-agent .
1826
+
1827
+ ai:metric-attribute-status a owl:NamedIndividual , core:metric-attribute ;
1828
+ core:has-name "status" ;
1829
+ core:takes-values-from ai-vocab:run-status ;
1830
+ core:label "status attribute of kai-agent"@en ;
1831
+ core:definition "The metric attribute with the final status of a run."@en ;
1832
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1833
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1834
+ core:owner core:kai-agent .
1835
+
1836
+ ai:metric-attribute-failure a owl:NamedIndividual , core:metric-attribute ;
1837
+ core:has-name "failure" ;
1838
+ core:takes-values-from ai-vocab:failure-reason ;
1839
+ core:label "failure attribute of kai-agent"@en ;
1840
+ core:definition "The metric attribute with the failure reason of a run with the status `failed`. It is absent for each other status."@en ;
1841
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1842
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1843
+ core:owner core:kai-agent .
1844
+
1845
+ ai:metric-attribute-reason a owl:NamedIndividual , core:metric-attribute ;
1846
+ core:has-name "reason" ;
1847
+ core:takes-values-from ai-vocab:suspend-reason ;
1848
+ core:label "reason attribute of kai-agent"@en ;
1849
+ core:definition "The metric attribute with the suspend reason of a suspend of a run."@en ;
1850
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1851
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1852
+ core:owner core:kai-agent .
1853
+
1854
+ ai:metric-attribute-failure-reason a owl:NamedIndividual , core:metric-attribute ;
1855
+ core:has-name "reason" ;
1856
+ core:takes-values-from ai-vocab:model-failure-kind ;
1857
+ core:label "failure reason attribute of kai-agent"@en ;
1858
+ core:definition "The metric attribute with the reason of a fallback to the next model of the fallback list."@en ;
1859
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0071-model-tiers.md#Decision" ;
1860
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1861
+ core:owner core:kai-agent .
1862
+
1863
+ ai:metric-attribute-kind a owl:NamedIndividual , core:metric-attribute ;
1864
+ core:has-name "kind" ;
1865
+ core:takes-values-from ai-vocab:outbound-kind ;
1866
+ core:label "kind attribute of kai-agent"@en ;
1867
+ core:definition "The metric attribute with the outbound kind of an outbound call."@en ;
1868
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1869
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1870
+ core:owner core:kai-agent .
1871
+
1872
+ ai:metric-attribute-source a owl:NamedIndividual , core:metric-attribute ;
1873
+ core:has-name "source" ;
1874
+ core:takes-values-from ai:source ;
1875
+ core:label "source attribute of kai-agent"@en ;
1876
+ core:definition "The metric attribute with the provider or the MCP host of an outbound call."@en ;
1877
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1878
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1879
+ core:owner core:kai-agent .
1880
+
1881
+ ai:metric-attribute-target a owl:NamedIndividual , core:metric-attribute ;
1882
+ core:has-name "target" ;
1883
+ core:takes-values-from ai:target ;
1884
+ core:label "target attribute of kai-agent"@en ;
1885
+ core:definition "The metric attribute with the model or the MCP server of an outbound call."@en ;
1886
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1887
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1888
+ core:owner core:kai-agent .
1889
+
1890
+ ai:metric-attribute-result a owl:NamedIndividual , core:metric-attribute ;
1891
+ core:has-name "result" ;
1892
+ core:takes-values-from ai-vocab:outbound-result ;
1893
+ core:label "result attribute of kai-agent"@en ;
1894
+ core:definition "The metric attribute with the outbound result of an outbound call."@en ;
1895
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1896
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1897
+ core:owner core:kai-agent .
1898
+
1899
+ ai:metric-attribute-token a owl:NamedIndividual , core:metric-attribute ;
1900
+ core:has-name "token" ;
1901
+ core:takes-values-from ai-vocab:token-kind ;
1902
+ core:label "token attribute of kai-agent"@en ;
1903
+ core:definition "The metric attribute with the token kind of a count of tokens."@en ;
1904
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1905
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1906
+ core:owner core:kai-agent .
1907
+
1908
+ ai:metric-attribute-cache-operation a owl:NamedIndividual , core:metric-attribute ;
1909
+ core:has-name "operation" ;
1910
+ core:takes-values-from ai-vocab:cache-operation ;
1911
+ core:label "cache operation attribute of kai-agent"@en ;
1912
+ core:definition "The metric attribute with the part of the prompt cache that a model call used."@en ;
1913
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0058-prompt-caching.md#Rules of the adapter and the runners" ;
1914
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1915
+ core:owner core:kai-agent .
1916
+
1917
+ ai:metric-attribute-check a owl:NamedIndividual , core:metric-attribute ;
1918
+ core:has-name "check" ;
1919
+ core:takes-values-from ai-vocab:object-check ;
1920
+ core:label "check attribute of kai-agent"@en ;
1921
+ core:definition "The metric attribute with the object check of the object that a repair attempt corrected."@en ;
1922
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1923
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1924
+ core:owner core:kai-agent .
1925
+
1926
+ ai:metric-attribute-confidence a owl:NamedIndividual , core:metric-attribute ;
1927
+ core:has-name "confidence" ;
1928
+ core:takes-values-from ai-vocab:decision-confidence ;
1929
+ core:label "confidence attribute of kai-agent"@en ;
1930
+ core:definition "The metric attribute with the decision confidence of a run after its escalation."@en ;
1931
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Metrics and alerts" ;
1932
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1933
+ core:owner core:kai-agent .
1934
+
1935
+ ai:metric-outbound-duration a owl:NamedIndividual , core:metric-instrument ;
1936
+ core:has-name "outbound.duration" ;
1937
+ core:has-instrument-type core-vocab:instrument-type-histogram ;
1938
+ core:in-unit core-vocab:unit-second ;
1939
+ core:has-metric-attribute ai:metric-attribute-kind , ai:metric-attribute-source , ai:metric-attribute-target , ai:metric-attribute-result ;
1940
+ core:label "outbound.duration"@en ;
1941
+ core:definition "The time of each outbound call to a provider or an MCP server."@en ;
1942
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1943
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1944
+ core:owner core:kai-agent .
1945
+
1946
+ ai:metric-outbound-first-token a owl:NamedIndividual , core:metric-instrument ;
1947
+ core:has-name "outbound.first_token" ;
1948
+ core:has-instrument-type core-vocab:instrument-type-histogram ;
1949
+ core:in-unit core-vocab:unit-second ;
1950
+ core:has-metric-attribute ai:metric-attribute-source , ai:metric-attribute-target ;
1951
+ core:label "outbound.first_token"@en ;
1952
+ core:definition "The time from the request of an outbound call of the kind `model` to its first token."@en ;
1953
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1954
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1955
+ core:owner core:kai-agent .
1956
+
1957
+ ai:metric-run-first-token a owl:NamedIndividual , core:metric-instrument ;
1958
+ core:has-name "run.first_token" ;
1959
+ core:has-instrument-type core-vocab:instrument-type-histogram ;
1960
+ core:in-unit core-vocab:unit-second ;
1961
+ core:has-metric-attribute core:metric-attribute-workspace , ai:metric-attribute-task , ai:metric-attribute-runner ;
1962
+ core:label "run.first_token"@en ;
1963
+ core:definition "The time from the start of a run to its first token."@en ;
1964
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1965
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1966
+ core:owner core:kai-agent .
1967
+
1968
+ ai:metric-run-duration a owl:NamedIndividual , core:metric-instrument ;
1969
+ core:has-name "run.duration" ;
1970
+ core:has-instrument-type core-vocab:instrument-type-histogram ;
1971
+ core:in-unit core-vocab:unit-second ;
1972
+ core:has-metric-attribute core:metric-attribute-workspace , ai:metric-attribute-task , ai:metric-attribute-runner , ai:metric-attribute-status , ai:metric-attribute-failure ;
1973
+ core:label "run.duration"@en ;
1974
+ core:definition "The time from the start of a run to its final status."@en ;
1975
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1976
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1977
+ core:owner core:kai-agent .
1978
+
1979
+ ai:metric-model-tokens a owl:NamedIndividual , core:metric-instrument ;
1980
+ core:has-name "model.tokens" ;
1981
+ core:has-instrument-type core-vocab:instrument-type-counter ;
1982
+ core:in-unit core-vocab:unit-one ;
1983
+ core:has-metric-attribute core:metric-attribute-workspace , ai:metric-attribute-task , ai:metric-attribute-source , ai:metric-attribute-target , ai:metric-attribute-token ;
1984
+ core:label "model.tokens"@en ;
1985
+ core:definition "The number of tokens of the model requests of the runs, for each token kind."@en ;
1986
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1987
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1988
+ core:owner core:kai-agent .
1989
+
1990
+ ai:metric-spend-cost a owl:NamedIndividual , core:metric-instrument ;
1991
+ core:has-name "spend.cost" ;
1992
+ core:has-instrument-type core-vocab:instrument-type-counter ;
1993
+ core:in-unit core-vocab:unit-micro-usd ;
1994
+ core:has-metric-attribute core:metric-attribute-workspace , ai:metric-attribute-task , ai:metric-attribute-source , ai:metric-attribute-target ;
1995
+ core:label "spend.cost"@en ;
1996
+ core:definition "The cost of the spend entries of the runs, in micro-USD."@en ;
1997
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
1998
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1999
+ core:owner core:kai-agent .
2000
+
2001
+ ai:metric-model-cache a owl:NamedIndividual , core:metric-instrument ;
2002
+ core:has-name "model.cache" ;
2003
+ core:has-instrument-type core-vocab:instrument-type-counter ;
2004
+ core:in-unit core-vocab:unit-one ;
2005
+ core:has-metric-attribute core:metric-attribute-workspace , ai:metric-attribute-task , ai:metric-attribute-source , ai:metric-attribute-target , ai:metric-attribute-cache-operation ;
2006
+ core:label "model.cache"@en ;
2007
+ core:definition "The number of tokens that the prompt cache of the model calls read or wrote, for each cache operation."@en ;
2008
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0058-prompt-caching.md#Rules of the adapter and the runners" ;
2009
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2010
+ core:owner core:kai-agent .
2011
+
2012
+ ai:metric-spend-cache a owl:NamedIndividual , core:metric-instrument ;
2013
+ core:has-name "spend.cache" ;
2014
+ core:has-instrument-type core-vocab:instrument-type-counter ;
2015
+ core:in-unit core-vocab:unit-micro-usd ;
2016
+ core:has-metric-attribute core:metric-attribute-workspace , ai:metric-attribute-task , ai:metric-attribute-source , ai:metric-attribute-target ;
2017
+ core:label "spend.cache"@en ;
2018
+ core:definition "The cost of the tokens that the prompt cache of the model calls saved, in micro-USD."@en ;
2019
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0058-prompt-caching.md#Rules of the adapter and the runners" ;
2020
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2021
+ core:owner core:kai-agent .
2022
+
2023
+ ai:metric-queue-wait a owl:NamedIndividual , core:metric-instrument ;
2024
+ core:has-name "queue.wait" ;
2025
+ core:planned-in "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
2026
+ core:has-instrument-type core-vocab:instrument-type-histogram ;
2027
+ core:in-unit core-vocab:unit-second ;
2028
+ core:has-metric-attribute core:metric-attribute-workspace , ai:metric-attribute-task ;
2029
+ core:label "queue.wait"@en ;
2030
+ core:definition "The time that a run waits in the queue before a worker takes it."@en ;
2031
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
2032
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2033
+ core:owner core:kai-agent .
2034
+
2035
+ ai:metric-run-suspends a owl:NamedIndividual , core:metric-instrument ;
2036
+ core:has-name "run.suspends" ;
2037
+ core:has-instrument-type core-vocab:instrument-type-counter ;
2038
+ core:in-unit core-vocab:unit-one ;
2039
+ core:has-metric-attribute core:metric-attribute-workspace , ai:metric-attribute-task , ai:metric-attribute-runner , ai:metric-attribute-reason ;
2040
+ core:label "run.suspends"@en ;
2041
+ core:definition "The number of suspends of the runs, for each suspend reason."@en ;
2042
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
2043
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2044
+ core:owner core:kai-agent .
2045
+
2046
+ ai:metric-run-repairs a owl:NamedIndividual , core:metric-instrument ;
2047
+ core:has-name "run.repairs" ;
2048
+ core:has-instrument-type core-vocab:instrument-type-counter ;
2049
+ core:in-unit core-vocab:unit-one ;
2050
+ core:has-metric-attribute core:metric-attribute-workspace , ai:metric-attribute-task , ai:metric-attribute-source , ai:metric-attribute-target , ai:metric-attribute-check ;
2051
+ core:label "run.repairs"@en ;
2052
+ core:definition "The number of repair attempts of the runs, for each object check."@en ;
2053
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0025-observability.md#Decision" ;
2054
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2055
+ core:owner core:kai-agent .
2056
+
2057
+ ai:metric-run-escalations a owl:NamedIndividual , core:metric-instrument ;
2058
+ core:has-name "run.escalations" ;
2059
+ core:has-instrument-type core-vocab:instrument-type-counter ;
2060
+ core:in-unit core-vocab:unit-one ;
2061
+ core:has-metric-attribute core:metric-attribute-workspace , ai:metric-attribute-task , ai:metric-attribute-source , ai:metric-attribute-target , ai:metric-attribute-confidence ;
2062
+ core:label "run.escalations"@en ;
2063
+ core:definition "The number of escalations of the runs with a workspace, for each decision confidence after the escalation."@en ;
2064
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Metrics and alerts" ;
2065
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2066
+ core:owner core:kai-agent .
2067
+
2068
+ ai:metric-run-fallbacks a owl:NamedIndividual , core:metric-instrument ;
2069
+ core:has-name "run.fallbacks" ;
2070
+ core:has-instrument-type core-vocab:instrument-type-counter ;
2071
+ core:in-unit core-vocab:unit-one ;
2072
+ core:has-metric-attribute core:metric-attribute-workspace , ai:metric-attribute-task , ai:metric-attribute-source , ai:metric-attribute-target , ai:metric-attribute-failure-reason ;
2073
+ core:label "run.fallbacks"@en ;
2074
+ core:definition "The number of fallbacks of a run to the next model of the fallback list, with a workspace, for each reason of the failure."@en ;
2075
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0071-model-tiers.md#Decision" ;
2076
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2077
+ core:owner core:kai-agent .
2078
+
2079
+ ai:has-pass-mark a owl:DatatypeProperty , owl:FunctionalProperty ;
2080
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:eval-set ai:eval-result ) ] ;
2081
+ rdfs:range xsd:decimal ;
2082
+ core:label "has pass mark"@en ;
2083
+ core:definition "The minimum average score, from 0 to 1, that a prompt version must get on the eval set of its task. An eval result keeps the pass mark of its eval."@en ;
2084
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2085
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2086
+ core:owner core:kai-agent ;
2087
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
2088
+
2089
+ ai:has-eval-set-hash a owl:DatatypeProperty , owl:FunctionalProperty ;
2090
+ rdfs:domain ai:eval-result ;
2091
+ rdfs:range xsd:string ;
2092
+ core:label "has eval set hash"@en ;
2093
+ core:definition "The hash of the eval set that an eval used. A publish refuses an eval result whose hash is not the hash of the eval set in the repository."@en ;
2094
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
2095
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2096
+ core:owner core:kai-agent ;
2097
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
2098
+
2099
+ ai:has-average-score a owl:DatatypeProperty , owl:FunctionalProperty ;
2100
+ rdfs:domain ai:eval-result ;
2101
+ rdfs:range xsd:decimal ;
2102
+ core:label "has average score"@en ;
2103
+ core:definition "The sum of the scores of the runs of an eval, divided by the number of runs, with no rounding. The scorer scores the final output, after the escalation."@en ;
2104
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
2105
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2106
+ core:owner core:kai-agent ;
2107
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
2108
+
2109
+ ai:has-average-cost a owl:DatatypeProperty , owl:FunctionalProperty ;
2110
+ rdfs:domain ai:eval-result ;
2111
+ rdfs:range xsd:long ;
2112
+ core:label "has average cost"@en ;
2113
+ core:definition "The sum of the costs of the runs of an eval, escalations included, divided by the number of runs and rounded up to the next integer micro-USD."@en ;
2114
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
2115
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2116
+ core:owner core:kai-agent ;
2117
+ core:unit core-vocab:unit-micro-usd ;
2118
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
2119
+
2120
+ ai:has-escalation-rate a owl:DatatypeProperty , owl:FunctionalProperty ;
2121
+ rdfs:domain ai:eval-result ;
2122
+ rdfs:range xsd:decimal ;
2123
+ core:label "has escalation rate"@en ;
2124
+ core:definition "The share of the runs of an eval with an escalation, from 0 to 1."@en ;
2125
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0054-decision-tasks.md#Eval runs and the gate" ;
2126
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2127
+ core:owner core:kai-agent ;
2128
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
2129
+
2130
+ # Tables of lead-scoring and kai-agent (docs/decisions/0003-modelling-patterns.md#Tables and columns).
2131
+
2132
+ ai:schema-access a owl:NamedIndividual , core:database-schema ;
2133
+ core:has-name "access" ;
2134
+ core:label "access schema"@en ;
2135
+ core:definition "The Postgres schema of `kai-agent` that holds the backend clients and the admin audit."@en ;
2136
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0040-storage.md#Decision" ;
2137
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2138
+ core:owner core:kai-agent .
2139
+
2140
+ ai:table-execution-segments a owl:NamedIndividual , core:table ;
2141
+ core:in-database-schema ai:schema-execution ;
2142
+ core:has-name "segments" ;
2143
+ core:has-row-class ai:run-segment ;
2144
+ core:label "execution.segments"@en ;
2145
+ core:definition "The table of the run segments of `kai-agent`: one row for each segment of a run."@en ;
2146
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2147
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2148
+ core:owner core:kai-agent .
2149
+
2150
+ ai:column-execution-segments-run a owl:NamedIndividual , core:column ;
2151
+ core:of-table ai:table-execution-segments ;
2152
+ core:has-name "run" ;
2153
+ core:stores-property ai:part-of-run ;
2154
+ core:in-primary-key true ;
2155
+ core:label "execution.segments.run"@en ;
2156
+ core:definition "The id of the run of the run segment."@en ;
2157
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2158
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2159
+ core:owner core:kai-agent .
2160
+
2161
+ ai:column-execution-segments-number a owl:NamedIndividual , core:column ;
2162
+ core:of-table ai:table-execution-segments ;
2163
+ core:has-name "number" ;
2164
+ core:stores-property ai:has-segment-number ;
2165
+ core:in-primary-key true ;
2166
+ core:label "execution.segments.number"@en ;
2167
+ core:definition "The number of the run segment in its run, from 1."@en ;
2168
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2169
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2170
+ core:owner core:kai-agent .
2171
+
2172
+ ai:column-execution-segments-hold a owl:NamedIndividual , core:column ;
2173
+ core:of-table ai:table-execution-segments ;
2174
+ core:has-name "hold" ;
2175
+ core:stores-property ai:with-hold ;
2176
+ core:label "execution.segments.hold"@en ;
2177
+ core:definition "The id of the hold of the run segment. The service uses it when the segment opens a hold in `billing`."@en ;
2178
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2179
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2180
+ core:owner core:kai-agent .
2181
+
2182
+ ai:column-execution-segments-cost a owl:NamedIndividual , core:column ;
2183
+ core:of-table ai:table-execution-segments ;
2184
+ core:has-name "cost" ;
2185
+ core:not-modelled-reason "The sum of the spend entries of the run segment. The model keeps the cost of each outbound call, not of a segment."@en ;
2186
+ core:label "execution.segments.cost"@en ;
2187
+ core:definition "The cost of the run segment in micro-USD. It is empty until the segment ends."@en ;
2188
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2189
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2190
+ core:owner core:kai-agent .
2191
+
2192
+ ai:column-execution-segments-started-at a owl:NamedIndividual , core:column ;
2193
+ core:of-table ai:table-execution-segments ;
2194
+ core:has-name "started_at" ;
2195
+ core:stores-property core:started-at ;
2196
+ core:label "execution.segments.started_at"@en ;
2197
+ core:definition "The time when the run segment started."@en ;
2198
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2199
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2200
+ core:owner core:kai-agent .
2201
+
2202
+ ai:column-execution-segments-ended-at a owl:NamedIndividual , core:column ;
2203
+ core:of-table ai:table-execution-segments ;
2204
+ core:has-name "ended_at" ;
2205
+ core:stores-property core:ended-at ;
2206
+ core:label "execution.segments.ended_at"@en ;
2207
+ core:definition "The time when the run segment ended. It is empty while the segment runs."@en ;
2208
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2209
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2210
+ core:owner core:kai-agent .
2211
+
2212
+ ai:column-execution-segments-hold-closed-at a owl:NamedIndividual , core:column ;
2213
+ core:of-table ai:table-execution-segments ;
2214
+ core:has-name "hold_closed_at" ;
2215
+ core:not-modelled-reason "The model keeps the hold as `ai:with-hold`. The close time of a hold is a `billing` fact."@en ;
2216
+ core:label "execution.segments.hold_closed_at"@en ;
2217
+ core:definition "The time when the service closed the hold of the run segment. It is empty while the hold is open."@en ;
2218
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2219
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2220
+ core:owner core:kai-agent .
2221
+
2222
+ ai:table-execution-tokens a owl:NamedIndividual , core:table ;
2223
+ core:in-database-schema ai:schema-execution ;
2224
+ core:has-name "tokens" ;
2225
+ core:has-row-class ai:server-token ;
2226
+ core:label "execution.tokens"@en ;
2227
+ core:definition "The table of the stored server tokens of `kai-agent`: one row for each token that a run keeps for one MCP server and one operation."@en ;
2228
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2229
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2230
+ core:owner core:kai-agent .
2231
+
2232
+ ai:column-execution-tokens-run a owl:NamedIndividual , core:column ;
2233
+ core:of-table ai:table-execution-tokens ;
2234
+ core:has-name "run" ;
2235
+ core:stores-property ai:of-run ;
2236
+ core:in-primary-key true ;
2237
+ core:label "execution.tokens.run"@en ;
2238
+ core:definition "The id of the run of the stored server token."@en ;
2239
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2240
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2241
+ core:owner core:kai-agent .
2242
+
2243
+ ai:column-execution-tokens-server a owl:NamedIndividual , core:column ;
2244
+ core:of-table ai:table-execution-tokens ;
2245
+ core:has-name "server" ;
2246
+ core:stores-property ai:for-server ;
2247
+ core:in-primary-key true ;
2248
+ core:label "execution.tokens.server"@en ;
2249
+ core:definition "The name of the MCP server of the stored server token."@en ;
2250
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2251
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2252
+ core:owner core:kai-agent .
2253
+
2254
+ ai:column-execution-tokens-operation a owl:NamedIndividual , core:column ;
2255
+ core:of-table ai:table-execution-tokens ;
2256
+ core:has-name "operation" ;
2257
+ core:not-modelled-reason "The model keeps the kind of a server token, `ai:has-server-token-kind`. It keeps no operation."@en ;
2258
+ core:in-primary-key true ;
2259
+ core:label "execution.tokens.operation"@en ;
2260
+ core:definition "The name of the MCP operation that the stored server token is for."@en ;
2261
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2262
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2263
+ core:owner core:kai-agent .
2264
+
2265
+ ai:column-execution-tokens-sealed a owl:NamedIndividual , core:column ;
2266
+ core:of-table ai:table-execution-tokens ;
2267
+ core:has-name "sealed" ;
2268
+ core:not-modelled-reason "The model never keeps a secret value."@en ;
2269
+ core:label "execution.tokens.sealed"@en ;
2270
+ core:definition "The sealed token value."@en ;
2271
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2272
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2273
+ core:owner core:kai-agent .
2274
+
2275
+ ai:column-execution-tokens-expires-at a owl:NamedIndividual , core:column ;
2276
+ core:of-table ai:table-execution-tokens ;
2277
+ core:has-name "expires_at" ;
2278
+ core:not-modelled-reason "The model keeps no expiry time for a server token."@en ;
2279
+ core:label "execution.tokens.expires_at"@en ;
2280
+ core:definition "The time when the stored server token stops working."@en ;
2281
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2282
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2283
+ core:owner core:kai-agent .
2284
+
2285
+ ai:column-execution-tokens-updated-at a owl:NamedIndividual , core:column ;
2286
+ core:of-table ai:table-execution-tokens ;
2287
+ core:has-name "updated_at" ;
2288
+ core:not-modelled-reason "A technical timestamp of the row. The model keeps no such time for this class."@en ;
2289
+ core:label "execution.tokens.updated_at"@en ;
2290
+ core:definition "The time of the last change of the stored server token row."@en ;
2291
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2292
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2293
+ core:owner core:kai-agent .
2294
+
2295
+ ai:table-prompts-partials a owl:NamedIndividual , core:table ;
2296
+ core:in-database-schema ai:schema-prompts ;
2297
+ core:has-name "partials" ;
2298
+ core:has-row-class ai:partial ;
2299
+ core:label "prompts.partials"@en ;
2300
+ core:definition "The table of the prompt partials of `kai-agent`: one row for each version of a partial."@en ;
2301
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2302
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2303
+ core:owner core:kai-agent .
2304
+
2305
+ ai:column-prompts-partials-name a owl:NamedIndividual , core:column ;
2306
+ core:of-table ai:table-prompts-partials ;
2307
+ core:has-name "name" ;
2308
+ core:stores-property core:has-name ;
2309
+ core:in-primary-key true ;
2310
+ core:label "prompts.partials.name"@en ;
2311
+ core:definition "The name of the prompt partial."@en ;
2312
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2313
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2314
+ core:owner core:kai-agent .
2315
+
2316
+ ai:column-prompts-partials-number a owl:NamedIndividual , core:column ;
2317
+ core:of-table ai:table-prompts-partials ;
2318
+ core:has-name "number" ;
2319
+ core:stores-property ai:has-version-number ;
2320
+ core:in-primary-key true ;
2321
+ core:label "prompts.partials.number"@en ;
2322
+ core:definition "The number of the prompt partial among the versions of its name."@en ;
2323
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2324
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2325
+ core:owner core:kai-agent .
2326
+
2327
+ ai:column-prompts-partials-template a owl:NamedIndividual , core:column ;
2328
+ core:of-table ai:table-prompts-partials ;
2329
+ core:has-name "template" ;
2330
+ core:stores-property ai:has-template ;
2331
+ core:label "prompts.partials.template"@en ;
2332
+ core:definition "The LiquidJS template of the prompt partial."@en ;
2333
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2334
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2335
+ core:owner core:kai-agent .
2336
+
2337
+ ai:column-prompts-partials-author a owl:NamedIndividual , core:column ;
2338
+ core:of-table ai:table-prompts-partials ;
2339
+ core:has-name "author" ;
2340
+ core:not-modelled-reason "The shape of `ai:partial` does not list `core:was-attributed-to`."@en ;
2341
+ core:label "prompts.partials.author"@en ;
2342
+ core:definition "The author of the prompt partial."@en ;
2343
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2344
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2345
+ core:owner core:kai-agent .
2346
+
2347
+ ai:column-prompts-partials-note a owl:NamedIndividual , core:column ;
2348
+ core:of-table ai:table-prompts-partials ;
2349
+ core:has-name "note" ;
2350
+ core:not-modelled-reason "`ai:has-note` is a property of the prompt version. The shape of `ai:partial` does not list it."@en ;
2351
+ core:label "prompts.partials.note"@en ;
2352
+ core:definition "The note of the author of the prompt partial."@en ;
2353
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2354
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2355
+ core:owner core:kai-agent .
2356
+
2357
+ ai:column-prompts-partials-created-at a owl:NamedIndividual , core:column ;
2358
+ core:of-table ai:table-prompts-partials ;
2359
+ core:has-name "created_at" ;
2360
+ core:stores-property core:generated-at ;
2361
+ core:label "prompts.partials.created_at"@en ;
2362
+ core:definition "The time when the prompt partial was made."@en ;
2363
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2364
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2365
+ core:owner core:kai-agent .
2366
+
2367
+ ai:table-prompts-releases a owl:NamedIndividual , core:table ;
2368
+ core:in-database-schema ai:schema-prompts ;
2369
+ core:has-name "releases" ;
2370
+ core:has-row-class ai:release ;
2371
+ core:label "prompts.releases"@en ;
2372
+ core:definition "The table of the prompt releases of `kai-agent`: one row for each task, with its current prompt version and its candidate."@en ;
2373
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2374
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2375
+ core:owner core:kai-agent .
2376
+
2377
+ ai:column-prompts-releases-task a owl:NamedIndividual , core:column ;
2378
+ core:of-table ai:table-prompts-releases ;
2379
+ core:has-name "task" ;
2380
+ core:stores-property ai:of-task ;
2381
+ core:in-primary-key true ;
2382
+ core:label "prompts.releases.task"@en ;
2383
+ core:definition "The name of the task of the prompt release."@en ;
2384
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2385
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2386
+ core:owner core:kai-agent .
2387
+
2388
+ ai:column-prompts-releases-current a owl:NamedIndividual , core:column ;
2389
+ core:of-table ai:table-prompts-releases ;
2390
+ core:has-name "current" ;
2391
+ core:stores-property ai:has-current ;
2392
+ core:label "prompts.releases.current"@en ;
2393
+ core:definition "The number of the current prompt version of the prompt release."@en ;
2394
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2395
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2396
+ core:owner core:kai-agent .
2397
+
2398
+ ai:column-prompts-releases-candidate a owl:NamedIndividual , core:column ;
2399
+ core:of-table ai:table-prompts-releases ;
2400
+ core:has-name "candidate" ;
2401
+ core:stores-property ai:has-candidate ;
2402
+ core:label "prompts.releases.candidate"@en ;
2403
+ core:definition "The number of the candidate prompt version of the prompt release. It is empty when there is no candidate."@en ;
2404
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2405
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2406
+ core:owner core:kai-agent .
2407
+
2408
+ ai:column-prompts-releases-percentage a owl:NamedIndividual , core:column ;
2409
+ core:of-table ai:table-prompts-releases ;
2410
+ core:has-name "percentage" ;
2411
+ core:stores-property ai:has-candidate-percentage ;
2412
+ core:label "prompts.releases.percentage"@en ;
2413
+ core:definition "The percentage of the runs that use the candidate prompt version."@en ;
2414
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2415
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2416
+ core:owner core:kai-agent .
2417
+
2418
+ ai:column-prompts-releases-updated-at a owl:NamedIndividual , core:column ;
2419
+ core:of-table ai:table-prompts-releases ;
2420
+ core:has-name "updated_at" ;
2421
+ core:not-modelled-reason "A technical timestamp of the row. The model keeps no such time for this class."@en ;
2422
+ core:label "prompts.releases.updated_at"@en ;
2423
+ core:definition "The time of the last change of the prompt release row."@en ;
2424
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2425
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2426
+ core:owner core:kai-agent .
2427
+
2428
+ ai:table-prompts-versions a owl:NamedIndividual , core:table ;
2429
+ core:in-database-schema ai:schema-prompts ;
2430
+ core:has-name "versions" ;
2431
+ core:has-row-class ai:prompt-version ;
2432
+ core:label "prompts.versions"@en ;
2433
+ core:definition "The table of the prompt versions of `kai-agent`: one row for each version of the prompt of a task."@en ;
2434
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2435
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2436
+ core:owner core:kai-agent .
2437
+
2438
+ ai:column-prompts-versions-task a owl:NamedIndividual , core:column ;
2439
+ core:of-table ai:table-prompts-versions ;
2440
+ core:has-name "task" ;
2441
+ core:stores-property ai:of-task ;
2442
+ core:in-primary-key true ;
2443
+ core:label "prompts.versions.task"@en ;
2444
+ core:definition "The name of the task of the prompt version."@en ;
2445
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2446
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2447
+ core:owner core:kai-agent .
2448
+
2449
+ ai:column-prompts-versions-number a owl:NamedIndividual , core:column ;
2450
+ core:of-table ai:table-prompts-versions ;
2451
+ core:has-name "number" ;
2452
+ core:stores-property ai:has-version-number ;
2453
+ core:in-primary-key true ;
2454
+ core:label "prompts.versions.number"@en ;
2455
+ core:definition "The number of the prompt version among the versions of its task."@en ;
2456
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2457
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2458
+ core:owner core:kai-agent .
2459
+
2460
+ ai:column-prompts-versions-template a owl:NamedIndividual , core:column ;
2461
+ core:of-table ai:table-prompts-versions ;
2462
+ core:has-name "template" ;
2463
+ core:stores-property ai:has-template ;
2464
+ core:label "prompts.versions.template"@en ;
2465
+ core:definition "The LiquidJS template of the prompt version."@en ;
2466
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2467
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2468
+ core:owner core:kai-agent .
2469
+
2470
+ ai:column-prompts-versions-schema-version a owl:NamedIndividual , core:column ;
2471
+ core:of-table ai:table-prompts-versions ;
2472
+ core:has-name "schema_version" ;
2473
+ core:stores-property ai:has-schema-version ;
2474
+ core:label "prompts.versions.schema_version"@en ;
2475
+ core:definition "The major version of the input and output schemas of the task for the prompt version."@en ;
2476
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2477
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2478
+ core:owner core:kai-agent .
2479
+
2480
+ ai:column-prompts-versions-model a owl:NamedIndividual , core:column ;
2481
+ core:of-table ai:table-prompts-versions ;
2482
+ core:has-name "model" ;
2483
+ core:not-modelled-reason "The first entry of the fallback list states the model, `ai:uses-model` of `ai:fallback-entry`."@en ;
2484
+ core:label "prompts.versions.model"@en ;
2485
+ core:definition "The `provider/model` id of the prompt version."@en ;
2486
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2487
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2488
+ core:owner core:kai-agent .
2489
+
2490
+ ai:column-prompts-versions-settings a owl:NamedIndividual , core:column ;
2491
+ core:of-table ai:table-prompts-versions ;
2492
+ core:has-name "settings" ;
2493
+ core:not-modelled-reason "`ai:fallback-entry` states the settings of each model, for example `ai:has-temperature`."@en ;
2494
+ core:label "prompts.versions.settings"@en ;
2495
+ core:definition "The model settings of the prompt version, as JSON."@en ;
2496
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2497
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2498
+ core:owner core:kai-agent .
2499
+
2500
+ ai:column-prompts-versions-fallbacks a owl:NamedIndividual , core:column ;
2501
+ core:of-table ai:table-prompts-versions ;
2502
+ core:has-name "fallbacks" ;
2503
+ core:not-modelled-reason "`ai:fallback-list` states the list, with `ai:has-fallback-list`. The column keeps the entries as one JSON array."@en ;
2504
+ core:label "prompts.versions.fallbacks"@en ;
2505
+ core:definition "The ordered fallback list of the prompt version, as JSON."@en ;
2506
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2507
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2508
+ core:owner core:kai-agent .
2509
+
2510
+ ai:column-prompts-versions-partials a owl:NamedIndividual , core:column ;
2511
+ core:of-table ai:table-prompts-versions ;
2512
+ core:has-name "partials" ;
2513
+ core:stores-property ai:uses-partial ;
2514
+ core:label "prompts.versions.partials"@en ;
2515
+ core:definition "The partial numbers that the prompt version uses, as JSON from the name of a partial to its number."@en ;
2516
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2517
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2518
+ core:owner core:kai-agent .
2519
+
2520
+ ai:column-prompts-versions-prompts a owl:NamedIndividual , core:column ;
2521
+ core:of-table ai:table-prompts-versions ;
2522
+ core:has-name "prompts" ;
2523
+ core:not-modelled-reason "The model keeps the LiquidJS template, `ai:has-template`. The prompt texts have no property."@en ;
2524
+ core:label "prompts.versions.prompts"@en ;
2525
+ core:definition "The system and user prompt texts of the prompt version."@en ;
2526
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2527
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2528
+ core:owner core:kai-agent .
2529
+
2530
+ ai:column-prompts-versions-author a owl:NamedIndividual , core:column ;
2531
+ core:of-table ai:table-prompts-versions ;
2532
+ core:has-name "author" ;
2533
+ core:stores-property core:was-attributed-to ;
2534
+ core:label "prompts.versions.author"@en ;
2535
+ core:definition "The author of the prompt version."@en ;
2536
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2537
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2538
+ core:owner core:kai-agent .
2539
+
2540
+ ai:column-prompts-versions-note a owl:NamedIndividual , core:column ;
2541
+ core:of-table ai:table-prompts-versions ;
2542
+ core:has-name "note" ;
2543
+ core:stores-property ai:has-note ;
2544
+ core:label "prompts.versions.note"@en ;
2545
+ core:definition "The note of the author of the prompt version."@en ;
2546
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2547
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2548
+ core:owner core:kai-agent .
2549
+
2550
+ ai:column-prompts-versions-created-at a owl:NamedIndividual , core:column ;
2551
+ core:of-table ai:table-prompts-versions ;
2552
+ core:has-name "created_at" ;
2553
+ core:stores-property core:generated-at ;
2554
+ core:label "prompts.versions.created_at"@en ;
2555
+ core:definition "The time when the prompt version was made."@en ;
2556
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2557
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2558
+ core:owner core:kai-agent .
2559
+
2560
+ ai:column-prompts-versions-escalation a owl:NamedIndividual , core:column ;
2561
+ core:of-table ai:table-prompts-versions ;
2562
+ core:has-name "escalation" ;
2563
+ core:not-modelled-reason "`ai:has-escalation-model` states the escalation model. The column keeps the model and its settings as one JSON object."@en ;
2564
+ core:label "prompts.versions.escalation"@en ;
2565
+ core:definition "The escalation settings of the prompt version, as JSON. It is empty for a prompt version with no escalation."@en ;
2566
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
2567
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2568
+ core:owner core:kai-agent .
2569
+
2570
+ ai:table-spend-budgets a owl:NamedIndividual , core:table ;
2571
+ core:in-database-schema ai:schema-spend ;
2572
+ core:has-name "budgets" ;
2573
+ core:has-row-class ai:budget ;
2574
+ core:label "spend.budgets"@en ;
2575
+ core:definition "The table of the budgets of `kai-agent`: one row for each maximum of the monthly costs, global or for one provider."@en ;
2576
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
2577
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2578
+ core:owner core:kai-agent .
2579
+
2580
+ ai:column-spend-budgets-scope a owl:NamedIndividual , core:column ;
2581
+ core:of-table ai:table-spend-budgets ;
2582
+ core:has-name "scope" ;
2583
+ core:stores-property ai:has-budget-scope ;
2584
+ core:in-primary-key true ;
2585
+ core:label "spend.budgets.scope"@en ;
2586
+ core:definition "The scope of the budget: `global` or `provider`."@en ;
2587
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
2588
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2589
+ core:owner core:kai-agent .
2590
+
2591
+ ai:column-spend-budgets-subject a owl:NamedIndividual , core:column ;
2592
+ core:of-table ai:table-spend-budgets ;
2593
+ core:has-name "subject" ;
2594
+ core:stores-property ai:limits-provider ;
2595
+ core:in-primary-key true ;
2596
+ core:label "spend.budgets.subject"@en ;
2597
+ core:definition "The provider that the budget limits. It is empty for the scope `global`."@en ;
2598
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
2599
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2600
+ core:owner core:kai-agent .
2601
+
2602
+ ai:column-spend-budgets-maximum a owl:NamedIndividual , core:column ;
2603
+ core:of-table ai:table-spend-budgets ;
2604
+ core:has-name "maximum" ;
2605
+ core:stores-property ai:has-maximum-cost ;
2606
+ core:label "spend.budgets.maximum"@en ;
2607
+ core:definition "The maximum of the costs of the budget in one calendar month in UTC, in micro-USD."@en ;
2608
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
2609
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2610
+ core:owner core:kai-agent .
2611
+
2612
+ ai:column-spend-budgets-updated-at a owl:NamedIndividual , core:column ;
2613
+ core:of-table ai:table-spend-budgets ;
2614
+ core:has-name "updated_at" ;
2615
+ core:not-modelled-reason "A technical timestamp of the row. The model keeps no such time for this class."@en ;
2616
+ core:label "spend.budgets.updated_at"@en ;
2617
+ core:definition "The time of the last change of the budget row."@en ;
2618
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Calls and spend" ;
2619
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2620
+ core:owner core:kai-agent .
2621
+
2622
+ ai:table-spend-model-limits a owl:NamedIndividual , core:table ;
2623
+ core:in-database-schema ai:schema-spend ;
2624
+ core:has-name "model_limits" ;
2625
+ core:has-row-class ai:model-limit ;
2626
+ core:label "spend.model_limits"@en ;
2627
+ core:definition "The table of the model limits of `kai-agent`: one row for each model of a provider, with its call time limit in seconds."@en ;
2628
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
2629
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2630
+ core:owner core:kai-agent .
2631
+
2632
+ ai:column-spend-model-limits-source a owl:NamedIndividual , core:column ;
2633
+ core:of-table ai:table-spend-model-limits ;
2634
+ core:has-name "source" ;
2635
+ core:stores-property ai:to-source ;
2636
+ core:in-primary-key true ;
2637
+ core:label "spend.model_limits.source"@en ;
2638
+ core:definition "The name of the provider of the model."@en ;
2639
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
2640
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2641
+ core:owner core:kai-agent .
2642
+
2643
+ ai:column-spend-model-limits-target a owl:NamedIndividual , core:column ;
2644
+ core:of-table ai:table-spend-model-limits ;
2645
+ core:has-name "target" ;
2646
+ core:stores-property ai:to-target ;
2647
+ core:in-primary-key true ;
2648
+ core:label "spend.model_limits.target"@en ;
2649
+ core:definition "The model id at the provider."@en ;
2650
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
2651
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2652
+ core:owner core:kai-agent .
2653
+
2654
+ ai:column-spend-model-limits-call-timeout-seconds a owl:NamedIndividual , core:column ;
2655
+ core:of-table ai:table-spend-model-limits ;
2656
+ core:has-name "call_timeout_seconds" ;
2657
+ core:stores-property ai:has-call-timeout ;
2658
+ core:label "spend.model_limits.call_timeout_seconds"@en ;
2659
+ core:definition "The call time limit of the model, in seconds."@en ;
2660
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
2661
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2662
+ core:owner core:kai-agent .
2663
+
2664
+ ai:column-spend-model-limits-created-at a owl:NamedIndividual , core:column ;
2665
+ core:of-table ai:table-spend-model-limits ;
2666
+ core:has-name "created_at" ;
2667
+ core:not-modelled-reason "A technical timestamp of the row. The model keeps no such time for this class."@en ;
2668
+ core:label "spend.model_limits.created_at"@en ;
2669
+ core:definition "The time when the service wrote the model limit row."@en ;
2670
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
2671
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2672
+ core:owner core:kai-agent .
2673
+
2674
+ ai:column-spend-model-limits-updated-at a owl:NamedIndividual , core:column ;
2675
+ core:of-table ai:table-spend-model-limits ;
2676
+ core:has-name "updated_at" ;
2677
+ core:not-modelled-reason "A technical timestamp of the row. The model keeps no such time for this class."@en ;
2678
+ core:label "spend.model_limits.updated_at"@en ;
2679
+ core:definition "The time of the last change of the model limit row."@en ;
2680
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0021-model-settings.md#Decision" ;
2681
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2682
+ core:owner core:kai-agent .
2683
+
2684
+ ai:table-spend-unit-costs a owl:NamedIndividual , core:table ;
2685
+ core:in-database-schema ai:schema-spend ;
2686
+ core:has-name "unit_costs" ;
2687
+ core:has-row-class billing:unit-cost ;
2688
+ core:label "spend.unit_costs"@en ;
2689
+ core:definition "The table of the unit costs of `kai-agent`: one row for each cost of one unit of paid work from one source, valid from a date. `kai-agent` keeps a copy of the unit costs of `billing`."@en ;
2690
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
2691
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2692
+ core:owner core:kai-agent .
2693
+
2694
+ ai:column-spend-unit-costs-id a owl:NamedIndividual , core:column ;
2695
+ core:of-table ai:table-spend-unit-costs ;
2696
+ core:has-name "id" ;
2697
+ core:not-modelled-reason "The row key of the unit cost. The spend entry points at it, `ai:at-unit-cost`. The shape of `billing:unit-cost` has no id."@en ;
2698
+ core:in-primary-key true ;
2699
+ core:label "spend.unit_costs.id"@en ;
2700
+ core:definition "The id of the unit cost row."@en ;
2701
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
2702
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2703
+ core:owner core:kai-agent .
2704
+
2705
+ ai:column-spend-unit-costs-source a owl:NamedIndividual , core:column ;
2706
+ core:of-table ai:table-spend-unit-costs ;
2707
+ core:has-name "source" ;
2708
+ core:stores-property billing:of-source ;
2709
+ core:label "spend.unit_costs.source"@en ;
2710
+ core:definition "The name of the provider of the unit cost."@en ;
2711
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
2712
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2713
+ core:owner core:kai-agent .
2714
+
2715
+ ai:column-spend-unit-costs-target a owl:NamedIndividual , core:column ;
2716
+ core:of-table ai:table-spend-unit-costs ;
2717
+ core:has-name "target" ;
2718
+ core:not-modelled-reason "The unit cost of `billing` has a source and a cost unit. The model id has no property of `billing:unit-cost`."@en ;
2719
+ core:label "spend.unit_costs.target"@en ;
2720
+ core:definition "The model id of the unit cost."@en ;
2721
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
2722
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2723
+ core:owner core:kai-agent .
2724
+
2725
+ ai:column-spend-unit-costs-cost-unit a owl:NamedIndividual , core:column ;
2726
+ core:of-table ai:table-spend-unit-costs ;
2727
+ core:has-name "cost_unit" ;
2728
+ core:stores-property billing:has-cost-unit ;
2729
+ core:label "spend.unit_costs.cost_unit"@en ;
2730
+ core:definition "The cost unit of the unit cost."@en ;
2731
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
2732
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2733
+ core:owner core:kai-agent .
2734
+
2735
+ ai:column-spend-unit-costs-unit-cost a owl:NamedIndividual , core:column ;
2736
+ core:of-table ai:table-spend-unit-costs ;
2737
+ core:has-name "unit_cost" ;
2738
+ core:stores-property billing:has-cost-per-million-units ;
2739
+ core:label "spend.unit_costs.unit_cost"@en ;
2740
+ core:definition "The unit cost in micro-USD for one million cost units."@en ;
2741
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
2742
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2743
+ core:owner core:kai-agent .
2744
+
2745
+ ai:column-spend-unit-costs-from a owl:NamedIndividual , core:column ;
2746
+ core:of-table ai:table-spend-unit-costs ;
2747
+ core:has-name "from" ;
2748
+ core:not-modelled-reason "The model keeps no start date for a unit cost."@en ;
2749
+ core:label "spend.unit_costs.from"@en ;
2750
+ core:definition "The first day on which the unit cost is valid."@en ;
2751
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
2752
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2753
+ core:owner core:kai-agent .
2754
+
2755
+ ai:column-spend-unit-costs-created-at a owl:NamedIndividual , core:column ;
2756
+ core:of-table ai:table-spend-unit-costs ;
2757
+ core:has-name "created_at" ;
2758
+ core:not-modelled-reason "A technical timestamp of the row. The model keeps no such time for this class."@en ;
2759
+ core:label "spend.unit_costs.created_at"@en ;
2760
+ core:definition "The time when the service wrote the unit cost row."@en ;
2761
+ core:source "docs/specs/billing/docs/internal/decisions/0003-concepts.md#Spenders and holds" ;
2762
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2763
+ core:owner core:kai-agent .
2764
+
2765
+ ai:table-access-audit a owl:NamedIndividual , core:table ;
2766
+ core:in-database-schema ai:schema-access ;
2767
+ core:has-name "audit" ;
2768
+ core:has-row-class ai:admin-change ;
2769
+ core:label "access.audit"@en ;
2770
+ core:definition "The table of the admin changes of `kai-agent`: one row for each change of the access settings or of the prompt store, with its actor and its difference."@en ;
2771
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0017-prompt-admin.md#Decision" ;
2772
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2773
+ core:owner core:kai-agent .
2774
+
2775
+ ai:column-access-audit-id a owl:NamedIndividual , core:column ;
2776
+ core:of-table ai:table-access-audit ;
2777
+ core:has-name "id" ;
2778
+ core:not-modelled-reason "The row key of the admin change. The shape of `ai:admin-change` has no id."@en ;
2779
+ core:in-primary-key true ;
2780
+ core:label "access.audit.id"@en ;
2781
+ core:definition "The id of the admin change."@en ;
2782
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0017-prompt-admin.md#Decision" ;
2783
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2784
+ core:owner core:kai-agent .
2785
+
2786
+ ai:column-access-audit-at a owl:NamedIndividual , core:column ;
2787
+ core:of-table ai:table-access-audit ;
2788
+ core:has-name "at" ;
2789
+ core:stores-property core:started-at ;
2790
+ core:label "access.audit.at"@en ;
2791
+ core:definition "The time of the admin change."@en ;
2792
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0017-prompt-admin.md#Decision" ;
2793
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2794
+ core:owner core:kai-agent .
2795
+
2796
+ ai:column-access-audit-action a owl:NamedIndividual , core:column ;
2797
+ core:of-table ai:table-access-audit ;
2798
+ core:has-name "action" ;
2799
+ core:not-modelled-reason "The model keeps the effect of an admin change in `identity:has-difference`. The name of the action has no property."@en ;
2800
+ core:label "access.audit.action"@en ;
2801
+ core:definition "The name of the action of the admin change."@en ;
2802
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0017-prompt-admin.md#Decision" ;
2803
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2804
+ core:owner core:kai-agent .
2805
+
2806
+ ai:column-access-audit-actor a owl:NamedIndividual , core:column ;
2807
+ core:of-table ai:table-access-audit ;
2808
+ core:has-name "actor" ;
2809
+ core:not-modelled-reason "The model states the actor of an activity with `core:qualified-association`, which links an agent, a role and a plan. The column keeps the actor as text."@en ;
2810
+ core:label "access.audit.actor"@en ;
2811
+ core:definition "The actor of the admin change."@en ;
2812
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0017-prompt-admin.md#Decision" ;
2813
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2814
+ core:owner core:kai-agent .
2815
+
2816
+ ai:column-access-audit-workspace a owl:NamedIndividual , core:column ;
2817
+ core:of-table ai:table-access-audit ;
2818
+ core:has-name "workspace" ;
2819
+ core:not-modelled-reason "The shape of `ai:admin-change` has no workspace."@en ;
2820
+ core:label "access.audit.workspace"@en ;
2821
+ core:definition "The id of the workspace that the admin change is about. It is empty for a change with no workspace."@en ;
2822
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0017-prompt-admin.md#Decision" ;
2823
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2824
+ core:owner core:kai-agent .
2825
+
2826
+ ai:column-access-audit-user-id a owl:NamedIndividual , core:column ;
2827
+ core:of-table ai:table-access-audit ;
2828
+ core:has-name "user_id" ;
2829
+ core:not-modelled-reason "The shape of `ai:admin-change` has no user."@en ;
2830
+ core:label "access.audit.user_id"@en ;
2831
+ core:definition "The id of the user that the admin change is about. It is empty for a change with no user."@en ;
2832
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0017-prompt-admin.md#Decision" ;
2833
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2834
+ core:owner core:kai-agent .
2835
+
2836
+ ai:column-access-audit-diff a owl:NamedIndividual , core:column ;
2837
+ core:of-table ai:table-access-audit ;
2838
+ core:has-name "diff" ;
2839
+ core:stores-property identity:has-difference ;
2840
+ core:label "access.audit.diff"@en ;
2841
+ core:definition "The difference that the admin change makes, as JSON."@en ;
2842
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0017-prompt-admin.md#Decision" ;
2843
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2844
+ core:owner core:kai-agent .
2845
+
2846
+ ai:table-access-clients a owl:NamedIndividual , core:table ;
2847
+ core:in-database-schema ai:schema-access ;
2848
+ core:has-name "clients" ;
2849
+ core:has-row-class core:key ;
2850
+ core:label "access.clients"@en ;
2851
+ core:definition "The table of the backend clients of `kai-agent`: one row for each client with its allowed tasks, its webhook URL and its API version."@en ;
2852
+ core:source "docs/decisions/0010-sign-in-and-machine-tokens.md#Decision" ;
2853
+ core:decided-in "docs/decisions/0010-sign-in-and-machine-tokens.md" ;
2854
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2855
+ core:owner core:kai-agent .
2856
+
2857
+ ai:column-access-clients-client a owl:NamedIndividual , core:column ;
2858
+ core:of-table ai:table-access-clients ;
2859
+ core:has-name "client" ;
2860
+ core:not-modelled-reason "The client is the key of the backend caller. `core:id` is not a property of the shape of `core:key` in the module of `kai-agent`."@en ;
2861
+ core:in-primary-key true ;
2862
+ core:label "access.clients.client"@en ;
2863
+ core:definition "The name of the backend client."@en ;
2864
+ core:source "docs/decisions/0010-sign-in-and-machine-tokens.md#Decision" ;
2865
+ core:decided-in "docs/decisions/0010-sign-in-and-machine-tokens.md" ;
2866
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2867
+ core:owner core:kai-agent .
2868
+
2869
+ ai:column-access-clients-tasks a owl:NamedIndividual , core:column ;
2870
+ core:of-table ai:table-access-clients ;
2871
+ core:has-name "tasks" ;
2872
+ core:stores-property ai:allows-task ;
2873
+ core:label "access.clients.tasks"@en ;
2874
+ core:definition "The names of the tasks that the backend client may call."@en ;
2875
+ core:source "docs/decisions/0010-sign-in-and-machine-tokens.md#Decision" ;
2876
+ core:decided-in "docs/decisions/0010-sign-in-and-machine-tokens.md" ;
2877
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2878
+ core:owner core:kai-agent .
2879
+
2880
+ ai:column-access-clients-webhook-url a owl:NamedIndividual , core:column ;
2881
+ core:of-table ai:table-access-clients ;
2882
+ core:has-name "webhook_url" ;
2883
+ core:stores-property ai:has-webhook-url ;
2884
+ core:label "access.clients.webhook_url"@en ;
2885
+ core:definition "The URL for the webhooks of the backend client. It is empty when the client has none."@en ;
2886
+ core:source "docs/decisions/0010-sign-in-and-machine-tokens.md#Decision" ;
2887
+ core:decided-in "docs/decisions/0010-sign-in-and-machine-tokens.md" ;
2888
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2889
+ core:owner core:kai-agent .
2890
+
2891
+ ai:column-access-clients-version a owl:NamedIndividual , core:column ;
2892
+ core:of-table ai:table-access-clients ;
2893
+ core:has-name "version" ;
2894
+ core:stores-property ai:has-api-version ;
2895
+ core:label "access.clients.version"@en ;
2896
+ core:definition "The dated API version of the backend client."@en ;
2897
+ core:source "docs/decisions/0010-sign-in-and-machine-tokens.md#Decision" ;
2898
+ core:decided-in "docs/decisions/0010-sign-in-and-machine-tokens.md" ;
2899
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2900
+ core:owner core:kai-agent .
2901
+
2902
+ ai:column-access-clients-created-at a owl:NamedIndividual , core:column ;
2903
+ core:of-table ai:table-access-clients ;
2904
+ core:has-name "created_at" ;
2905
+ core:not-modelled-reason "A technical timestamp of the row. The model keeps no such time for this class."@en ;
2906
+ core:label "access.clients.created_at"@en ;
2907
+ core:definition "The time when the service wrote the backend client row."@en ;
2908
+ core:source "docs/decisions/0010-sign-in-and-machine-tokens.md#Decision" ;
2909
+ core:decided-in "docs/decisions/0010-sign-in-and-machine-tokens.md" ;
2910
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2911
+ core:owner core:kai-agent .
2912
+
2913
+ ai:column-access-clients-updated-at a owl:NamedIndividual , core:column ;
2914
+ core:of-table ai:table-access-clients ;
2915
+ core:has-name "updated_at" ;
2916
+ core:not-modelled-reason "A technical timestamp of the row. The model keeps no such time for this class."@en ;
2917
+ core:label "access.clients.updated_at"@en ;
2918
+ core:definition "The time of the last change of the backend client row."@en ;
2919
+ core:source "docs/decisions/0010-sign-in-and-machine-tokens.md#Decision" ;
2920
+ core:decided-in "docs/decisions/0010-sign-in-and-machine-tokens.md" ;
2921
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2922
+ core:owner core:kai-agent .
2923
+
2924
+ ai:column-execution-runs-id a owl:NamedIndividual , core:column ;
2925
+ core:of-table ai:table-execution-runs ;
2926
+ core:has-name "id" ;
2927
+ core:stores-property core:id ;
2928
+ core:in-primary-key true ;
2929
+ core:label "execution.runs.id"@en ;
2930
+ core:definition "The id of the run of `kai-agent`."@en ;
2931
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2932
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2933
+ core:owner core:kai-agent .
2934
+
2935
+ ai:column-execution-runs-workspace a owl:NamedIndividual , core:column ;
2936
+ core:of-table ai:table-execution-runs ;
2937
+ core:has-name "workspace" ;
2938
+ core:stores-property core:in-workspace ;
2939
+ core:label "execution.runs.workspace"@en ;
2940
+ core:definition "The id of the workspace that owns the run."@en ;
2941
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2942
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2943
+ core:owner core:kai-agent .
2944
+
2945
+ ai:column-execution-runs-task a owl:NamedIndividual , core:column ;
2946
+ core:of-table ai:table-execution-runs ;
2947
+ core:has-name "task" ;
2948
+ core:stores-property ai:of-task ;
2949
+ core:label "execution.runs.task"@en ;
2950
+ core:definition "The name of the task of the run."@en ;
2951
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2952
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2953
+ core:owner core:kai-agent .
2954
+
2955
+ ai:column-execution-runs-prompt-version a owl:NamedIndividual , core:column ;
2956
+ core:of-table ai:table-execution-runs ;
2957
+ core:has-name "prompt_version" ;
2958
+ core:stores-property ai:with-prompt-version ;
2959
+ core:label "execution.runs.prompt_version"@en ;
2960
+ core:definition "The number of the prompt version of the run."@en ;
2961
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2962
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2963
+ core:owner core:kai-agent .
2964
+
2965
+ ai:column-execution-runs-runner a owl:NamedIndividual , core:column ;
2966
+ core:of-table ai:table-execution-runs ;
2967
+ core:has-name "runner" ;
2968
+ core:not-modelled-reason "The runner is `ai:has-runner` of the task of the run."@en ;
2969
+ core:label "execution.runs.runner"@en ;
2970
+ core:definition "The runner of the run: `completion`, `agent` or `workflow`."@en ;
2971
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2972
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2973
+ core:owner core:kai-agent .
2974
+
2975
+ ai:column-execution-runs-caller a owl:NamedIndividual , core:column ;
2976
+ core:of-table ai:table-execution-runs ;
2977
+ core:has-name "caller" ;
2978
+ core:stores-property ai:by-caller ;
2979
+ core:label "execution.runs.caller"@en ;
2980
+ core:definition "The caller of the run: the name of a backend client or an internal caller."@en ;
2981
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2982
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2983
+ core:owner core:kai-agent .
2984
+
2985
+ ai:column-execution-runs-user-id a owl:NamedIndividual , core:column ;
2986
+ core:of-table ai:table-execution-runs ;
2987
+ core:has-name "user_id" ;
2988
+ core:stores-property core:for-user ;
2989
+ core:label "execution.runs.user_id"@en ;
2990
+ core:definition "The id of the user for whom the run works. It is empty for a run with no user."@en ;
2991
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2992
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
2993
+ core:owner core:kai-agent .
2994
+
2995
+ ai:column-execution-runs-thread a owl:NamedIndividual , core:column ;
2996
+ core:of-table ai:table-execution-runs ;
2997
+ core:has-name "thread" ;
2998
+ core:stores-property ai:in-thread ;
2999
+ core:label "execution.runs.thread"@en ;
3000
+ core:definition "The id of the thread of the run. It is empty for a run with no thread."@en ;
3001
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3002
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3003
+ core:owner core:kai-agent .
3004
+
3005
+ ai:column-execution-runs-correlation a owl:NamedIndividual , core:column ;
3006
+ core:of-table ai:table-execution-runs ;
3007
+ core:has-name "correlation" ;
3008
+ core:stores-property ai:has-correlation-id ;
3009
+ core:label "execution.runs.correlation"@en ;
3010
+ core:definition "The trace id of the request that started the run."@en ;
3011
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3012
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3013
+ core:owner core:kai-agent .
3014
+
3015
+ ai:column-execution-runs-flow a owl:NamedIndividual , core:column ;
3016
+ core:of-table ai:table-execution-runs ;
3017
+ core:has-name "flow" ;
3018
+ core:not-modelled-reason "The id of the flow that the run serves. The model has no class for a flow. The flow keeps the id of its run in `desk:records.flow_actions`."@en ;
3019
+ core:label "execution.runs.flow"@en ;
3020
+ core:definition "The id of the flow of `kai-agent` that asked for the run. A run outside a flow has none."@en ;
3021
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3022
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3023
+ core:owner core:kai-agent .
3024
+
3025
+ ai:column-execution-runs-api-version a owl:NamedIndividual , core:column ;
3026
+ core:of-table ai:table-execution-runs ;
3027
+ core:has-name "api_version" ;
3028
+ core:not-modelled-reason "The pinned version is `ai:has-api-version` of `core:key`. The shape of `ai:run` does not list it."@en ;
3029
+ core:label "execution.runs.api_version"@en ;
3030
+ core:definition "The dated API version that the run uses."@en ;
3031
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3032
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3033
+ core:owner core:kai-agent .
3034
+
3035
+ ai:column-execution-runs-status a owl:NamedIndividual , core:column ;
3036
+ core:of-table ai:table-execution-runs ;
3037
+ core:has-name "status" ;
3038
+ core:not-modelled-reason "`ai:run-status-period` states each status of a run, with `ai:has-status-value`."@en ;
3039
+ core:label "execution.runs.status"@en ;
3040
+ core:definition "The current status of the run."@en ;
3041
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3042
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3043
+ core:owner core:kai-agent .
3044
+
3045
+ ai:column-execution-runs-failure a owl:NamedIndividual , core:column ;
3046
+ core:of-table ai:table-execution-runs ;
3047
+ core:has-name "failure" ;
3048
+ core:not-modelled-reason "`ai:has-failure-reason` of `ai:run-status-period` states it."@en ;
3049
+ core:label "execution.runs.failure"@en ;
3050
+ core:definition "The failure reason of a failed run. It is empty for a run that did not fail."@en ;
3051
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3052
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3053
+ core:owner core:kai-agent .
3054
+
3055
+ ai:column-execution-runs-created-at a owl:NamedIndividual , core:column ;
3056
+ core:of-table ai:table-execution-runs ;
3057
+ core:has-name "created_at" ;
3058
+ core:stores-property core:started-at ;
3059
+ core:label "execution.runs.created_at"@en ;
3060
+ core:definition "The time when the run started."@en ;
3061
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3062
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3063
+ core:owner core:kai-agent .
3064
+
3065
+ ai:column-execution-runs-updated-at a owl:NamedIndividual , core:column ;
3066
+ core:of-table ai:table-execution-runs ;
3067
+ core:has-name "updated_at" ;
3068
+ core:not-modelled-reason "A technical timestamp of the row. The model keeps no such time for this class."@en ;
3069
+ core:label "execution.runs.updated_at"@en ;
3070
+ core:definition "The time of the last change of the run row."@en ;
3071
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3072
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3073
+ core:owner core:kai-agent .
3074
+
3075
+ ai:column-execution-runs-ended-at a owl:NamedIndividual , core:column ;
3076
+ core:of-table ai:table-execution-runs ;
3077
+ core:has-name "ended_at" ;
3078
+ core:stores-property core:ended-at ;
3079
+ core:label "execution.runs.ended_at"@en ;
3080
+ core:definition "The time when the run ended. It is empty while the run lives."@en ;
3081
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3082
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3083
+ core:owner core:kai-agent .
3084
+
3085
+ ai:column-execution-runs-servers a owl:NamedIndividual , core:column ;
3086
+ core:of-table ai:table-execution-runs ;
3087
+ core:has-name "servers" ;
3088
+ core:not-modelled-reason "`ai:mcp-server` states each server. The shape of `ai:run` has no server."@en ;
3089
+ core:label "execution.runs.servers"@en ;
3090
+ core:definition "The MCP servers of the run, as JSON."@en ;
3091
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3092
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3093
+ core:owner core:kai-agent .
3094
+
3095
+ ai:column-execution-runs-suspend-reason a owl:NamedIndividual , core:column ;
3096
+ core:of-table ai:table-execution-runs ;
3097
+ core:has-name "suspend_reason" ;
3098
+ core:not-modelled-reason "`ai:has-suspend-reason` of `ai:run-status-period` states it."@en ;
3099
+ core:label "execution.runs.suspend_reason"@en ;
3100
+ core:definition "The suspend reason of a suspended run. It is empty for a run that is not suspended."@en ;
3101
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3102
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3103
+ core:owner core:kai-agent .
3104
+
3105
+ ai:column-execution-runs-tools a owl:NamedIndividual , core:column ;
3106
+ core:of-table ai:table-execution-runs ;
3107
+ core:has-name "tools" ;
3108
+ core:not-modelled-reason "`ai:client-tool` states each tool. The shape of `ai:run` has no tool."@en ;
3109
+ core:label "execution.runs.tools"@en ;
3110
+ core:definition "The client tools of the run, as JSON."@en ;
3111
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3112
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3113
+ core:owner core:kai-agent .
3114
+
3115
+ # Flows (kai-agent 0056).
3116
+
3117
+ ai:flow-event a owl:Class ;
3118
+ rdfs:subClassOf core:entity ;
3119
+ core:label "flow event"@en ;
3120
+ core:definition "One event of the stream of a flow. It has a number, the run of the flow, a step, a kind and the card of the step. A client with the last number gets the missed events."@en ;
3121
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3122
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3123
+ core:owner core:kai-agent ;
3124
+ core:has-contract true ;
3125
+ core:retention "none" ;
3126
+ core:retention-clock core-vocab:retention-clock-since-created ;
3127
+ core:controller-role core-vocab:controller-role-processor .
3128
+
3129
+ ai:flow-option a owl:Class ;
3130
+ rdfs:subClassOf core:entity ;
3131
+ core:label "flow option"@en ;
3132
+ core:definition "One choice that a card of a flow shows. It has an id, a label and a hint. On an ask card, it is an answer that the user sends with one click."@en ;
3133
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3134
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3135
+ core:owner core:kai-agent ;
3136
+ core:has-contract true ;
3137
+ core:retention "none" ;
3138
+ core:retention-clock core-vocab:retention-clock-since-created ;
3139
+ core:controller-role core-vocab:controller-role-processor .
3140
+
3141
+ ai:flow-message a owl:Class ;
3142
+ rdfs:subClassOf core:entity ;
3143
+ core:label "flow message"@en ;
3144
+ core:definition "One message of a user to a flow: a text, a choice, a return to the previous step, a new try or a question."@en ;
3145
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3146
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3147
+ core:owner core:kai-agent ;
3148
+ core:has-contract true ;
3149
+ core:retention "none" ;
3150
+ core:retention-clock core-vocab:retention-clock-since-created ;
3151
+ core:controller-role core-vocab:controller-role-processor .
3152
+
3153
+ ai:has-event-number a owl:DatatypeProperty , owl:FunctionalProperty ;
3154
+ rdfs:domain ai:flow-event ;
3155
+ rdfs:range xsd:positiveInteger ;
3156
+ core:label "has event number"@en ;
3157
+ core:definition "The place of a flow event in the stream of its flow. It starts at 1 and the client uses it as the cursor to replay."@en ;
3158
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3159
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3160
+ core:owner core:kai-agent ;
3161
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3162
+
3163
+ ai:mode-of-flow a owl:ObjectProperty , owl:FunctionalProperty ;
3164
+ rdfs:domain ai:flow-event ;
3165
+ rdfs:range core:concept ;
3166
+ core:label "mode of flow"@en ;
3167
+ core:definition "The plan that a flow runs. The value is a concept of the scheme `flow mode`."@en ;
3168
+ core:hint "The job that Koa does in this flow."@en ;
3169
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0072-campaign-flow.md#Decision" ;
3170
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3171
+ core:owner core:kai-agent ;
3172
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3173
+
3174
+ ai:at-flow-step a owl:ObjectProperty , owl:FunctionalProperty ;
3175
+ rdfs:domain ai:flow-event ;
3176
+ rdfs:range core:concept ;
3177
+ core:label "at flow step"@en ;
3178
+ core:definition "The step of the flow that a flow event belongs to. The value is a concept of the scheme `flow step`."@en ;
3179
+ core:hint "The part of the work that this event belongs to."@en ;
3180
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3181
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3182
+ core:owner core:kai-agent ;
3183
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3184
+
3185
+ ai:has-event-kind a owl:ObjectProperty , owl:FunctionalProperty ;
3186
+ rdfs:domain ai:flow-event ;
3187
+ rdfs:range core:concept ;
3188
+ core:label "has event kind"@en ;
3189
+ core:definition "The kind of a flow event. The value is a concept of the scheme `flow event kind`."@en ;
3190
+ core:hint "What this event shows."@en ;
3191
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3192
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3193
+ core:owner core:kai-agent ;
3194
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3195
+
3196
+ ai:has-answer-kind a owl:ObjectProperty , owl:FunctionalProperty ;
3197
+ rdfs:domain ai:flow-event ;
3198
+ rdfs:range core:concept ;
3199
+ core:label "has answer kind"@en ;
3200
+ core:definition "How the user answers an ask card: single, multiple or text. The value is a concept of the scheme `flow answer kind`."@en ;
3201
+ core:hint "How you answer this question."@en ;
3202
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3203
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3204
+ core:owner core:kai-agent ;
3205
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3206
+
3207
+ ai:has-event-text a owl:DatatypeProperty , owl:FunctionalProperty ;
3208
+ rdfs:domain ai:flow-event ;
3209
+ rdfs:range xsd:string ;
3210
+ core:label "has event text"@en ;
3211
+ core:definition "The text that a flow event shows to the user."@en ;
3212
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3213
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3214
+ core:owner core:kai-agent ;
3215
+ core:gdpr-category core-vocab:gdpr-category-personal ;
3216
+ core:lawful-basis core-vocab:lawful-basis-legitimate-interests ;
3217
+ core:review-status core-vocab:review-status-draft ;
3218
+ core:may-contain-free-text true .
3219
+
3220
+ ai:has-option a owl:ObjectProperty ;
3221
+ rdfs:domain ai:flow-event ;
3222
+ rdfs:range ai:flow-option ;
3223
+ core:label "has option"@en ;
3224
+ core:definition "A choice that the card of a flow event shows."@en ;
3225
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3226
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3227
+ core:owner core:kai-agent ;
3228
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3229
+
3230
+ ai:allows-retry a owl:DatatypeProperty , owl:FunctionalProperty ;
3231
+ rdfs:domain ai:flow-event ;
3232
+ rdfs:range xsd:boolean ;
3233
+ core:label "allows retry"@en ;
3234
+ core:definition "True when the card of a failure shows the action to try again."@en ;
3235
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3236
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3237
+ core:owner core:kai-agent ;
3238
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3239
+
3240
+ ai:lists-leads-run a owl:DatatypeProperty , owl:FunctionalProperty ;
3241
+ rdfs:domain ai:flow-event ;
3242
+ rdfs:range xsd:string ;
3243
+ core:label "lists leads run"@en ;
3244
+ core:definition "The id of the run of `leads` whose companies or people the card lists. The app reads the list from `desk`. A progress event gives the run that Koa waits for."@en ;
3245
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3246
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3247
+ core:owner core:kai-agent ;
3248
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3249
+
3250
+ ai:shows-campaign a owl:DatatypeProperty , owl:FunctionalProperty ;
3251
+ rdfs:domain ai:flow-event ;
3252
+ rdfs:range xsd:string ;
3253
+ core:label "shows campaign"@en ;
3254
+ core:definition "The id of the campaign that the campaign flow saved or filled, on its done event. The app opens the campaign from the card."@en ;
3255
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0105-campaign-flow-ends-on-the-campaign.md#Decision" ;
3256
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3257
+ core:owner core:kai-agent ;
3258
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3259
+
3260
+ ai:has-approved-charge a owl:DatatypeProperty , owl:FunctionalProperty ;
3261
+ rdfs:domain ai:flow-event ;
3262
+ rdfs:range xsd:long ;
3263
+ core:label "has approved charge"@en ;
3264
+ core:definition "The charge in micro-USD that the user approved on the card of a flow event. The paid action that follows it may not charge more than this value."@en ;
3265
+ core:hint "The cost that you approved."@en ;
3266
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3267
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3268
+ core:owner core:kai-agent ;
3269
+ core:gdpr-category core-vocab:gdpr-category-non-personal ;
3270
+ core:unit core-vocab:unit-micro-usd .
3271
+
3272
+ ai:flow-activity a owl:Class ;
3273
+ rdfs:subClassOf core:entity ;
3274
+ core:label "flow activity"@en ;
3275
+ core:definition "One item of the timeline of a flow: a part of the work of Koa that started, ended or failed. A started item and its end item have the same id."@en ;
3276
+ core:hint "A thing that Koa does or did in this chat."@en ;
3277
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0059-flow-activity.md#Decision" ;
3278
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3279
+ core:owner core:kai-agent ;
3280
+ core:has-contract true ;
3281
+ core:retention "none" ;
3282
+ core:retention-clock core-vocab:retention-clock-since-created ;
3283
+ core:controller-role core-vocab:controller-role-processor .
3284
+
3285
+ ai:flow-block a owl:Class ;
3286
+ rdfs:subClassOf core:entity ;
3287
+ core:label "flow block"@en ;
3288
+ core:definition "One part of a card of Koa in a flow: a title, a text with highlights, stats, facts, a table or a quote. The app shows each part with its own control."@en ;
3289
+ core:hint "A part of an answer of Koa."@en ;
3290
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0060-answer-blocks.md#Decision" ;
3291
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3292
+ core:owner core:kai-agent ;
3293
+ core:has-contract false ;
3294
+ core:retention "none" ;
3295
+ core:retention-clock core-vocab:retention-clock-since-created ;
3296
+ core:controller-role core-vocab:controller-role-processor .
3297
+
3298
+ ai:has-block a owl:ObjectProperty ;
3299
+ rdfs:domain ai:flow-event ;
3300
+ rdfs:range ai:flow-block ;
3301
+ core:label "has block"@en ;
3302
+ core:definition "A part of the card that a flow event shows, in order."@en ;
3303
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0060-answer-blocks.md#Decision" ;
3304
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3305
+ core:owner core:kai-agent ;
3306
+ core:gdpr-category core-vocab:gdpr-category-personal ;
3307
+ core:lawful-basis core-vocab:lawful-basis-legitimate-interests ;
3308
+ core:review-status core-vocab:review-status-draft ;
3309
+ core:may-contain-free-text true .
3310
+
3311
+ ai:has-activity a owl:ObjectProperty , owl:FunctionalProperty ;
3312
+ rdfs:domain ai:flow-event ;
3313
+ rdfs:range ai:flow-activity ;
3314
+ core:label "has activity"@en ;
3315
+ core:definition "The item of the timeline that a flow event of the kind activity carries."@en ;
3316
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0059-flow-activity.md#Decision" ;
3317
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3318
+ core:owner core:kai-agent ;
3319
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3320
+
3321
+ ai:has-activity-id a owl:DatatypeProperty , owl:FunctionalProperty ;
3322
+ rdfs:domain ai:flow-activity ;
3323
+ rdfs:range xsd:string ;
3324
+ core:label "has activity id"@en ;
3325
+ core:definition "The id of a flow activity. The started item and the end item of the same work have the same id."@en ;
3326
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0059-flow-activity.md#Decision" ;
3327
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3328
+ core:owner core:kai-agent ;
3329
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3330
+
3331
+ ai:under-activity a owl:DatatypeProperty , owl:FunctionalProperty ;
3332
+ rdfs:domain ai:flow-activity ;
3333
+ rdfs:range xsd:string ;
3334
+ core:label "under activity"@en ;
3335
+ core:definition "The id of the flow activity that holds a flow activity. A top item has no value."@en ;
3336
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0059-flow-activity.md#Decision" ;
3337
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3338
+ core:owner core:kai-agent ;
3339
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3340
+
3341
+ ai:has-activity-kind a owl:ObjectProperty , owl:FunctionalProperty ;
3342
+ rdfs:domain ai:flow-activity ;
3343
+ rdfs:range core:concept ;
3344
+ core:label "has activity kind"@en ;
3345
+ core:definition "The kind of a flow activity. The value is a concept of the scheme `flow activity kind`."@en ;
3346
+ core:hint "What Koa does in this item."@en ;
3347
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0059-flow-activity.md#Decision" ;
3348
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3349
+ core:owner core:kai-agent ;
3350
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3351
+
3352
+ ai:has-activity-state a owl:ObjectProperty , owl:FunctionalProperty ;
3353
+ rdfs:domain ai:flow-activity ;
3354
+ rdfs:range core:concept ;
3355
+ core:label "has activity state"@en ;
3356
+ core:definition "The state of a flow activity. The value is a concept of the scheme `flow activity state`."@en ;
3357
+ core:hint "If the item works, ended or failed."@en ;
3358
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0059-flow-activity.md#Decision" ;
3359
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3360
+ core:owner core:kai-agent ;
3361
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3362
+
3363
+ ai:calls-tool a owl:DatatypeProperty , owl:FunctionalProperty ;
3364
+ rdfs:domain ai:flow-activity ;
3365
+ rdfs:range xsd:string ;
3366
+ core:label "calls tool"@en ;
3367
+ core:definition "The name of the tool that a flow activity of the kind tool calls."@en ;
3368
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0059-flow-activity.md#Decision" ;
3369
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3370
+ core:owner core:kai-agent ;
3371
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3372
+
3373
+ ai:requests-reasoning a owl:DatatypeProperty , owl:FunctionalProperty ;
3374
+ rdfs:domain ai:fallback-entry ;
3375
+ rdfs:range xsd:boolean ;
3376
+ core:label "requests reasoning"@en ;
3377
+ core:definition "True when the model settings ask the model for a short summary of its reasoning. Only a model that can reason gets it."@en ;
3378
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0059-flow-activity.md#Decision" ;
3379
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3380
+ core:owner core:kai-agent ;
3381
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3382
+
3383
+ ai:has-option-id a owl:DatatypeProperty , owl:FunctionalProperty ;
3384
+ rdfs:domain ai:flow-option ;
3385
+ rdfs:range xsd:string ;
3386
+ core:label "has option id"@en ;
3387
+ core:definition "The id of a choice of a card. A message of the user returns it."@en ;
3388
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3389
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3390
+ core:owner core:kai-agent ;
3391
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3392
+
3393
+ ai:has-option-label a owl:DatatypeProperty , owl:FunctionalProperty ;
3394
+ rdfs:domain ai:flow-option ;
3395
+ rdfs:range xsd:string ;
3396
+ core:label "has option label"@en ;
3397
+ core:definition "The text that names a choice of a card."@en ;
3398
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3399
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3400
+ core:owner core:kai-agent ;
3401
+ core:gdpr-category core-vocab:gdpr-category-personal ;
3402
+ core:lawful-basis core-vocab:lawful-basis-legitimate-interests ;
3403
+ core:review-status core-vocab:review-status-draft ;
3404
+ core:may-contain-free-text true .
3405
+
3406
+ ai:has-option-hint a owl:DatatypeProperty , owl:FunctionalProperty ;
3407
+ rdfs:domain ai:flow-option ;
3408
+ rdfs:range xsd:string ;
3409
+ core:label "has option hint"@en ;
3410
+ core:definition "The short help that tells what a choice of a card does."@en ;
3411
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3412
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3413
+ core:owner core:kai-agent ;
3414
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3415
+
3416
+ ai:has-message-kind a owl:ObjectProperty , owl:FunctionalProperty ;
3417
+ rdfs:domain ai:flow-message ;
3418
+ rdfs:range core:concept ;
3419
+ core:label "has message kind"@en ;
3420
+ core:definition "The kind of a message of the user to a flow. The value is a concept of the scheme `flow message kind`."@en ;
3421
+ core:hint "What your message does."@en ;
3422
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3423
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3424
+ core:owner core:kai-agent ;
3425
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3426
+
3427
+ ai:has-message-text a owl:DatatypeProperty , owl:FunctionalProperty ;
3428
+ rdfs:domain ai:flow-message ;
3429
+ rdfs:range xsd:string ;
3430
+ core:label "has message text"@en ;
3431
+ core:definition "The text of a message of the user to a flow."@en ;
3432
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3433
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3434
+ core:owner core:kai-agent ;
3435
+ core:gdpr-category core-vocab:gdpr-category-personal ;
3436
+ core:lawful-basis core-vocab:lawful-basis-legitimate-interests ;
3437
+ core:review-status core-vocab:review-status-draft ;
3438
+ core:may-contain-free-text true .
3439
+
3440
+ ai:chooses-option a owl:DatatypeProperty ;
3441
+ rdfs:domain ai:flow-message ;
3442
+ rdfs:range xsd:string ;
3443
+ core:label "chooses option"@en ;
3444
+ core:definition "The id of a choice that a message of the user picks. A message can pick many."@en ;
3445
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3446
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3447
+ core:owner core:kai-agent ;
3448
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3449
+
3450
+ ai:has-flow-status a owl:ObjectProperty , owl:FunctionalProperty ;
3451
+ rdfs:domain ai:run ;
3452
+ rdfs:range core:concept ;
3453
+ core:label "has flow status"@en ;
3454
+ core:definition "The state of a run that drives a flow, as the user sees it. The value is a concept of the scheme `flow status`."@en ;
3455
+ core:hint "What the flow does now."@en ;
3456
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3457
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3458
+ core:owner core:kai-agent ;
3459
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3460
+
3461
+ ai:table-execution-contents a owl:NamedIndividual , core:table ;
3462
+ core:in-database-schema ai:schema-execution ;
3463
+ core:has-name "contents" ;
3464
+ core:not-modelled-reason "The input, the rendered prompt, the output and the tool calls of one run, kept for the replay of the run. The model keeps the run as `ai:run` and no class for its content, which holds prompts and inputs that must not enter a span."@en ;
3465
+ core:label "execution.contents"@en ;
3466
+ core:definition "The table of the contents of `kai-agent`: one row for each run, with the input, the prompt, the output and the tool calls of the run."@en ;
3467
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0023-content-retention.md#Decision" ;
3468
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3469
+ core:owner core:kai-agent .
3470
+
3471
+ ai:column-execution-contents-run a owl:NamedIndividual , core:column ;
3472
+ core:of-table ai:table-execution-contents ;
3473
+ core:has-name "run" ;
3474
+ core:in-primary-key true ;
3475
+ core:not-modelled-reason "The id of the run. The model keeps the run as a class and not its id."@en ;
3476
+ core:label "execution.contents.run"@en ;
3477
+ core:definition "The id of the run of the row. It is the primary key, and the row ends with its run."@en ;
3478
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0023-content-retention.md#Decision" ;
3479
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3480
+ core:owner core:kai-agent .
3481
+
3482
+ ai:column-execution-contents-input a owl:NamedIndividual , core:column ;
3483
+ core:of-table ai:table-execution-contents ;
3484
+ core:has-name "input" ;
3485
+ core:not-modelled-reason "The input of the run as JSON. The model keeps no property for it, because a span must not contain the input."@en ;
3486
+ core:label "execution.contents.input"@en ;
3487
+ core:definition "The input of the run, as the task received it."@en ;
3488
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0023-content-retention.md#Decision" ;
3489
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3490
+ core:owner core:kai-agent .
3491
+
3492
+ ai:column-execution-contents-prompt a owl:NamedIndividual , core:column ;
3493
+ core:of-table ai:table-execution-contents ;
3494
+ core:has-name "prompt" ;
3495
+ core:not-modelled-reason "The rendered prompt of the run. The model keeps the prompt version as a class and not the text that the run sent."@en ;
3496
+ core:label "execution.contents.prompt"@en ;
3497
+ core:definition "The prompt of the run after the partials and the variables were filled in."@en ;
3498
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0023-content-retention.md#Decision" ;
3499
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3500
+ core:owner core:kai-agent .
3501
+
3502
+ ai:column-execution-contents-output a owl:NamedIndividual , core:column ;
3503
+ core:of-table ai:table-execution-contents ;
3504
+ core:has-name "output" ;
3505
+ core:not-modelled-reason "The output of the run as JSON. The model keeps no property for it, because a span must not contain the output."@en ;
3506
+ core:label "execution.contents.output"@en ;
3507
+ core:definition "The output of the run, as the task returned it."@en ;
3508
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0023-content-retention.md#Decision" ;
3509
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3510
+ core:owner core:kai-agent .
3511
+
3512
+ ai:column-execution-contents-tool-calls a owl:NamedIndividual , core:column ;
3513
+ core:of-table ai:table-execution-contents ;
3514
+ core:has-name "tool_calls" ;
3515
+ core:not-modelled-reason "The tool calls of the run as one JSON array. The model keeps the tool call as a class and not the list of the calls of one run."@en ;
3516
+ core:label "execution.contents.tool_calls"@en ;
3517
+ core:definition "The tool calls that the run made, in order."@en ;
3518
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0023-content-retention.md#Decision" ;
3519
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3520
+ core:owner core:kai-agent .
3521
+
3522
+ ai:column-execution-contents-created-at a owl:NamedIndividual , core:column ;
3523
+ core:of-table ai:table-execution-contents ;
3524
+ core:has-name "created_at" ;
3525
+ core:not-modelled-reason "The time that `kai-agent` wrote the row. The table has no class of rows in the model."@en ;
3526
+ core:label "execution.contents.created_at"@en ;
3527
+ core:definition "The time when `kai-agent` wrote the content of the run."@en ;
3528
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0023-content-retention.md#Decision" ;
3529
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3530
+ core:owner core:kai-agent .
3531
+
3532
+ ai:column-prompts-eval-results-latency-p50 a owl:NamedIndividual , core:column ;
3533
+ core:of-table ai:table-prompts-eval-results ;
3534
+ core:has-name "latency_p50" ;
3535
+ core:not-modelled-reason "The median time of a completed run of the eval, in milliseconds. The model keeps the instrument `run.duration` for the time of a run and no property for the percentiles of an eval result."@en ;
3536
+ core:label "prompts.eval_results.latency_p50"@en ;
3537
+ core:definition "The median time of a completed run of the eval, in milliseconds. A result of before the column is 0 and gives no time limit."@en ;
3538
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0082-light-tasks-and-the-gate.md#Decision" ;
3539
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3540
+ core:owner core:kai-agent .
3541
+
3542
+ ai:column-prompts-eval-results-latency-p95 a owl:NamedIndividual , core:column ;
3543
+ core:of-table ai:table-prompts-eval-results ;
3544
+ core:has-name "latency_p95" ;
3545
+ core:not-modelled-reason "The 95th percentile of the time of a completed run of the eval, in milliseconds. The model keeps the instrument `run.duration` for the time of a run and no property for the percentiles of an eval result."@en ;
3546
+ core:label "prompts.eval_results.latency_p95"@en ;
3547
+ core:definition "The 95th percentile of the time of a completed run of the eval, in milliseconds. A result of before the column is 0 and gives no time limit."@en ;
3548
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0082-light-tasks-and-the-gate.md#Decision" ;
3549
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3550
+ core:owner core:kai-agent .
3551
+
3552
+ ai:table-spend-fallbacks a owl:NamedIndividual , core:table ;
3553
+ core:in-database-schema ai:schema-spend ;
3554
+ core:has-name "fallbacks" ;
3555
+ core:not-modelled-reason "One fallback of one segment of a run: the model that answered, the model that failed and the reason. The model keeps the fallback list of a prompt version and no class for an attempt of it."@en ;
3556
+ core:label "spend.fallbacks"@en ;
3557
+ core:definition "The table of the fallbacks of `kai-agent`: one row for each attempt of a segment after the first model failed."@en ;
3558
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0018-provider-registry.md#Decision" ;
3559
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3560
+ core:owner core:kai-agent .
3561
+
3562
+ ai:column-spend-fallbacks-run a owl:NamedIndividual , core:column ;
3563
+ core:of-table ai:table-spend-fallbacks ;
3564
+ core:has-name "run" ;
3565
+ core:in-primary-key true ;
3566
+ core:not-modelled-reason "The id of the run. The model keeps the run as a class and not its id."@en ;
3567
+ core:label "spend.fallbacks.run"@en ;
3568
+ core:definition "The id of the run of the fallback."@en ;
3569
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0018-provider-registry.md#Decision" ;
3570
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3571
+ core:owner core:kai-agent .
3572
+
3573
+ ai:column-spend-fallbacks-segment a owl:NamedIndividual , core:column ;
3574
+ core:of-table ai:table-spend-fallbacks ;
3575
+ core:has-name "segment" ;
3576
+ core:in-primary-key true ;
3577
+ core:not-modelled-reason "The number of the segment of the run. The model keeps the segment as a class and not its number."@en ;
3578
+ core:label "spend.fallbacks.segment"@en ;
3579
+ core:definition "The number of the segment of the run that the fallback belongs to."@en ;
3580
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0018-provider-registry.md#Decision" ;
3581
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3582
+ core:owner core:kai-agent .
3583
+
3584
+ ai:column-spend-fallbacks-attempt a owl:NamedIndividual , core:column ;
3585
+ core:of-table ai:table-spend-fallbacks ;
3586
+ core:has-name "attempt" ;
3587
+ core:in-primary-key true ;
3588
+ core:not-modelled-reason "The place of the attempt in the fallback list, from 1. The model keeps the fallback list of a prompt version and no class for an attempt."@en ;
3589
+ core:label "spend.fallbacks.attempt"@en ;
3590
+ core:definition "The place of the attempt in the fallback list, from 1."@en ;
3591
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0018-provider-registry.md#Decision" ;
3592
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3593
+ core:owner core:kai-agent .
3594
+
3595
+ ai:column-spend-fallbacks-source a owl:NamedIndividual , core:column ;
3596
+ core:of-table ai:table-spend-fallbacks ;
3597
+ core:has-name "source" ;
3598
+ core:not-modelled-reason "The provider of the model that failed. The model keeps the provider as `ai:provider` and the fallback itself as no class, so no property of a row states it."@en ;
3599
+ core:label "spend.fallbacks.source"@en ;
3600
+ core:definition "The provider of the model that failed."@en ;
3601
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0018-provider-registry.md#Decision" ;
3602
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3603
+ core:owner core:kai-agent .
3604
+
3605
+ ai:column-spend-fallbacks-target a owl:NamedIndividual , core:column ;
3606
+ core:of-table ai:table-spend-fallbacks ;
3607
+ core:has-name "target" ;
3608
+ core:not-modelled-reason "The name of the model that failed. The model keeps the model as `ai:model` and no class for a fallback attempt, so `ai:to-target` is not a property of the row."@en ;
3609
+ core:label "spend.fallbacks.target"@en ;
3610
+ core:definition "The name of the model that failed."@en ;
3611
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0018-provider-registry.md#Decision" ;
3612
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3613
+ core:owner core:kai-agent .
3614
+
3615
+ ai:column-spend-fallbacks-next-source a owl:NamedIndividual , core:column ;
3616
+ core:of-table ai:table-spend-fallbacks ;
3617
+ core:has-name "next_source" ;
3618
+ core:not-modelled-reason "The provider of the model that answered in place of the failed model. The model keeps the provider as `ai:provider` and no class for a fallback attempt."@en ;
3619
+ core:label "spend.fallbacks.next_source"@en ;
3620
+ core:definition "The provider of the model that answered in place of the failed model."@en ;
3621
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0018-provider-registry.md#Decision" ;
3622
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3623
+ core:owner core:kai-agent .
3624
+
3625
+ ai:column-spend-fallbacks-next-target a owl:NamedIndividual , core:column ;
3626
+ core:of-table ai:table-spend-fallbacks ;
3627
+ core:has-name "next_target" ;
3628
+ core:not-modelled-reason "The name of the model that answered in place of the failed model. The model keeps the model as `ai:model` and no class for a fallback attempt."@en ;
3629
+ core:label "spend.fallbacks.next_target"@en ;
3630
+ core:definition "The name of the model that answered in place of the failed model."@en ;
3631
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0018-provider-registry.md#Decision" ;
3632
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3633
+ core:owner core:kai-agent .
3634
+
3635
+ ai:column-spend-fallbacks-reason a owl:NamedIndividual , core:column ;
3636
+ core:of-table ai:table-spend-fallbacks ;
3637
+ core:has-name "reason" ;
3638
+ core:not-modelled-reason "The reason of the failure, a member of `ai-vocab:model-failure-kind`. `ai:has-failure-reason` states it for a failed run, and the model has no class for a fallback attempt."@en ;
3639
+ core:label "spend.fallbacks.reason"@en ;
3640
+ core:definition "The reason of the failure: `rate-limit`, `timeout`, `unavailable` or `rejected`."@en ;
3641
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0018-provider-registry.md#Decision" ;
3642
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3643
+ core:owner core:kai-agent .
3644
+
3645
+ ai:column-spend-fallbacks-created-at a owl:NamedIndividual , core:column ;
3646
+ core:of-table ai:table-spend-fallbacks ;
3647
+ core:has-name "created_at" ;
3648
+ core:not-modelled-reason "The time that `kai-agent` wrote the row. The table has no class of rows in the model."@en ;
3649
+ core:label "spend.fallbacks.created_at"@en ;
3650
+ core:definition "The time when `kai-agent` wrote the fallback of the segment."@en ;
3651
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0018-provider-registry.md#Decision" ;
3652
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3653
+ core:owner core:kai-agent .