@agent-os-sdk/client 0.4.4 → 0.4.5

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.
@@ -1910,6 +1910,423 @@
1910
1910
  }
1911
1911
  }
1912
1912
  },
1913
+ "/v1/api/datasets": {
1914
+ "post": {
1915
+ "tags": [
1916
+ "Datasets"
1917
+ ],
1918
+ "summary": "Creates a new evaluation dataset.",
1919
+ "requestBody": {
1920
+ "content": {
1921
+ "application/json": {
1922
+ "schema": {
1923
+ "$ref": "#/components/schemas/CreateDatasetRequest"
1924
+ }
1925
+ },
1926
+ "text/json": {
1927
+ "schema": {
1928
+ "$ref": "#/components/schemas/CreateDatasetRequest"
1929
+ }
1930
+ },
1931
+ "application/*+json": {
1932
+ "schema": {
1933
+ "$ref": "#/components/schemas/CreateDatasetRequest"
1934
+ }
1935
+ }
1936
+ }
1937
+ },
1938
+ "responses": {
1939
+ "201": {
1940
+ "description": "Created",
1941
+ "content": {
1942
+ "application/json": {
1943
+ "schema": {
1944
+ "$ref": "#/components/schemas/DatasetResponse"
1945
+ }
1946
+ }
1947
+ }
1948
+ },
1949
+ "400": {
1950
+ "description": "Bad Request",
1951
+ "content": {
1952
+ "application/json": {
1953
+ "schema": {
1954
+ "$ref": "#/components/schemas/ProblemDetails"
1955
+ }
1956
+ }
1957
+ }
1958
+ },
1959
+ "401": {
1960
+ "description": "Unauthorized",
1961
+ "content": {
1962
+ "application/json": {
1963
+ "schema": {
1964
+ "$ref": "#/components/schemas/ProblemDetails"
1965
+ }
1966
+ }
1967
+ }
1968
+ }
1969
+ }
1970
+ },
1971
+ "get": {
1972
+ "tags": [
1973
+ "Datasets"
1974
+ ],
1975
+ "summary": "Lists datasets in the workspace.",
1976
+ "parameters": [
1977
+ {
1978
+ "name": "skip",
1979
+ "in": "query",
1980
+ "schema": {
1981
+ "type": "integer",
1982
+ "format": "int32",
1983
+ "default": 0
1984
+ }
1985
+ },
1986
+ {
1987
+ "name": "take",
1988
+ "in": "query",
1989
+ "schema": {
1990
+ "type": "integer",
1991
+ "format": "int32",
1992
+ "default": 20
1993
+ }
1994
+ }
1995
+ ],
1996
+ "responses": {
1997
+ "200": {
1998
+ "description": "OK",
1999
+ "content": {
2000
+ "application/json": {
2001
+ "schema": {
2002
+ "type": "array",
2003
+ "items": {
2004
+ "$ref": "#/components/schemas/DatasetResponse"
2005
+ }
2006
+ }
2007
+ }
2008
+ }
2009
+ },
2010
+ "401": {
2011
+ "description": "Unauthorized",
2012
+ "content": {
2013
+ "application/json": {
2014
+ "schema": {
2015
+ "$ref": "#/components/schemas/ProblemDetails"
2016
+ }
2017
+ }
2018
+ }
2019
+ },
2020
+ "400": {
2021
+ "description": "Bad Request",
2022
+ "content": {
2023
+ "application/json": {
2024
+ "schema": {
2025
+ "$ref": "#/components/schemas/ProblemDetails"
2026
+ }
2027
+ }
2028
+ }
2029
+ }
2030
+ }
2031
+ }
2032
+ },
2033
+ "/v1/api/datasets/{id}": {
2034
+ "get": {
2035
+ "tags": [
2036
+ "Datasets"
2037
+ ],
2038
+ "summary": "Gets a specific dataset by ID.",
2039
+ "parameters": [
2040
+ {
2041
+ "name": "id",
2042
+ "in": "path",
2043
+ "required": true,
2044
+ "schema": {
2045
+ "type": "string",
2046
+ "format": "uuid"
2047
+ }
2048
+ }
2049
+ ],
2050
+ "responses": {
2051
+ "200": {
2052
+ "description": "OK",
2053
+ "content": {
2054
+ "application/json": {
2055
+ "schema": {
2056
+ "$ref": "#/components/schemas/DatasetResponse"
2057
+ }
2058
+ }
2059
+ }
2060
+ },
2061
+ "404": {
2062
+ "description": "Not Found",
2063
+ "content": {
2064
+ "application/json": {
2065
+ "schema": {
2066
+ "$ref": "#/components/schemas/ProblemDetails"
2067
+ }
2068
+ }
2069
+ }
2070
+ },
2071
+ "401": {
2072
+ "description": "Unauthorized",
2073
+ "content": {
2074
+ "application/json": {
2075
+ "schema": {
2076
+ "$ref": "#/components/schemas/ProblemDetails"
2077
+ }
2078
+ }
2079
+ }
2080
+ }
2081
+ }
2082
+ },
2083
+ "patch": {
2084
+ "tags": [
2085
+ "Datasets"
2086
+ ],
2087
+ "summary": "Updates a dataset (Partial Update).",
2088
+ "parameters": [
2089
+ {
2090
+ "name": "id",
2091
+ "in": "path",
2092
+ "required": true,
2093
+ "schema": {
2094
+ "type": "string",
2095
+ "format": "uuid"
2096
+ }
2097
+ }
2098
+ ],
2099
+ "requestBody": {
2100
+ "content": {
2101
+ "application/json": {
2102
+ "schema": {
2103
+ "$ref": "#/components/schemas/UpdateDatasetRequest"
2104
+ }
2105
+ },
2106
+ "text/json": {
2107
+ "schema": {
2108
+ "$ref": "#/components/schemas/UpdateDatasetRequest"
2109
+ }
2110
+ },
2111
+ "application/*+json": {
2112
+ "schema": {
2113
+ "$ref": "#/components/schemas/UpdateDatasetRequest"
2114
+ }
2115
+ }
2116
+ }
2117
+ },
2118
+ "responses": {
2119
+ "200": {
2120
+ "description": "OK",
2121
+ "content": {
2122
+ "application/json": {
2123
+ "schema": {
2124
+ "$ref": "#/components/schemas/DatasetResponse"
2125
+ }
2126
+ }
2127
+ }
2128
+ },
2129
+ "404": {
2130
+ "description": "Not Found",
2131
+ "content": {
2132
+ "application/json": {
2133
+ "schema": {
2134
+ "$ref": "#/components/schemas/ProblemDetails"
2135
+ }
2136
+ }
2137
+ }
2138
+ }
2139
+ }
2140
+ },
2141
+ "delete": {
2142
+ "tags": [
2143
+ "Datasets"
2144
+ ],
2145
+ "summary": "Soft deletes a dataset.",
2146
+ "parameters": [
2147
+ {
2148
+ "name": "id",
2149
+ "in": "path",
2150
+ "required": true,
2151
+ "schema": {
2152
+ "type": "string",
2153
+ "format": "uuid"
2154
+ }
2155
+ }
2156
+ ],
2157
+ "responses": {
2158
+ "204": {
2159
+ "description": "No Content"
2160
+ },
2161
+ "404": {
2162
+ "description": "Not Found",
2163
+ "content": {
2164
+ "application/json": {
2165
+ "schema": {
2166
+ "$ref": "#/components/schemas/ProblemDetails"
2167
+ }
2168
+ }
2169
+ }
2170
+ }
2171
+ }
2172
+ }
2173
+ },
2174
+ "/v1/api/datasets/{id}/examples": {
2175
+ "post": {
2176
+ "tags": [
2177
+ "Datasets"
2178
+ ],
2179
+ "summary": "Adds examples to a dataset (Batch).",
2180
+ "parameters": [
2181
+ {
2182
+ "name": "id",
2183
+ "in": "path",
2184
+ "required": true,
2185
+ "schema": {
2186
+ "type": "string",
2187
+ "format": "uuid"
2188
+ }
2189
+ }
2190
+ ],
2191
+ "requestBody": {
2192
+ "content": {
2193
+ "application/json": {
2194
+ "schema": {
2195
+ "$ref": "#/components/schemas/CreateExampleRequest"
2196
+ }
2197
+ },
2198
+ "text/json": {
2199
+ "schema": {
2200
+ "$ref": "#/components/schemas/CreateExampleRequest"
2201
+ }
2202
+ },
2203
+ "application/*+json": {
2204
+ "schema": {
2205
+ "$ref": "#/components/schemas/CreateExampleRequest"
2206
+ }
2207
+ }
2208
+ }
2209
+ },
2210
+ "responses": {
2211
+ "201": {
2212
+ "description": "Created",
2213
+ "content": {
2214
+ "application/json": {
2215
+ "schema": {
2216
+ "type": "array",
2217
+ "items": {
2218
+ "$ref": "#/components/schemas/ExampleResponse"
2219
+ }
2220
+ }
2221
+ }
2222
+ }
2223
+ },
2224
+ "404": {
2225
+ "description": "Not Found",
2226
+ "content": {
2227
+ "application/json": {
2228
+ "schema": {
2229
+ "$ref": "#/components/schemas/ProblemDetails"
2230
+ }
2231
+ }
2232
+ }
2233
+ }
2234
+ }
2235
+ },
2236
+ "get": {
2237
+ "tags": [
2238
+ "Datasets"
2239
+ ],
2240
+ "summary": "Lists examples for a dataset.",
2241
+ "parameters": [
2242
+ {
2243
+ "name": "id",
2244
+ "in": "path",
2245
+ "required": true,
2246
+ "schema": {
2247
+ "type": "string",
2248
+ "format": "uuid"
2249
+ }
2250
+ },
2251
+ {
2252
+ "name": "skip",
2253
+ "in": "query",
2254
+ "schema": {
2255
+ "type": "integer",
2256
+ "format": "int32",
2257
+ "default": 0
2258
+ }
2259
+ },
2260
+ {
2261
+ "name": "take",
2262
+ "in": "query",
2263
+ "schema": {
2264
+ "type": "integer",
2265
+ "format": "int32",
2266
+ "default": 50
2267
+ }
2268
+ }
2269
+ ],
2270
+ "responses": {
2271
+ "200": {
2272
+ "description": "OK",
2273
+ "content": {
2274
+ "application/json": {
2275
+ "schema": {
2276
+ "type": "array",
2277
+ "items": {
2278
+ "$ref": "#/components/schemas/ExampleResponse"
2279
+ }
2280
+ }
2281
+ }
2282
+ }
2283
+ }
2284
+ }
2285
+ }
2286
+ },
2287
+ "/v1/api/datasets/{id}/examples/{exampleId}": {
2288
+ "delete": {
2289
+ "tags": [
2290
+ "Datasets"
2291
+ ],
2292
+ "summary": "Deletes a specific example.",
2293
+ "parameters": [
2294
+ {
2295
+ "name": "id",
2296
+ "in": "path",
2297
+ "required": true,
2298
+ "schema": {
2299
+ "type": "string",
2300
+ "format": "uuid"
2301
+ }
2302
+ },
2303
+ {
2304
+ "name": "exampleId",
2305
+ "in": "path",
2306
+ "required": true,
2307
+ "schema": {
2308
+ "type": "string",
2309
+ "format": "uuid"
2310
+ }
2311
+ }
2312
+ ],
2313
+ "responses": {
2314
+ "204": {
2315
+ "description": "No Content"
2316
+ },
2317
+ "404": {
2318
+ "description": "Not Found",
2319
+ "content": {
2320
+ "application/json": {
2321
+ "schema": {
2322
+ "$ref": "#/components/schemas/ProblemDetails"
2323
+ }
2324
+ }
2325
+ }
2326
+ }
2327
+ }
2328
+ }
2329
+ },
1913
2330
  "/v1/api/runs/dlq": {
1914
2331
  "get": {
1915
2332
  "tags": [
@@ -6319,6 +6736,102 @@
6319
6736
  }
6320
6737
  }
6321
6738
  }
