File size: 6,241 Bytes
24918f7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 | {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://paintedwolf.ai/schemas/pw-decide-row/1",
"title": "pw-decide-row/1",
"description": "One turn decision as a training row, written by `lycaon-debug decide export`: the state the engine read, the candidates the turn offered, what the engine answered, and what the session then did. Producers may add `meta` and judged scores; consumers read option sets from `offered` and option texts from the corpus.",
"type": "object",
"required": [
"schema",
"receipt",
"session",
"root_session",
"opening_message_id",
"host",
"surface",
"catalog_revision",
"project",
"model",
"partial",
"lang",
"engine",
"offered",
"state",
"labels"
],
"properties": {
"schema": {
"const": "pw-decide-row/1"
},
"receipt": {
"type": "integer",
"description": "The turn-load receipt the row was read from."
},
"session": {
"type": "string"
},
"root_session": {
"type": "string",
"description": "The session itself, or the coordinator session a worker leg belongs to."
},
"opening_message_id": {
"type": "string"
},
"host": {
"enum": [
"coordinator",
"worker"
]
},
"surface": {
"type": "string",
"description": "The coordinator surface, or the worker's tool profile."
},
"catalog_revision": {
"type": "string"
},
"project": {
"type": "string"
},
"model": {
"type": "string",
"description": "The model that made most of the session's calls."
},
"partial": {
"type": "boolean",
"description": "The turn did not complete; only its request_tools needs are labels."
},
"lang": {
"enum": [
"en",
"other"
]
},
"engine": {
"type": "object",
"required": [
"state",
"reason",
"preloaded",
"omitted"
],
"properties": {
"state": {
"enum": [
"answered",
"abstained"
],
"description": "An answered turn carried what the engine chose, so its tool labels are not independent of the engine."
},
"reason": {
"type": "string"
},
"preloaded": {
"type": "array",
"items": {
"type": "string"
}
},
"omitted": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"offered": {
"type": "object",
"required": [
"floor",
"loadable",
"guides"
],
"properties": {
"floor": {
"type": "array",
"items": {
"type": "string"
}
},
"loadable": {
"type": "array",
"items": {
"type": "string"
}
},
"guides": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"state": {
"type": "object",
"required": [
"host",
"user"
],
"description": "The turnload.State the engine read, verbatim."
},
"labels": {
"type": "object",
"required": [
"tools",
"requests",
"requested_names",
"requested_groups",
"skills",
"kind",
"guides"
],
"properties": {
"tools": {
"type": "array",
"items": {
"type": "string"
},
"description": "Offered loadable tools the turn called."
},
"requests": {
"type": "array",
"items": {
"type": "object",
"required": [
"need",
"exact",
"after"
],
"properties": {
"need": {
"type": "string"
},
"exact": {
"type": "array",
"items": {
"type": "string"
}
},
"after": {
"type": "array",
"items": {
"type": "string"
}
},
"scores": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 0,
"maximum": 4
},
"description": "Judged relevance of each ranked tool card to the need."
}
}
}
},
"requested_names": {
"type": "array",
"items": {
"type": "string"
}
},
"requested_groups": {
"type": "array",
"items": {
"type": "string"
}
},
"skills": {
"type": "array",
"items": {
"type": "string"
}
},
"kind": {
"enum": [
"answer_only",
"inspect",
"change",
"run",
"delegate",
null
],
"description": "The kind the turn's tool calls imply; null for a turn that did not complete."
},
"guides": {
"type": "object",
"additionalProperties": {
"type": [
"boolean",
"null"
]
},
"description": "Offered instruction units: needed, unneeded, or unknown (null)."
},
"skill_scores": {
"type": "object",
"additionalProperties": {
"type": "integer",
"minimum": 0,
"maximum": 4
},
"description": "Judged relevance of each skill card to the request."
}
}
},
"judge": {
"type": "object",
"description": "Which model judged the row's scores, and how."
},
"meta": {
"type": "object",
"description": "Producer metadata, such as the task, repository, and prompt group; consumers may group by it but never train on it."
}
}
}
|