|
593 | 593 | "application/json": { |
594 | 594 | "schema": { |
595 | 595 | "items": { |
596 | | - "$ref": "#/components/schemas/Run" |
| 596 | + "$ref": "#/components/schemas/RunStateful" |
597 | 597 | }, |
598 | 598 | "type": "array" |
599 | 599 | } |
|
648 | 648 | "content": { |
649 | 649 | "application/json": { |
650 | 650 | "schema": { |
651 | | - "$ref": "#/components/schemas/Run" |
| 651 | + "$ref": "#/components/schemas/RunStateful" |
652 | 652 | } |
653 | 653 | } |
654 | 654 | } |
|
668 | 668 | "content": { |
669 | 669 | "application/json": { |
670 | 670 | "schema": { |
671 | | - "$ref": "#/components/schemas/Run" |
| 671 | + "$ref": "#/components/schemas/RunStateful" |
672 | 672 | } |
673 | 673 | } |
674 | 674 | } |
|
820 | 820 | "content": { |
821 | 821 | "application/json": { |
822 | 822 | "schema": { |
823 | | - "$ref": "#/components/schemas/RunWaitResponse" |
| 823 | + "$ref": "#/components/schemas/RunWaitResponseStateful" |
824 | 824 | } |
825 | 825 | } |
826 | 826 | } |
|
898 | 898 | "content": { |
899 | 899 | "application/json": { |
900 | 900 | "schema": { |
901 | | - "$ref": "#/components/schemas/RunWaitResponse" |
| 901 | + "$ref": "#/components/schemas/RunWaitResponseStateful" |
902 | 902 | } |
903 | 903 | } |
904 | 904 | } |
|
966 | 966 | "content": { |
967 | 967 | "application/json": { |
968 | 968 | "schema": { |
969 | | - "$ref": "#/components/schemas/Run" |
| 969 | + "$ref": "#/components/schemas/RunStateful" |
970 | 970 | } |
971 | 971 | } |
972 | 972 | } |
|
1016 | 1016 | "content": { |
1017 | 1017 | "application/json": { |
1018 | 1018 | "schema": { |
1019 | | - "$ref": "#/components/schemas/Run" |
| 1019 | + "$ref": "#/components/schemas/RunStateful" |
1020 | 1020 | } |
1021 | 1021 | } |
1022 | 1022 | } |
|
1267 | 1267 | "content": { |
1268 | 1268 | "application/json": { |
1269 | 1269 | "schema": { |
1270 | | - "$ref": "#/components/schemas/Run" |
| 1270 | + "$ref": "#/components/schemas/RunStateless" |
1271 | 1271 | } |
1272 | 1272 | } |
1273 | 1273 | } |
|
1287 | 1287 | "content": { |
1288 | 1288 | "application/json": { |
1289 | 1289 | "schema": { |
1290 | | - "$ref": "#/components/schemas/Run" |
| 1290 | + "$ref": "#/components/schemas/RunStateless" |
1291 | 1291 | } |
1292 | 1292 | } |
1293 | 1293 | } |
|
1350 | 1350 | "application/json": { |
1351 | 1351 | "schema": { |
1352 | 1352 | "items": { |
1353 | | - "$ref": "#/components/schemas/Run" |
| 1353 | + "$ref": "#/components/schemas/RunStateless" |
1354 | 1354 | }, |
1355 | 1355 | "type": "array", |
1356 | 1356 | "title": "Run Search Response" |
|
1457 | 1457 | "content": { |
1458 | 1458 | "application/json": { |
1459 | 1459 | "schema": { |
1460 | | - "$ref": "#/components/schemas/RunWaitResponse" |
| 1460 | + "$ref": "#/components/schemas/RunWaitResponseStateless" |
1461 | 1461 | } |
1462 | 1462 | } |
1463 | 1463 | } |
|
1523 | 1523 | "content": { |
1524 | 1524 | "application/json": { |
1525 | 1525 | "schema": { |
1526 | | - "$ref": "#/components/schemas/RunWaitResponse" |
| 1526 | + "$ref": "#/components/schemas/RunWaitResponseStateless" |
1527 | 1527 | } |
1528 | 1528 | } |
1529 | 1529 | } |
|
1579 | 1579 | "content": { |
1580 | 1580 | "application/json": { |
1581 | 1581 | "schema": { |
1582 | | - "$ref": "#/components/schemas/Run" |
| 1582 | + "$ref": "#/components/schemas/RunStateless" |
1583 | 1583 | } |
1584 | 1584 | } |
1585 | 1585 | } |
|
1629 | 1629 | "content": { |
1630 | 1630 | "application/json": { |
1631 | 1631 | "schema": { |
1632 | | - "$ref": "#/components/schemas/Run" |
| 1632 | + "$ref": "#/components/schemas/RunStateless" |
1633 | 1633 | } |
1634 | 1634 | } |
1635 | 1635 | } |
|
2192 | 2192 | }, |
2193 | 2193 | "Run": { |
2194 | 2194 | "title": "Agent Run", |
2195 | | - "description": "Holds all the information of a run", |
| 2195 | + "description": "Holds common information of a run", |
2196 | 2196 | "properties": { |
2197 | | - "creation": { |
2198 | | - "oneOf": [ |
2199 | | - { |
2200 | | - "$ref": "#/components/schemas/RunCreateStateful" |
2201 | | - }, |
2202 | | - { |
2203 | | - "$ref": "#/components/schemas/RunCreateStateless" |
2204 | | - } |
2205 | | - ] |
2206 | | - }, |
2207 | 2197 | "run_id": { |
2208 | 2198 | "type": "string", |
2209 | 2199 | "format": "uuid", |
|
2222 | 2212 | "title": "Agent Id", |
2223 | 2213 | "description": "The agent that was used for this run." |
2224 | 2214 | }, |
2225 | | - |
2226 | 2215 | "created_at": { |
2227 | 2216 | "type": "string", |
2228 | 2217 | "format": "date-time", |
|
2242 | 2231 | } |
2243 | 2232 | }, |
2244 | 2233 | "required": [ |
2245 | | - "creation", |
2246 | 2234 | "run_id", |
2247 | 2235 | "agent_id", |
2248 | 2236 | "created_at", |
2249 | 2237 | "updated_at", |
2250 | 2238 | "status" |
2251 | 2239 | ] |
2252 | 2240 | }, |
| 2241 | + "RunStateless": { |
| 2242 | + "title": "Agent Run Stateless", |
| 2243 | + "description": "Holds all the information of a stateless run", |
| 2244 | + "allOf": [ |
| 2245 | + { |
| 2246 | + "$ref": "#/components/schemas/Run" |
| 2247 | + }, |
| 2248 | + { |
| 2249 | + "type": "object", |
| 2250 | + "properties": { |
| 2251 | + "creation": { |
| 2252 | + "$ref": "#/components/schemas/RunCreateStateless", |
| 2253 | + "title": "Creation", |
| 2254 | + "description": "" |
| 2255 | + } |
| 2256 | + }, |
| 2257 | + "required": [ |
| 2258 | + "creation" |
| 2259 | + ] |
| 2260 | + } |
| 2261 | + ] |
| 2262 | + }, |
| 2263 | + "RunStateful": { |
| 2264 | + "title": "Agent Run Stateful", |
| 2265 | + "description": "Holds all the information of a stateful run", |
| 2266 | + "allOf": [ |
| 2267 | + { |
| 2268 | + "$ref": "#/components/schemas/Run" |
| 2269 | + }, |
| 2270 | + { |
| 2271 | + "type": "object", |
| 2272 | + "properties": { |
| 2273 | + "creation": { |
| 2274 | + "$ref": "#/components/schemas/RunCreateStateful", |
| 2275 | + "title": "Creation", |
| 2276 | + "description": "" |
| 2277 | + } |
| 2278 | + }, |
| 2279 | + "required": [ |
| 2280 | + "creation" |
| 2281 | + ] |
| 2282 | + } |
| 2283 | + ] |
| 2284 | + }, |
2253 | 2285 | "RunCreateStateful": { |
2254 | 2286 | "allOf": [ |
2255 | 2287 | { |
|
2280 | 2312 | "title": "RunCreateStateful", |
2281 | 2313 | "description": "Payload for creating a stateful run." |
2282 | 2314 | }, |
2283 | | - "RunWaitResponse": { |
| 2315 | + "RunWaitResponseStateful": { |
| 2316 | + "type": "object", |
| 2317 | + "properties": { |
| 2318 | + "run": { |
| 2319 | + "$ref": "#/components/schemas/RunStateful", |
| 2320 | + "title": "Run", |
| 2321 | + "description": "The run information." |
| 2322 | + }, |
| 2323 | + "output": { |
| 2324 | + "$ref": "#/components/schemas/RunOutput" |
| 2325 | + } |
| 2326 | + } |
| 2327 | + }, |
| 2328 | + "RunWaitResponseStateless": { |
2284 | 2329 | "type": "object", |
2285 | 2330 | "properties": { |
2286 | 2331 | "run": { |
2287 | | - "$ref": "#/components/schemas/Run", |
| 2332 | + "$ref": "#/components/schemas/RunStateless", |
2288 | 2333 | "title": "Run", |
2289 | 2334 | "description": "The run information." |
2290 | 2335 | }, |
|
2314 | 2359 | } |
2315 | 2360 | } |
2316 | 2361 | ], |
2317 | | - "title": "RunCreateStateful", |
| 2362 | + "title": "RunCreateStateless", |
2318 | 2363 | "description": "Payload for creating a stateless run." |
2319 | 2364 | }, |
2320 | 2365 | "ThreadSearchRequest": { |
|
0 commit comments