6739
+ },
6740
+ "get": {
6741
+ "tags": [
6742
+ "VectorStores"
6743
+ ],
6744
+ "summary": "List files in a vector store.",
6745
+ "parameters": [
6746
+ {
6747
+ "name": "vectorStoreId",
6748
+ "in": "path",
6749
+ "required": true,
6750
+ "schema": {
6751
+ "type": "string",
6752
+ "format": "uuid"
6753
+ }
6754
+ },
6755
+ {
6756
+ "name": "skip",
6757
+ "in": "query",
6758
+ "schema": {
6759
+ "type": "integer",
6760
+ "format": "int32",
6761
+ "default": 0
6762
+ }
6763
+ },
6764
+ {
6765
+ "name": "take",
6766
+ "in": "query",
6767
+ "schema": {
6768
+ "type": "integer",
6769
+ "format": "int32",
6770
+ "default": 50
6771
+ }
6772
+ }
6773
+ ],
6774
+ "responses": {
6775
+ "200": {
6776
+ "description": "OK",
6777
+ "content": {
6778
+ "application/json": {
6779
+ "schema": {
6780
+ "type": "array",
6781
+ "items": {
6782
+ "$ref": "#/components/schemas/VectorStoreFileResponse"
6783
+ }
6784
+ }
6785
+ }
6786
+ }
6787
+ }
6788
+ }
6789
+ }
6790
+ },
6791
+ "/v1/api/vector-stores/{vectorStoreId}/files/{fileId}": {
6792
+ "delete": {
6793
+ "tags": [
6794
+ "VectorStores"
6795
+ ],
6796
+ "summary": "Detach a file from a vector store.",
6797
+ "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).",
6798
+ "parameters": [
6799
+ {
6800
+ "name": "vectorStoreId",
6801
+ "in": "path",
6802
+ "description": "Vector Store ID",
6803
+ "required": true,
6804
+ "schema": {
6805
+ "type": "string",
6806
+ "format": "uuid"
6807
+ }
6808
+ },
6809
+ {
6810
+ "name": "fileId",
6811
+ "in": "path",
6812
+ "description": "The StoredFile ID (not the join record ID)",
6813
+ "required": true,
6814
+ "schema": {
6815
+ "type": "string",
6816
+ "format": "uuid"
6817
+ }
6818
+ }
6819
+ ],
6820
+ "responses": {
6821
+ "204": {
6822
+ "description": "No Content"
6823
+ },
6824
+ "404": {
6825
+ "description": "Not Found",
6826
+ "content": {
6827
+ "application/json": {
6828
+ "schema": {
6829
+ "$ref": "#/components/schemas/ProblemDetails"
6830
+ }
6831
+ }
6832
+ }
6833
+ }
6834
+ }
6322
6835
  }
6323
6836
  },
