@agent-os-sdk/client 0.4.4 → 0.4.6
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/dist/generated/openapi.d.ts +574 -1
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/modules/agents.d.ts +9 -0
- package/dist/modules/agents.d.ts.map +1 -1
- package/dist/modules/agents.js +25 -0
- package/dist/modules/runs.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +574 -1
- package/src/generated/swagger.json +779 -26
- package/src/modules/agents.ts +36 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.4",
|
|
3
3
|
"info": {
|
|
4
|
-
"title": "
|
|
4
|
+
"title": "SwaggerExporter",
|
|
5
5
|
"version": "1.0"
|
|
6
6
|
},
|
|
7
7
|
"paths": {
|
|
@@ -485,6 +485,97 @@
|
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
},
|
|
488
|
+
"/v1/api/agents/{id}/draft/graph": {
|
|
489
|
+
"put": {
|
|
490
|
+
"tags": [
|
|
491
|
+
"Agents"
|
|
492
|
+
],
|
|
493
|
+
"summary": "Updates the draft graph specification for an agent (autosave/resume).",
|
|
494
|
+
"description": "**IMPORTANT:** Draft is for UI autosave only. Publish does NOT read from draft.\nPublish continues to use `request.GraphSpec` as the canonical source.\n\nRequires `If-Match` header with ETag from previous GET/PUT.\n\n**ETag Format:**\n- Header: `\"agentId:ticks\"` (with quotes)\n- Body: `agentId:ticks` (no quotes)\n\n**Hints (in ProblemDetails.Extensions):**\n- 428: `include_if_match` - SDK should auto-fetch ETag\n- 412: `reload_and_retry` - Front should refetch and confirm\n- 400: `fix_payload` - Editor should show validation error",
|
|
495
|
+
"parameters": [
|
|
496
|
+
{
|
|
497
|
+
"name": "id",
|
|
498
|
+
"in": "path",
|
|
499
|
+
"required": true,
|
|
500
|
+
"schema": {
|
|
501
|
+
"type": "string",
|
|
502
|
+
"format": "uuid"
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
],
|
|
506
|
+
"requestBody": {
|
|
507
|
+
"content": {
|
|
508
|
+
"application/json": {
|
|
509
|
+
"schema": {
|
|
510
|
+
"$ref": "#/components/schemas/UpdateDraftGraphRequest"
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
"text/json": {
|
|
514
|
+
"schema": {
|
|
515
|
+
"$ref": "#/components/schemas/UpdateDraftGraphRequest"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"application/*+json": {
|
|
519
|
+
"schema": {
|
|
520
|
+
"$ref": "#/components/schemas/UpdateDraftGraphRequest"
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"responses": {
|
|
526
|
+
"200": {
|
|
527
|
+
"description": "OK",
|
|
528
|
+
"content": {
|
|
529
|
+
"application/json": {
|
|
530
|
+
"schema": {
|
|
531
|
+
"$ref": "#/components/schemas/AgentDraftResponse"
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"400": {
|
|
537
|
+
"description": "Bad Request",
|
|
538
|
+
"content": {
|
|
539
|
+
"application/json": {
|
|
540
|
+
"schema": {
|
|
541
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
"404": {
|
|
547
|
+
"description": "Not Found",
|
|
548
|
+
"content": {
|
|
549
|
+
"application/json": {
|
|
550
|
+
"schema": {
|
|
551
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
"412": {
|
|
557
|
+
"description": "Precondition Failed",
|
|
558
|
+
"content": {
|
|
559
|
+
"application/json": {
|
|
560
|
+
"schema": {
|
|
561
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
"428": {
|
|
567
|
+
"description": "Precondition Required",
|
|
568
|
+
"content": {
|
|
569
|
+
"application/json": {
|
|
570
|
+
"schema": {
|
|
571
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
},
|
|
488
579
|
"/v1/api/agents/{id}/graph": {
|
|
489
580
|
"get": {
|
|
490
581
|
"tags": [
|
|
@@ -1860,20 +1951,436 @@
|
|
|
1860
1951
|
"format": "uuid"
|
|
1861
1952
|
}
|
|
1862
1953
|
}
|
|
1863
|
-
],
|
|
1864
|
-
"responses": {
|
|
1865
|
-
"200": {
|
|
1866
|
-
"description": "OK"
|
|
1867
|
-
}
|
|
1954
|
+
],
|
|
1955
|
+
"responses": {
|
|
1956
|
+
"200": {
|
|
1957
|
+
"description": "OK"
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
},
|
|
1962
|
+
"/v1/api/crons/{id}/runs": {
|
|
1963
|
+
"get": {
|
|
1964
|
+
"tags": [
|
|
1965
|
+
"Crons"
|
|
1966
|
+
],
|
|
1967
|
+
"summary": "Get runs triggered by a cron job.",
|
|
1968
|
+
"parameters": [
|
|
1969
|
+
{
|
|
1970
|
+
"name": "id",
|
|
1971
|
+
"in": "path",
|
|
1972
|
+
"required": true,
|
|
1973
|
+
"schema": {
|
|
1974
|
+
"type": "string",
|
|
1975
|
+
"format": "uuid"
|
|
1976
|
+
}
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
"name": "skip",
|
|
1980
|
+
"in": "query",
|
|
1981
|
+
"schema": {
|
|
1982
|
+
"type": "integer",
|
|
1983
|
+
"format": "int32",
|
|
1984
|
+
"default": 0
|
|
1985
|
+
}
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
"name": "take",
|
|
1989
|
+
"in": "query",
|
|
1990
|
+
"schema": {
|
|
1991
|
+
"type": "integer",
|
|
1992
|
+
"format": "int32",
|
|
1993
|
+
"default": 50
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
],
|
|
1997
|
+
"responses": {
|
|
1998
|
+
"200": {
|
|
1999
|
+
"description": "OK"
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
},
|
|
2004
|
+
"/v1/api/datasets": {
|
|
2005
|
+
"post": {
|
|
2006
|
+
"tags": [
|
|
2007
|
+
"Datasets"
|
|
2008
|
+
],
|
|
2009
|
+
"summary": "Creates a new evaluation dataset.",
|
|
2010
|
+
"requestBody": {
|
|
2011
|
+
"content": {
|
|
2012
|
+
"application/json": {
|
|
2013
|
+
"schema": {
|
|
2014
|
+
"$ref": "#/components/schemas/CreateDatasetRequest"
|
|
2015
|
+
}
|
|
2016
|
+
},
|
|
2017
|
+
"text/json": {
|
|
2018
|
+
"schema": {
|
|
2019
|
+
"$ref": "#/components/schemas/CreateDatasetRequest"
|
|
2020
|
+
}
|
|
2021
|
+
},
|
|
2022
|
+
"application/*+json": {
|
|
2023
|
+
"schema": {
|
|
2024
|
+
"$ref": "#/components/schemas/CreateDatasetRequest"
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
},
|
|
2029
|
+
"responses": {
|
|
2030
|
+
"201": {
|
|
2031
|
+
"description": "Created",
|
|
2032
|
+
"content": {
|
|
2033
|
+
"application/json": {
|
|
2034
|
+
"schema": {
|
|
2035
|
+
"$ref": "#/components/schemas/DatasetResponse"
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
},
|
|
2040
|
+
"400": {
|
|
2041
|
+
"description": "Bad Request",
|
|
2042
|
+
"content": {
|
|
2043
|
+
"application/json": {
|
|
2044
|
+
"schema": {
|
|
2045
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
},
|
|
2050
|
+
"401": {
|
|
2051
|
+
"description": "Unauthorized",
|
|
2052
|
+
"content": {
|
|
2053
|
+
"application/json": {
|
|
2054
|
+
"schema": {
|
|
2055
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
},
|
|
2062
|
+
"get": {
|
|
2063
|
+
"tags": [
|
|
2064
|
+
"Datasets"
|
|
2065
|
+
],
|
|
2066
|
+
"summary": "Lists datasets in the workspace.",
|
|
2067
|
+
"parameters": [
|
|
2068
|
+
{
|
|
2069
|
+
"name": "skip",
|
|
2070
|
+
"in": "query",
|
|
2071
|
+
"schema": {
|
|
2072
|
+
"type": "integer",
|
|
2073
|
+
"format": "int32",
|
|
2074
|
+
"default": 0
|
|
2075
|
+
}
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
"name": "take",
|
|
2079
|
+
"in": "query",
|
|
2080
|
+
"schema": {
|
|
2081
|
+
"type": "integer",
|
|
2082
|
+
"format": "int32",
|
|
2083
|
+
"default": 20
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
],
|
|
2087
|
+
"responses": {
|
|
2088
|
+
"200": {
|
|
2089
|
+
"description": "OK",
|
|
2090
|
+
"content": {
|
|
2091
|
+
"application/json": {
|
|
2092
|
+
"schema": {
|
|
2093
|
+
"type": "array",
|
|
2094
|
+
"items": {
|
|
2095
|
+
"$ref": "#/components/schemas/DatasetResponse"
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
},
|
|
2101
|
+
"401": {
|
|
2102
|
+
"description": "Unauthorized",
|
|
2103
|
+
"content": {
|
|
2104
|
+
"application/json": {
|
|
2105
|
+
"schema": {
|
|
2106
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
2111
|
+
"400": {
|
|
2112
|
+
"description": "Bad Request",
|
|
2113
|
+
"content": {
|
|
2114
|
+
"application/json": {
|
|
2115
|
+
"schema": {
|
|
2116
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
},
|
|
2124
|
+
"/v1/api/datasets/{id}": {
|
|
2125
|
+
"get": {
|
|
2126
|
+
"tags": [
|
|
2127
|
+
"Datasets"
|
|
2128
|
+
],
|
|
2129
|
+
"summary": "Gets a specific dataset by ID.",
|
|
2130
|
+
"parameters": [
|
|
2131
|
+
{
|
|
2132
|
+
"name": "id",
|
|
2133
|
+
"in": "path",
|
|
2134
|
+
"required": true,
|
|
2135
|
+
"schema": {
|
|
2136
|
+
"type": "string",
|
|
2137
|
+
"format": "uuid"
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
],
|
|
2141
|
+
"responses": {
|
|
2142
|
+
"200": {
|
|
2143
|
+
"description": "OK",
|
|
2144
|
+
"content": {
|
|
2145
|
+
"application/json": {
|
|
2146
|
+
"schema": {
|
|
2147
|
+
"$ref": "#/components/schemas/DatasetResponse"
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
},
|
|
2152
|
+
"404": {
|
|
2153
|
+
"description": "Not Found",
|
|
2154
|
+
"content": {
|
|
2155
|
+
"application/json": {
|
|
2156
|
+
"schema": {
|
|
2157
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
},
|
|
2162
|
+
"401": {
|
|
2163
|
+
"description": "Unauthorized",
|
|
2164
|
+
"content": {
|
|
2165
|
+
"application/json": {
|
|
2166
|
+
"schema": {
|
|
2167
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
},
|
|
2174
|
+
"patch": {
|
|
2175
|
+
"tags": [
|
|
2176
|
+
"Datasets"
|
|
2177
|
+
],
|
|
2178
|
+
"summary": "Updates a dataset (Partial Update).",
|
|
2179
|
+
"parameters": [
|
|
2180
|
+
{
|
|
2181
|
+
"name": "id",
|
|
2182
|
+
"in": "path",
|
|
2183
|
+
"required": true,
|
|
2184
|
+
"schema": {
|
|
2185
|
+
"type": "string",
|
|
2186
|
+
"format": "uuid"
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
],
|
|
2190
|
+
"requestBody": {
|
|
2191
|
+
"content": {
|
|
2192
|
+
"application/json": {
|
|
2193
|
+
"schema": {
|
|
2194
|
+
"$ref": "#/components/schemas/UpdateDatasetRequest"
|
|
2195
|
+
}
|
|
2196
|
+
},
|
|
2197
|
+
"text/json": {
|
|
2198
|
+
"schema": {
|
|
2199
|
+
"$ref": "#/components/schemas/UpdateDatasetRequest"
|
|
2200
|
+
}
|
|
2201
|
+
},
|
|
2202
|
+
"application/*+json": {
|
|
2203
|
+
"schema": {
|
|
2204
|
+
"$ref": "#/components/schemas/UpdateDatasetRequest"
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
},
|
|
2209
|
+
"responses": {
|
|
2210
|
+
"200": {
|
|
2211
|
+
"description": "OK",
|
|
2212
|
+
"content": {
|
|
2213
|
+
"application/json": {
|
|
2214
|
+
"schema": {
|
|
2215
|
+
"$ref": "#/components/schemas/DatasetResponse"
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
},
|
|
2220
|
+
"404": {
|
|
2221
|
+
"description": "Not Found",
|
|
2222
|
+
"content": {
|
|
2223
|
+
"application/json": {
|
|
2224
|
+
"schema": {
|
|
2225
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
},
|
|
2232
|
+
"delete": {
|
|
2233
|
+
"tags": [
|
|
2234
|
+
"Datasets"
|
|
2235
|
+
],
|
|
2236
|
+
"summary": "Soft deletes a dataset.",
|
|
2237
|
+
"parameters": [
|
|
2238
|
+
{
|
|
2239
|
+
"name": "id",
|
|
2240
|
+
"in": "path",
|
|
2241
|
+
"required": true,
|
|
2242
|
+
"schema": {
|
|
2243
|
+
"type": "string",
|
|
2244
|
+
"format": "uuid"
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
],
|
|
2248
|
+
"responses": {
|
|
2249
|
+
"204": {
|
|
2250
|
+
"description": "No Content"
|
|
2251
|
+
},
|
|
2252
|
+
"404": {
|
|
2253
|
+
"description": "Not Found",
|
|
2254
|
+
"content": {
|
|
2255
|
+
"application/json": {
|
|
2256
|
+
"schema": {
|
|
2257
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
},
|
|
2265
|
+
"/v1/api/datasets/{id}/examples": {
|
|
2266
|
+
"post": {
|
|
2267
|
+
"tags": [
|
|
2268
|
+
"Datasets"
|
|
2269
|
+
],
|
|
2270
|
+
"summary": "Adds examples to a dataset (Batch).",
|
|
2271
|
+
"parameters": [
|
|
2272
|
+
{
|
|
2273
|
+
"name": "id",
|
|
2274
|
+
"in": "path",
|
|
2275
|
+
"required": true,
|
|
2276
|
+
"schema": {
|
|
2277
|
+
"type": "string",
|
|
2278
|
+
"format": "uuid"
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
],
|
|
2282
|
+
"requestBody": {
|
|
2283
|
+
"content": {
|
|
2284
|
+
"application/json": {
|
|
2285
|
+
"schema": {
|
|
2286
|
+
"$ref": "#/components/schemas/CreateExampleRequest"
|
|
2287
|
+
}
|
|
2288
|
+
},
|
|
2289
|
+
"text/json": {
|
|
2290
|
+
"schema": {
|
|
2291
|
+
"$ref": "#/components/schemas/CreateExampleRequest"
|
|
2292
|
+
}
|
|
2293
|
+
},
|
|
2294
|
+
"application/*+json": {
|
|
2295
|
+
"schema": {
|
|
2296
|
+
"$ref": "#/components/schemas/CreateExampleRequest"
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
},
|
|
2301
|
+
"responses": {
|
|
2302
|
+
"201": {
|
|
2303
|
+
"description": "Created",
|
|
2304
|
+
"content": {
|
|
2305
|
+
"application/json": {
|
|
2306
|
+
"schema": {
|
|
2307
|
+
"type": "array",
|
|
2308
|
+
"items": {
|
|
2309
|
+
"$ref": "#/components/schemas/ExampleResponse"
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
},
|
|
2315
|
+
"404": {
|
|
2316
|
+
"description": "Not Found",
|
|
2317
|
+
"content": {
|
|
2318
|
+
"application/json": {
|
|
2319
|
+
"schema": {
|
|
2320
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
2321
|
+
}
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
},
|
|
2327
|
+
"get": {
|
|
2328
|
+
"tags": [
|
|
2329
|
+
"Datasets"
|
|
2330
|
+
],
|
|
2331
|
+
"summary": "Lists examples for a dataset.",
|
|
2332
|
+
"parameters": [
|
|
2333
|
+
{
|
|
2334
|
+
"name": "id",
|
|
2335
|
+
"in": "path",
|
|
2336
|
+
"required": true,
|
|
2337
|
+
"schema": {
|
|
2338
|
+
"type": "string",
|
|
2339
|
+
"format": "uuid"
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
"name": "skip",
|
|
2344
|
+
"in": "query",
|
|
2345
|
+
"schema": {
|
|
2346
|
+
"type": "integer",
|
|
2347
|
+
"format": "int32",
|
|
2348
|
+
"default": 0
|
|
2349
|
+
}
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
"name": "take",
|
|
2353
|
+
"in": "query",
|
|
2354
|
+
"schema": {
|
|
2355
|
+
"type": "integer",
|
|
2356
|
+
"format": "int32",
|
|
2357
|
+
"default": 50
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
],
|
|
2361
|
+
"responses": {
|
|
2362
|
+
"200": {
|
|
2363
|
+
"description": "OK",
|
|
2364
|
+
"content": {
|
|
2365
|
+
"application/json": {
|
|
2366
|
+
"schema": {
|
|
2367
|
+
"type": "array",
|
|
2368
|
+
"items": {
|
|
2369
|
+
"$ref": "#/components/schemas/ExampleResponse"
|
|
2370
|
+
}
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
1868
2375
|
}
|
|
1869
2376
|
}
|
|
1870
2377
|
},
|
|
1871
|
-
"/v1/api/
|
|
1872
|
-
"
|
|
2378
|
+
"/v1/api/datasets/{id}/examples/{exampleId}": {
|
|
2379
|
+
"delete": {
|
|
1873
2380
|
"tags": [
|
|
1874
|
-
"
|
|
2381
|
+
"Datasets"
|
|
1875
2382
|
],
|
|
1876
|
-
"summary": "
|
|
2383
|
+
"summary": "Deletes a specific example.",
|
|
1877
2384
|
"parameters": [
|
|
1878
2385
|
{
|
|
1879
2386
|
"name": "id",
|
|
@@ -1885,27 +2392,28 @@
|
|
|
1885
2392
|
}
|
|
1886
2393
|
},
|
|
1887
2394
|
{
|
|
1888
|
-
"name": "
|
|
1889
|
-
"in": "
|
|
1890
|
-
"
|
|
1891
|
-
"type": "integer",
|
|
1892
|
-
"format": "int32",
|
|
1893
|
-
"default": 0
|
|
1894
|
-
}
|
|
1895
|
-
},
|
|
1896
|
-
{
|
|
1897
|
-
"name": "take",
|
|
1898
|
-
"in": "query",
|
|
2395
|
+
"name": "exampleId",
|
|
2396
|
+
"in": "path",
|
|
2397
|
+
"required": true,
|
|
1899
2398
|
"schema": {
|
|
1900
|
-
"type": "
|
|
1901
|
-
"format": "
|
|
1902
|
-
"default": 50
|
|
2399
|
+
"type": "string",
|
|
2400
|
+
"format": "uuid"
|
|
1903
2401
|
}
|
|
1904
2402
|
}
|
|
1905
2403
|
],
|
|
1906
2404
|
"responses": {
|
|
1907
|
-
"
|
|
1908
|
-
"description": "
|
|
2405
|
+
"204": {
|
|
2406
|
+
"description": "No Content"
|
|
2407
|
+
},
|
|
2408
|
+
"404": {
|
|
2409
|
+
"description": "Not Found",
|
|
2410
|
+
"content": {
|
|
2411
|
+
"application/json": {
|
|
2412
|
+
"schema": {
|
|
2413
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
}
|
|
1909
2417
|
}
|
|
1910
2418
|
}
|
|
1911
2419
|
}
|
|
@@ -6319,6 +6827,102 @@
|
|
|
6319
6827
|
}
|
|
6320
6828
|
}
|
|
6321
6829
|
}
|
|
6830
|
+
},
|
|
6831
|
+
"get": {
|
|
6832
|
+
"tags": [
|
|
6833
|
+
"VectorStores"
|
|
6834
|
+
],
|
|
6835
|
+
"summary": "List files in a vector store.",
|
|
6836
|
+
"parameters": [
|
|
6837
|
+
{
|
|
6838
|
+
"name": "vectorStoreId",
|
|
6839
|
+
"in": "path",
|
|
6840
|
+
"required": true,
|
|
6841
|
+
"schema": {
|
|
6842
|
+
"type": "string",
|
|
6843
|
+
"format": "uuid"
|
|
6844
|
+
}
|
|
6845
|
+
},
|
|
6846
|
+
{
|
|
6847
|
+
"name": "skip",
|
|
6848
|
+
"in": "query",
|
|
6849
|
+
"schema": {
|
|
6850
|
+
"type": "integer",
|
|
6851
|
+
"format": "int32",
|
|
6852
|
+
"default": 0
|
|
6853
|
+
}
|
|
6854
|
+
},
|
|
6855
|
+
{
|
|
6856
|
+
"name": "take",
|
|
6857
|
+
"in": "query",
|
|
6858
|
+
"schema": {
|
|
6859
|
+
"type": "integer",
|
|
6860
|
+
"format": "int32",
|
|
6861
|
+
"default": 50
|
|
6862
|
+
}
|
|
6863
|
+
}
|
|
6864
|
+
],
|
|
6865
|
+
"responses": {
|
|
6866
|
+
"200": {
|
|
6867
|
+
"description": "OK",
|
|
6868
|
+
"content": {
|
|
6869
|
+
"application/json": {
|
|
6870
|
+
"schema": {
|
|
6871
|
+
"type": "array",
|
|
6872
|
+
"items": {
|
|
6873
|
+
"$ref": "#/components/schemas/VectorStoreFileResponse"
|
|
6874
|
+
}
|
|
6875
|
+
}
|
|
6876
|
+
}
|
|
6877
|
+
}
|
|
6878
|
+
}
|
|
6879
|
+
}
|
|
6880
|
+
}
|
|
6881
|
+
},
|
|
6882
|
+
"/v1/api/vector-stores/{vectorStoreId}/files/{fileId}": {
|
|
6883
|
+
"delete": {
|
|
6884
|
+
"tags": [
|
|
6885
|
+
"VectorStores"
|
|
6886
|
+
],
|
|
6887
|
+
"summary": "Detach a file from a vector store.",
|
|
6888
|
+
"description": "Removes the file association from the vector store.\n**Important:** This does NOT delete the file from storage (S3), only checks out the link.\nEmbeddings related to this file are NOT immediately cleaned up (future work).",
|
|
6889
|
+
"parameters": [
|
|
6890
|
+
{
|
|
6891
|
+
"name": "vectorStoreId",
|
|
6892
|
+
"in": "path",
|
|
6893
|
+
"description": "Vector Store ID",
|
|
6894
|
+
"required": true,
|
|
6895
|
+
"schema": {
|
|
6896
|
+
"type": "string",
|
|
6897
|
+
"format": "uuid"
|
|
6898
|
+
}
|
|
6899
|
+
},
|
|
6900
|
+
{
|
|
6901
|
+
"name": "fileId",
|
|
6902
|
+
"in": "path",
|
|
6903
|
+
"description": "The StoredFile ID (not the join record ID)",
|
|
6904
|
+
"required": true,
|
|
6905
|
+
"schema": {
|
|
6906
|
+
"type": "string",
|
|
6907
|
+
"format": "uuid"
|
|
6908
|
+
}
|
|
6909
|
+
}
|
|
6910
|
+
],
|
|
6911
|
+
"responses": {
|
|
6912
|
+
"204": {
|
|
6913
|
+
"description": "No Content"
|
|
6914
|
+
},
|
|
6915
|
+
"404": {
|
|
6916
|
+
"description": "Not Found",
|
|
6917
|
+
"content": {
|
|
6918
|
+
"application/json": {
|
|
6919
|
+
"schema": {
|
|
6920
|
+
"$ref": "#/components/schemas/ProblemDetails"
|
|
6921
|
+
}
|
|
6922
|
+
}
|
|
6923
|
+
}
|
|
6924
|
+
}
|
|
6925
|
+
}
|
|
6322
6926
|
}
|
|
6323
6927
|
},
|
|
6324
6928
|
"/v1/api/vector-stores/{vectorStoreId}/query": {
|
|
@@ -6734,6 +7338,38 @@
|
|
|
6734
7338
|
},
|
|
6735
7339
|
"additionalProperties": false
|
|
6736
7340
|
},
|
|
7341
|
+
"AgentDraftResponse": {
|
|
7342
|
+
"type": "object",
|
|
7343
|
+
"properties": {
|
|
7344
|
+
"id": {
|
|
7345
|
+
"type": "string",
|
|
7346
|
+
"format": "uuid"
|
|
7347
|
+
},
|
|
7348
|
+
"name": {
|
|
7349
|
+
"type": "string",
|
|
7350
|
+
"nullable": true
|
|
7351
|
+
},
|
|
7352
|
+
"draft_graph_json": {
|
|
7353
|
+
"type": "string",
|
|
7354
|
+
"nullable": true
|
|
7355
|
+
},
|
|
7356
|
+
"draft_updated_at": {
|
|
7357
|
+
"type": "string",
|
|
7358
|
+
"format": "date-time",
|
|
7359
|
+
"nullable": true
|
|
7360
|
+
},
|
|
7361
|
+
"live_bundle_id": {
|
|
7362
|
+
"type": "string",
|
|
7363
|
+
"format": "uuid",
|
|
7364
|
+
"nullable": true
|
|
7365
|
+
},
|
|
7366
|
+
"e_tag": {
|
|
7367
|
+
"type": "string",
|
|
7368
|
+
"nullable": true
|
|
7369
|
+
}
|
|
7370
|
+
},
|
|
7371
|
+
"additionalProperties": false
|
|
7372
|
+
},
|
|
6737
7373
|
"AgentExportAgent": {
|
|
6738
7374
|
"type": "object",
|
|
6739
7375
|
"properties": {
|
|
@@ -7274,6 +7910,19 @@
|
|
|
7274
7910
|
},
|
|
7275
7911
|
"additionalProperties": false
|
|
7276
7912
|
},
|
|
7913
|
+
"CreateExampleRequest": {
|
|
7914
|
+
"type": "object",
|
|
7915
|
+
"properties": {
|
|
7916
|
+
"examples": {
|
|
7917
|
+
"type": "array",
|
|
7918
|
+
"items": {
|
|
7919
|
+
"$ref": "#/components/schemas/ExampleDto"
|
|
7920
|
+
},
|
|
7921
|
+
"nullable": true
|
|
7922
|
+
}
|
|
7923
|
+
},
|
|
7924
|
+
"additionalProperties": false
|
|
7925
|
+
},
|
|
7277
7926
|
"CreateExperimentRequest": {
|
|
7278
7927
|
"type": "object",
|
|
7279
7928
|
"properties": {
|
|
@@ -7580,6 +8229,41 @@
|
|
|
7580
8229
|
},
|
|
7581
8230
|
"additionalProperties": false
|
|
7582
8231
|
},
|
|
8232
|
+
"DatasetResponse": {
|
|
8233
|
+
"type": "object",
|
|
8234
|
+
"properties": {
|
|
8235
|
+
"id": {
|
|
8236
|
+
"type": "string",
|
|
8237
|
+
"format": "uuid"
|
|
8238
|
+
},
|
|
8239
|
+
"name": {
|
|
8240
|
+
"type": "string",
|
|
8241
|
+
"nullable": true
|
|
8242
|
+
},
|
|
8243
|
+
"description": {
|
|
8244
|
+
"type": "string",
|
|
8245
|
+
"nullable": true
|
|
8246
|
+
},
|
|
8247
|
+
"agentId": {
|
|
8248
|
+
"type": "string",
|
|
8249
|
+
"format": "uuid",
|
|
8250
|
+
"nullable": true
|
|
8251
|
+
},
|
|
8252
|
+
"exampleCount": {
|
|
8253
|
+
"type": "integer",
|
|
8254
|
+
"format": "int32"
|
|
8255
|
+
},
|
|
8256
|
+
"createdAt": {
|
|
8257
|
+
"type": "string",
|
|
8258
|
+
"format": "date-time"
|
|
8259
|
+
},
|
|
8260
|
+
"updatedAt": {
|
|
8261
|
+
"type": "string",
|
|
8262
|
+
"format": "date-time"
|
|
8263
|
+
}
|
|
8264
|
+
},
|
|
8265
|
+
"additionalProperties": false
|
|
8266
|
+
},
|
|
7583
8267
|
"DryRunRequest": {
|
|
7584
8268
|
"type": "object",
|
|
7585
8269
|
"properties": {
|
|
@@ -7630,6 +8314,44 @@
|
|
|
7630
8314
|
},
|
|
7631
8315
|
"additionalProperties": false
|
|
7632
8316
|
},
|
|
8317
|
+
"ExampleDto": {
|
|
8318
|
+
"type": "object",
|
|
8319
|
+
"properties": {
|
|
8320
|
+
"input": { },
|
|
8321
|
+
"expectedOutput": {
|
|
8322
|
+
"nullable": true
|
|
8323
|
+
},
|
|
8324
|
+
"metadata": {
|
|
8325
|
+
"nullable": true
|
|
8326
|
+
}
|
|
8327
|
+
},
|
|
8328
|
+
"additionalProperties": false
|
|
8329
|
+
},
|
|
8330
|
+
"ExampleResponse": {
|
|
8331
|
+
"type": "object",
|
|
8332
|
+
"properties": {
|
|
8333
|
+
"id": {
|
|
8334
|
+
"type": "string",
|
|
8335
|
+
"format": "uuid"
|
|
8336
|
+
},
|
|
8337
|
+
"datasetId": {
|
|
8338
|
+
"type": "string",
|
|
8339
|
+
"format": "uuid"
|
|
8340
|
+
},
|
|
8341
|
+
"input": { },
|
|
8342
|
+
"expectedOutput": {
|
|
8343
|
+
"nullable": true
|
|
8344
|
+
},
|
|
8345
|
+
"metadata": {
|
|
8346
|
+
"nullable": true
|
|
8347
|
+
},
|
|
8348
|
+
"createdAt": {
|
|
8349
|
+
"type": "string",
|
|
8350
|
+
"format": "date-time"
|
|
8351
|
+
}
|
|
8352
|
+
},
|
|
8353
|
+
"additionalProperties": false
|
|
8354
|
+
},
|
|
7633
8355
|
"FileConfirmResponse": {
|
|
7634
8356
|
"type": "object",
|
|
7635
8357
|
"properties": {
|
|
@@ -8814,6 +9536,34 @@
|
|
|
8814
9536
|
},
|
|
8815
9537
|
"additionalProperties": false
|
|
8816
9538
|
},
|
|
9539
|
+
"UpdateDatasetRequest": {
|
|
9540
|
+
"type": "object",
|
|
9541
|
+
"properties": {
|
|
9542
|
+
"name": {
|
|
9543
|
+
"type": "string",
|
|
9544
|
+
"nullable": true
|
|
9545
|
+
},
|
|
9546
|
+
"description": {
|
|
9547
|
+
"type": "string",
|
|
9548
|
+
"nullable": true
|
|
9549
|
+
},
|
|
9550
|
+
"agentId": {
|
|
9551
|
+
"type": "string",
|
|
9552
|
+
"format": "uuid",
|
|
9553
|
+
"nullable": true
|
|
9554
|
+
}
|
|
9555
|
+
},
|
|
9556
|
+
"additionalProperties": false
|
|
9557
|
+
},
|
|
9558
|
+
"UpdateDraftGraphRequest": {
|
|
9559
|
+
"type": "object",
|
|
9560
|
+
"properties": {
|
|
9561
|
+
"graphJson": {
|
|
9562
|
+
"nullable": true
|
|
9563
|
+
}
|
|
9564
|
+
},
|
|
9565
|
+
"additionalProperties": false
|
|
9566
|
+
},
|
|
8817
9567
|
"UpdateMemberRequest": {
|
|
8818
9568
|
"type": "object",
|
|
8819
9569
|
"properties": {
|
|
@@ -9225,6 +9975,9 @@
|
|
|
9225
9975
|
{
|
|
9226
9976
|
"name": "Crons"
|
|
9227
9977
|
},
|
|
9978
|
+
{
|
|
9979
|
+
"name": "Datasets"
|
|
9980
|
+
},
|
|
9228
9981
|
{
|
|
9229
9982
|
"name": "Dlq"
|
|
9230
9983
|
},
|