6324
6837
  "/v1/api/vector-stores/{vectorStoreId}/query": {
@@ -7274,6 +7787,19 @@
7274
7787
  },
7275
7788
  "additionalProperties": false
7276
7789
  },
7790
+ "CreateExampleRequest": {
7791
+ "type": "object",
7792
+ "properties": {
7793
+ "examples": {
7794
+ "type": "array",
7795
+ "items": {
7796
+ "$ref": "#/components/schemas/ExampleDto"
7797
+ },
7798
+ "nullable": true
7799
+ }
7800
+ },
7801
+ "additionalProperties": false
7802
+ },
7277
7803
  "CreateExperimentRequest": {
7278
7804
  "type": "object",
7279
7805
  "properties": {
@@ -7580,6 +8106,41 @@
7580
8106
  },
7581
8107
  "additionalProperties": false
7582
8108
  },
8109
+ "DatasetResponse": {
8110
+ "type": "object",
8111
+ "properties": {
8112
+ "id": {
8113
+ "type": "string",
8114
+ "format": "uuid"
8115
+ },
8116
+ "name": {
8117
+ "type": "string",
8118
+ "nullable": true
8119
+ },
8120
+ "description": {
8121
+ "type": "string",
8122
+ "nullable": true
8123
+ },
8124
+ "agentId": {
8125
+ "type": "string",
8126
+ "format": "uuid",
8127
+ "nullable": true
8128
+ },
8129
+ "exampleCount": {
8130
+ "type": "integer",
8131
+ "format": "int32"
8132
+ },
8133
+ "createdAt": {
8134
+ "type": "string",
8135
+ "format": "date-time"
8136
+ },
8137
+ "updatedAt": {
8138
+ "type": "string",
8139
+ "format": "date-time"
8140
+ }
8141
+ },
8142
+ "additionalProperties": false
8143
+ },
7583
8144
  "DryRunRequest": {
7584
8145
  "type": "object",
7585
8146
  "properties": {
@@ -7630,6 +8191,44 @@
7630
8191
  },
7631
8192
  "additionalProperties": false
7632
8193
  },
8194
+ "ExampleDto": {
8195
+ "type": "object",
8196
+ "properties": {
8197
+ "input": { },
8198
+ "expectedOutput": {
8199
+ "nullable": true
8200
+ },
8201
+ "metadata": {
8202
+ "nullable": true
8203
+ }
8204
+ },
8205
+ "additionalProperties": false
8206
+ },
8207
+ "ExampleResponse": {
8208
+ "type": "object",
8209
+ "properties": {
8210
+ "id": {
8211
+ "type": "string",
8212
+ "format": "uuid"
8213
+ },
8214
+ "datasetId": {
8215
+ "type": "string",
8216
+ "format": "uuid"
8217
+ },
8218
+ "input": { },
8219
+ "expectedOutput": {
8220
+ "nullable": true
8221
+ },
8222
+ "metadata": {
8223
+ "nullable": true
8224
+ },
8225
+ "createdAt": {
8226
+ "type": "string",
8227
+ "format": "date-time"
8228
+ }
8229
+ },
8230
+ "additionalProperties": false
8231
+ },
7633
8232
  "FileConfirmResponse": {
7634
8233
  "type": "object",
7635
8234
  "properties": {
@@ -8814,6 +9413,25 @@
8814
9413
  },
8815
9414
  "additionalProperties": false
8816
9415
  },
9416
+ "UpdateDatasetRequest": {
9417
+ "type": "object",
9418
+ "properties": {
9419
+ "name": {
9420
+ "type": "string",
9421
+ "nullable": true
9422
+ },
9423
+ "description": {
9424
+ "type": "string",
9425
+ "nullable": true
9426
+ },
9427
+ "agentId": {
9428
+ "type": "string",
9429
+ "format": "uuid",
9430
+ "nullable": true
9431
+ }
9432
+ },
9433
+ "additionalProperties": false
9434
+ },
8817
9435
  "UpdateMemberRequest": {
8818
9436
  "type": "object",
8819
9437
  "properties": {
@@ -9225,6 +9843,9 @@
9225
9843
  {
9226
9844
  "name": "Crons"
9227
9845
  },
9846
+ {
9847
+ "name": "Datasets"
9848
+ },
9228
9849
  {
9229
9850
  "name": "Dlq"
9230
9851
  },