llama-stack-client 0.2.16 → 0.2.17-rc1

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.
Files changed (152) hide show
  1. package/LICENSE +4 -198
  2. package/index.d.mts +2 -2
  3. package/index.d.ts +2 -2
  4. package/index.d.ts.map +1 -1
  5. package/index.js.map +1 -1
  6. package/index.mjs +1 -1
  7. package/index.mjs.map +1 -1
  8. package/package.json +2 -6
  9. package/resources/agents/agents.d.ts +29 -2
  10. package/resources/agents/agents.d.ts.map +1 -1
  11. package/resources/agents/agents.js.map +1 -1
  12. package/resources/agents/agents.mjs.map +1 -1
  13. package/resources/agents/session.d.ts +18 -0
  14. package/resources/agents/session.d.ts.map +1 -1
  15. package/resources/agents/steps.d.ts +4 -1
  16. package/resources/agents/steps.d.ts.map +1 -1
  17. package/resources/agents/turn.d.ts +113 -8
  18. package/resources/agents/turn.d.ts.map +1 -1
  19. package/resources/benchmarks.d.ts +15 -0
  20. package/resources/benchmarks.d.ts.map +1 -1
  21. package/resources/chat/chat.d.ts +24 -0
  22. package/resources/chat/chat.d.ts.map +1 -1
  23. package/resources/chat/chat.js.map +1 -1
  24. package/resources/chat/chat.mjs.map +1 -1
  25. package/resources/chat/completions.d.ts +648 -6
  26. package/resources/chat/completions.d.ts.map +1 -1
  27. package/resources/datasets.d.ts +42 -6
  28. package/resources/datasets.d.ts.map +1 -1
  29. package/resources/eval/eval.d.ts +9 -0
  30. package/resources/eval/eval.d.ts.map +1 -1
  31. package/resources/eval/eval.js.map +1 -1
  32. package/resources/eval/eval.mjs.map +1 -1
  33. package/resources/files.d.ts +9 -0
  34. package/resources/files.d.ts.map +1 -1
  35. package/resources/index.d.ts +1 -1
  36. package/resources/index.d.ts.map +1 -1
  37. package/resources/index.js.map +1 -1
  38. package/resources/index.mjs +1 -1
  39. package/resources/index.mjs.map +1 -1
  40. package/resources/inference.d.ts +36 -0
  41. package/resources/inference.d.ts.map +1 -1
  42. package/resources/inspect.d.ts +45 -1
  43. package/resources/inspect.d.ts.map +1 -1
  44. package/resources/inspect.js +1 -1
  45. package/resources/inspect.mjs +1 -1
  46. package/resources/models.d.ts +21 -0
  47. package/resources/models.d.ts.map +1 -1
  48. package/resources/post-training/job.d.ts +95 -2
  49. package/resources/post-training/job.d.ts.map +1 -1
  50. package/resources/post-training/post-training.d.ts +206 -0
  51. package/resources/post-training/post-training.d.ts.map +1 -1
  52. package/resources/post-training/post-training.js.map +1 -1
  53. package/resources/post-training/post-training.mjs.map +1 -1
  54. package/resources/providers.d.ts +9 -0
  55. package/resources/providers.d.ts.map +1 -1
  56. package/resources/responses/input-items.d.ts +114 -0
  57. package/resources/responses/input-items.d.ts.map +1 -1
  58. package/resources/responses/responses.d.ts +1265 -12
  59. package/resources/responses/responses.d.ts.map +1 -1
  60. package/resources/responses/responses.js.map +1 -1
  61. package/resources/responses/responses.mjs.map +1 -1
  62. package/resources/routes.d.ts +10 -1
  63. package/resources/routes.d.ts.map +1 -1
  64. package/resources/routes.js +1 -1
  65. package/resources/routes.mjs +1 -1
  66. package/resources/safety.d.ts +72 -1
  67. package/resources/safety.d.ts.map +1 -1
  68. package/resources/safety.js +6 -0
  69. package/resources/safety.js.map +1 -1
  70. package/resources/safety.mjs +6 -0
  71. package/resources/safety.mjs.map +1 -1
  72. package/resources/scoring-functions.d.ts +51 -0
  73. package/resources/scoring-functions.d.ts.map +1 -1
  74. package/resources/scoring.d.ts +9 -0
  75. package/resources/scoring.d.ts.map +1 -1
  76. package/resources/shared.d.ts +209 -3
  77. package/resources/shared.d.ts.map +1 -1
  78. package/resources/shields.d.ts +7 -1
  79. package/resources/shields.d.ts.map +1 -1
  80. package/resources/synthetic-data-generation.d.ts +18 -1
  81. package/resources/synthetic-data-generation.d.ts.map +1 -1
  82. package/resources/synthetic-data-generation.js +3 -0
  83. package/resources/synthetic-data-generation.js.map +1 -1
  84. package/resources/synthetic-data-generation.mjs +3 -0
  85. package/resources/synthetic-data-generation.mjs.map +1 -1
  86. package/resources/telemetry.d.ts +214 -0
  87. package/resources/telemetry.d.ts.map +1 -1
  88. package/resources/tool-runtime/rag-tool.d.ts +16 -4
  89. package/resources/tool-runtime/rag-tool.d.ts.map +1 -1
  90. package/resources/tool-runtime/rag-tool.js +2 -2
  91. package/resources/tool-runtime/rag-tool.mjs +2 -2
  92. package/resources/tool-runtime/tool-runtime.d.ts +52 -1
  93. package/resources/tool-runtime/tool-runtime.d.ts.map +1 -1
  94. package/resources/tool-runtime/tool-runtime.js.map +1 -1
  95. package/resources/tool-runtime/tool-runtime.mjs.map +1 -1
  96. package/resources/toolgroups.d.ts +30 -0
  97. package/resources/toolgroups.d.ts.map +1 -1
  98. package/resources/tools.d.ts +45 -0
  99. package/resources/tools.d.ts.map +1 -1
  100. package/resources/vector-dbs.d.ts +45 -0
  101. package/resources/vector-dbs.d.ts.map +1 -1
  102. package/resources/vector-io.d.ts +9 -0
  103. package/resources/vector-io.d.ts.map +1 -1
  104. package/resources/vector-stores/files.d.ts +149 -1
  105. package/resources/vector-stores/files.d.ts.map +1 -1
  106. package/resources/vector-stores/vector-stores.d.ts +121 -1
  107. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  108. package/resources/vector-stores/vector-stores.js.map +1 -1
  109. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  110. package/src/index.ts +9 -1
  111. package/src/resources/agents/agents.ts +29 -2
  112. package/src/resources/agents/session.ts +18 -0
  113. package/src/resources/agents/steps.ts +4 -1
  114. package/src/resources/agents/turn.ts +113 -8
  115. package/src/resources/benchmarks.ts +15 -0
  116. package/src/resources/chat/chat.ts +24 -0
  117. package/src/resources/chat/completions.ts +678 -0
  118. package/src/resources/datasets.ts +42 -6
  119. package/src/resources/eval/eval.ts +9 -0
  120. package/src/resources/files.ts +9 -0
  121. package/src/resources/index.ts +7 -1
  122. package/src/resources/inference.ts +36 -0
  123. package/src/resources/inspect.ts +45 -1
  124. package/src/resources/models.ts +21 -0
  125. package/src/resources/post-training/job.ts +95 -2
  126. package/src/resources/post-training/post-training.ts +206 -0
  127. package/src/resources/providers.ts +9 -0
  128. package/src/resources/responses/input-items.ts +114 -0
  129. package/src/resources/responses/responses.ts +1265 -12
  130. package/src/resources/routes.ts +10 -1
  131. package/src/resources/safety.ts +83 -1
  132. package/src/resources/scoring-functions.ts +51 -0
  133. package/src/resources/scoring.ts +9 -0
  134. package/src/resources/shared.ts +209 -3
  135. package/src/resources/shields.ts +7 -1
  136. package/src/resources/synthetic-data-generation.ts +18 -1
  137. package/src/resources/telemetry.ts +214 -0
  138. package/src/resources/tool-runtime/rag-tool.ts +16 -4
  139. package/src/resources/tool-runtime/tool-runtime.ts +52 -1
  140. package/src/resources/toolgroups.ts +30 -0
  141. package/src/resources/tools.ts +45 -0
  142. package/src/resources/vector-dbs.ts +45 -0
  143. package/src/resources/vector-io.ts +9 -0
  144. package/src/resources/vector-stores/files.ts +149 -1
  145. package/src/resources/vector-stores/vector-stores.ts +121 -1
  146. package/src/version.ts +1 -1
  147. package/version.d.ts +1 -1
  148. package/version.d.ts.map +1 -1
  149. package/version.js +1 -1
  150. package/version.js.map +1 -1
  151. package/version.mjs +1 -1
  152. package/version.mjs.map +1 -1
@@ -30,42 +30,87 @@ export class Tools extends APIResource {
30
30
  }
31
31
  }
32
32
 
33
+ /**
34
+ * Response containing a list of tools.
35
+ */
33
36
  export interface ListToolsResponse {
37
+ /**
38
+ * List of tools
39
+ */
34
40
  data: ToolListResponse;
35
41
  }
36
42
 
43
+ /**
44
+ * A tool that can be invoked by agents.
45
+ */
37
46
  export interface Tool {
47
+ /**
48
+ * Human-readable description of what the tool does
49
+ */
38
50
  description: string;
39
51
 
40
52
  identifier: string;
41
53
 
54
+ /**
55
+ * List of parameters this tool accepts
56
+ */
42
57
  parameters: Array<Tool.Parameter>;
43
58
 
44
59
  provider_id: string;
45
60
 
61
+ /**
62
+ * ID of the tool group this tool belongs to
63
+ */
46
64
  toolgroup_id: string;
47
65
 
66
+ /**
67
+ * Type of resource, always 'tool'
68
+ */
48
69
  type: 'tool';
49
70
 
71
+ /**
72
+ * (Optional) Additional metadata about the tool
73
+ */
50
74
  metadata?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
51
75
 
52
76
  provider_resource_id?: string;
53
77
  }
54
78
 
55
79
  export namespace Tool {
80
+ /**
81
+ * Parameter definition for a tool.
82
+ */
56
83
  export interface Parameter {
84
+ /**
85
+ * Human-readable description of what the parameter does
86
+ */
57
87
  description: string;
58
88
 
89
+ /**
90
+ * Name of the parameter
91
+ */
59
92
  name: string;
60
93
 
94
+ /**
95
+ * Type of the parameter (e.g., string, integer)
96
+ */
61
97
  parameter_type: string;
62
98
 
99
+ /**
100
+ * Whether this parameter is required for tool invocation
101
+ */
63
102
  required: boolean;
64
103
 
104
+ /**
105
+ * (Optional) Default value for the parameter if not provided
106
+ */
65
107
  default?: boolean | number | string | Array<unknown> | unknown | null;
66
108
  }
67
109
  }
68
110
 
111
+ /**
112
+ * List of tools
113
+ */
69
114
  export type ToolListResponse = Array<Tool>;
70
115
 
71
116
  export interface ToolListParams {
@@ -41,19 +41,37 @@ export class VectorDBs extends APIResource {
41
41
  }
42
42
  }
43
43
 
44
+ /**
45
+ * Response from listing vector databases.
46
+ */
44
47
  export interface ListVectorDBsResponse {
48
+ /**
49
+ * List of vector databases
50
+ */
45
51
  data: VectorDBListResponse;
46
52
  }
47
53
 
54
+ /**
55
+ * Vector database resource for storing and querying vector embeddings.
56
+ */
48
57
  export interface VectorDBRetrieveResponse {
58
+ /**
59
+ * Dimension of the embedding vectors
60
+ */
49
61
  embedding_dimension: number;
50
62
 
63
+ /**
64
+ * Name of the embedding model to use for vector generation
65
+ */
51
66
  embedding_model: string;
52
67
 
53
68
  identifier: string;
54
69
 
55
70
  provider_id: string;
56
71
 
72
+ /**
73
+ * Type of resource, always 'vector_db' for vector databases
74
+ */
57
75
  type: 'vector_db';
58
76
 
59
77
  provider_resource_id?: string;
@@ -61,18 +79,33 @@ export interface VectorDBRetrieveResponse {
61
79
  vector_db_name?: string;
62
80
  }
63
81
 
82
+ /**
83
+ * List of vector databases
84
+ */
64
85
  export type VectorDBListResponse = Array<VectorDBListResponse.VectorDBListResponseItem>;
65
86
 
66
87
  export namespace VectorDBListResponse {
88
+ /**
89
+ * Vector database resource for storing and querying vector embeddings.
90
+ */
67
91
  export interface VectorDBListResponseItem {
92
+ /**
93
+ * Dimension of the embedding vectors
94
+ */
68
95
  embedding_dimension: number;
69
96
 
97
+ /**
98
+ * Name of the embedding model to use for vector generation
99
+ */
70
100
  embedding_model: string;
71
101
 
72
102
  identifier: string;
73
103
 
74
104
  provider_id: string;
75
105
 
106
+ /**
107
+ * Type of resource, always 'vector_db' for vector databases
108
+ */
76
109
  type: 'vector_db';
77
110
 
78
111
  provider_resource_id?: string;
@@ -81,15 +114,27 @@ export namespace VectorDBListResponse {
81
114
  }
82
115
  }
83
116
 
117
+ /**
118
+ * Vector database resource for storing and querying vector embeddings.
119
+ */
84
120
  export interface VectorDBRegisterResponse {
121
+ /**
122
+ * Dimension of the embedding vectors
123
+ */
85
124
  embedding_dimension: number;
86
125
 
126
+ /**
127
+ * Name of the embedding model to use for vector generation
128
+ */
87
129
  embedding_model: string;
88
130
 
89
131
  identifier: string;
90
132
 
91
133
  provider_id: string;
92
134
 
135
+ /**
136
+ * Type of resource, always 'vector_db' for vector databases
137
+ */
93
138
  type: 'vector_db';
94
139
 
95
140
  provider_resource_id?: string;
@@ -24,9 +24,18 @@ export class VectorIo extends APIResource {
24
24
  }
25
25
  }
26
26
 
27
+ /**
28
+ * Response from querying chunks in a vector database.
29
+ */
27
30
  export interface QueryChunksResponse {
31
+ /**
32
+ * List of content chunks returned from the query
33
+ */
28
34
  chunks: Array<QueryChunksResponse.Chunk>;
29
35
 
36
+ /**
37
+ * Relevance scores corresponding to each returned chunk
38
+ */
30
39
  scores: Array<number>;
31
40
  }
32
41
 
@@ -89,65 +89,140 @@ export class Files extends APIResource {
89
89
  * OpenAI Vector Store File object.
90
90
  */
91
91
  export interface VectorStoreFile {
92
+ /**
93
+ * Unique identifier for the file
94
+ */
92
95
  id: string;
93
96
 
97
+ /**
98
+ * Key-value attributes associated with the file
99
+ */
94
100
  attributes: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
95
101
 
102
+ /**
103
+ * Strategy used for splitting the file into chunks
104
+ */
96
105
  chunking_strategy:
97
106
  | VectorStoreFile.VectorStoreChunkingStrategyAuto
98
107
  | VectorStoreFile.VectorStoreChunkingStrategyStatic;
99
108
 
109
+ /**
110
+ * Timestamp when the file was added to the vector store
111
+ */
100
112
  created_at: number;
101
113
 
114
+ /**
115
+ * Object type identifier, always "vector_store.file"
116
+ */
102
117
  object: string;
103
118
 
119
+ /**
120
+ * Current processing status of the file
121
+ */
104
122
  status: 'completed' | 'in_progress' | 'cancelled' | 'failed';
105
123
 
124
+ /**
125
+ * Storage space used by this file in bytes
126
+ */
106
127
  usage_bytes: number;
107
128
 
129
+ /**
130
+ * ID of the vector store containing this file
131
+ */
108
132
  vector_store_id: string;
109
133
 
134
+ /**
135
+ * (Optional) Error information if file processing failed
136
+ */
110
137
  last_error?: VectorStoreFile.LastError;
111
138
  }
112
139
 
113
140
  export namespace VectorStoreFile {
141
+ /**
142
+ * Automatic chunking strategy for vector store files.
143
+ */
114
144
  export interface VectorStoreChunkingStrategyAuto {
145
+ /**
146
+ * Strategy type, always "auto" for automatic chunking
147
+ */
115
148
  type: 'auto';
116
149
  }
117
150
 
151
+ /**
152
+ * Static chunking strategy with configurable parameters.
153
+ */
118
154
  export interface VectorStoreChunkingStrategyStatic {
155
+ /**
156
+ * Configuration parameters for the static chunking strategy
157
+ */
119
158
  static: VectorStoreChunkingStrategyStatic.Static;
120
159
 
160
+ /**
161
+ * Strategy type, always "static" for static chunking
162
+ */
121
163
  type: 'static';
122
164
  }
123
165
 
124
166
  export namespace VectorStoreChunkingStrategyStatic {
167
+ /**
168
+ * Configuration parameters for the static chunking strategy
169
+ */
125
170
  export interface Static {
171
+ /**
172
+ * Number of tokens to overlap between adjacent chunks
173
+ */
126
174
  chunk_overlap_tokens: number;
127
175
 
176
+ /**
177
+ * Maximum number of tokens per chunk, must be between 100 and 4096
178
+ */
128
179
  max_chunk_size_tokens: number;
129
180
  }
130
181
  }
131
182
 
183
+ /**
184
+ * (Optional) Error information if file processing failed
185
+ */
132
186
  export interface LastError {
187
+ /**
188
+ * Error code indicating the type of failure
189
+ */
133
190
  code: 'server_error' | 'rate_limit_exceeded';
134
191
 
192
+ /**
193
+ * Human-readable error message describing the failure
194
+ */
135
195
  message: string;
136
196
  }
137
197
  }
138
198
 
139
199
  /**
140
- * Response from listing vector stores.
200
+ * Response from listing files in a vector store.
141
201
  */
142
202
  export interface FileListResponse {
203
+ /**
204
+ * List of vector store file objects
205
+ */
143
206
  data: Array<VectorStoreFile>;
144
207
 
208
+ /**
209
+ * Whether there are more files available beyond this page
210
+ */
145
211
  has_more: boolean;
146
212
 
213
+ /**
214
+ * Object type identifier, always "list"
215
+ */
147
216
  object: string;
148
217
 
218
+ /**
219
+ * (Optional) ID of the first file in the list for pagination
220
+ */
149
221
  first_id?: string;
150
222
 
223
+ /**
224
+ * (Optional) ID of the last file in the list for pagination
225
+ */
151
226
  last_id?: string;
152
227
  }
153
228
 
@@ -155,10 +230,19 @@ export interface FileListResponse {
155
230
  * Response from deleting a vector store file.
156
231
  */
157
232
  export interface FileDeleteResponse {
233
+ /**
234
+ * Unique identifier of the deleted file
235
+ */
158
236
  id: string;
159
237
 
238
+ /**
239
+ * Whether the deletion operation was successful
240
+ */
160
241
  deleted: boolean;
161
242
 
243
+ /**
244
+ * Object type identifier for the deletion response
245
+ */
162
246
  object: string;
163
247
  }
164
248
 
@@ -166,19 +250,40 @@ export interface FileDeleteResponse {
166
250
  * Response from retrieving the contents of a vector store file.
167
251
  */
168
252
  export interface FileContentResponse {
253
+ /**
254
+ * Key-value attributes associated with the file
255
+ */
169
256
  attributes: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
170
257
 
258
+ /**
259
+ * List of content items from the file
260
+ */
171
261
  content: Array<FileContentResponse.Content>;
172
262
 
263
+ /**
264
+ * Unique identifier for the file
265
+ */
173
266
  file_id: string;
174
267
 
268
+ /**
269
+ * Name of the file
270
+ */
175
271
  filename: string;
176
272
  }
177
273
 
178
274
  export namespace FileContentResponse {
275
+ /**
276
+ * Content item from a vector store file or search result.
277
+ */
179
278
  export interface Content {
279
+ /**
280
+ * The actual text content
281
+ */
180
282
  text: string;
181
283
 
284
+ /**
285
+ * Content type, currently only "text" is supported
286
+ */
182
287
  type: 'text';
183
288
  }
184
289
  }
@@ -203,20 +308,44 @@ export interface FileCreateParams {
203
308
  }
204
309
 
205
310
  export namespace FileCreateParams {
311
+ /**
312
+ * Automatic chunking strategy for vector store files.
313
+ */
206
314
  export interface VectorStoreChunkingStrategyAuto {
315
+ /**
316
+ * Strategy type, always "auto" for automatic chunking
317
+ */
207
318
  type: 'auto';
208
319
  }
209
320
 
321
+ /**
322
+ * Static chunking strategy with configurable parameters.
323
+ */
210
324
  export interface VectorStoreChunkingStrategyStatic {
325
+ /**
326
+ * Configuration parameters for the static chunking strategy
327
+ */
211
328
  static: VectorStoreChunkingStrategyStatic.Static;
212
329
 
330
+ /**
331
+ * Strategy type, always "static" for static chunking
332
+ */
213
333
  type: 'static';
214
334
  }
215
335
 
216
336
  export namespace VectorStoreChunkingStrategyStatic {
337
+ /**
338
+ * Configuration parameters for the static chunking strategy
339
+ */
217
340
  export interface Static {
341
+ /**
342
+ * Number of tokens to overlap between adjacent chunks
343
+ */
218
344
  chunk_overlap_tokens: number;
219
345
 
346
+ /**
347
+ * Maximum number of tokens per chunk, must be between 100 and 4096
348
+ */
220
349
  max_chunk_size_tokens: number;
221
350
  }
222
351
  }
@@ -230,14 +359,33 @@ export interface FileUpdateParams {
230
359
  }
231
360
 
232
361
  export interface FileListParams {
362
+ /**
363
+ * (Optional) A cursor for use in pagination. `after` is an object ID that defines
364
+ * your place in the list.
365
+ */
233
366
  after?: string;
234
367
 
368
+ /**
369
+ * (Optional) A cursor for use in pagination. `before` is an object ID that defines
370
+ * your place in the list.
371
+ */
235
372
  before?: string;
236
373
 
374
+ /**
375
+ * (Optional) Filter by file status to only return files with the specified status.
376
+ */
237
377
  filter?: 'completed' | 'in_progress' | 'cancelled' | 'failed';
238
378
 
379
+ /**
380
+ * (Optional) A limit on the number of objects to be returned. Limit can range
381
+ * between 1 and 100, and the default is 20.
382
+ */
239
383
  limit?: number;
240
384
 
385
+ /**
386
+ * (Optional) Sort order by the `created_at` timestamp of the objects. `asc` for
387
+ * ascending order and `desc` for descending order.
388
+ */
241
389
  order?: string;
242
390
  }
243
391
 
@@ -85,14 +85,29 @@ export class VectorStores extends APIResource {
85
85
  * Response from listing vector stores.
86
86
  */
87
87
  export interface ListVectorStoresResponse {
88
+ /**
89
+ * List of vector store objects
90
+ */
88
91
  data: Array<VectorStore>;
89
92
 
93
+ /**
94
+ * Whether there are more vector stores available beyond this page
95
+ */
90
96
  has_more: boolean;
91
97
 
98
+ /**
99
+ * Object type identifier, always "list"
100
+ */
92
101
  object: string;
93
102
 
103
+ /**
104
+ * (Optional) ID of the first vector store in the list for pagination
105
+ */
94
106
  first_id?: string;
95
107
 
108
+ /**
109
+ * (Optional) ID of the last vector store in the list for pagination
110
+ */
96
111
  last_id?: string;
97
112
  }
98
113
 
@@ -100,39 +115,90 @@ export interface ListVectorStoresResponse {
100
115
  * OpenAI Vector Store object.
101
116
  */
102
117
  export interface VectorStore {
118
+ /**
119
+ * Unique identifier for the vector store
120
+ */
103
121
  id: string;
104
122
 
123
+ /**
124
+ * Timestamp when the vector store was created
125
+ */
105
126
  created_at: number;
106
127
 
128
+ /**
129
+ * File processing status counts for the vector store
130
+ */
107
131
  file_counts: VectorStore.FileCounts;
108
132
 
133
+ /**
134
+ * Set of key-value pairs that can be attached to the vector store
135
+ */
109
136
  metadata: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
110
137
 
138
+ /**
139
+ * Object type identifier, always "vector_store"
140
+ */
111
141
  object: string;
112
142
 
143
+ /**
144
+ * Current status of the vector store
145
+ */
113
146
  status: string;
114
147
 
148
+ /**
149
+ * Storage space used by the vector store in bytes
150
+ */
115
151
  usage_bytes: number;
116
152
 
153
+ /**
154
+ * (Optional) Expiration policy for the vector store
155
+ */
117
156
  expires_after?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
118
157
 
158
+ /**
159
+ * (Optional) Timestamp when the vector store will expire
160
+ */
119
161
  expires_at?: number;
120
162
 
163
+ /**
164
+ * (Optional) Timestamp of last activity on the vector store
165
+ */
121
166
  last_active_at?: number;
122
167
 
168
+ /**
169
+ * (Optional) Name of the vector store
170
+ */
123
171
  name?: string;
124
172
  }
125
173
 
126
174
  export namespace VectorStore {
175
+ /**
176
+ * File processing status counts for the vector store
177
+ */
127
178
  export interface FileCounts {
179
+ /**
180
+ * Number of files that had their processing cancelled
181
+ */
128
182
  cancelled: number;
129
183
 
184
+ /**
185
+ * Number of files that have been successfully processed
186
+ */
130
187
  completed: number;
131
188
 
189
+ /**
190
+ * Number of files that failed to process
191
+ */
132
192
  failed: number;
133
193
 
194
+ /**
195
+ * Number of files currently being processed
196
+ */
134
197
  in_progress: number;
135
198
 
199
+ /**
200
+ * Total number of files in the vector store
201
+ */
136
202
  total: number;
137
203
  }
138
204
  }
@@ -141,25 +207,49 @@ export namespace VectorStore {
141
207
  * Response from deleting a vector store.
142
208
  */
143
209
  export interface VectorStoreDeleteResponse {
210
+ /**
211
+ * Unique identifier of the deleted vector store
212
+ */
144
213
  id: string;
145
214
 
215
+ /**
216
+ * Whether the deletion operation was successful
217
+ */
146
218
  deleted: boolean;
147
219
 
220
+ /**
221
+ * Object type identifier for the deletion response
222
+ */
148
223
  object: string;
149
224
  }
150
225
 
151
226
  /**
152
- * Response from searching a vector store.
227
+ * Paginated response from searching a vector store.
153
228
  */
154
229
  export interface VectorStoreSearchResponse {
230
+ /**
231
+ * List of search result objects
232
+ */
155
233
  data: Array<VectorStoreSearchResponse.Data>;
156
234
 
235
+ /**
236
+ * Whether there are more results available beyond this page
237
+ */
157
238
  has_more: boolean;
158
239
 
240
+ /**
241
+ * Object type identifier for the search results page
242
+ */
159
243
  object: string;
160
244
 
245
+ /**
246
+ * The original search query that was executed
247
+ */
161
248
  search_query: string;
162
249
 
250
+ /**
251
+ * (Optional) Token for retrieving the next page of results
252
+ */
163
253
  next_page?: string;
164
254
  }
165
255
 
@@ -168,21 +258,45 @@ export namespace VectorStoreSearchResponse {
168
258
  * Response from searching a vector store.
169
259
  */
170
260
  export interface Data {
261
+ /**
262
+ * List of content items matching the search query
263
+ */
171
264
  content: Array<Data.Content>;
172
265
 
266
+ /**
267
+ * Unique identifier of the file containing the result
268
+ */
173
269
  file_id: string;
174
270
 
271
+ /**
272
+ * Name of the file containing the result
273
+ */
175
274
  filename: string;
176
275
 
276
+ /**
277
+ * Relevance score for this search result
278
+ */
177
279
  score: number;
178
280
 
281
+ /**
282
+ * (Optional) Key-value attributes associated with the file
283
+ */
179
284
  attributes?: { [key: string]: string | number | boolean };
180
285
  }
181
286
 
182
287
  export namespace Data {
288
+ /**
289
+ * Content item from a vector store file or search result.
290
+ */
183
291
  export interface Content {
292
+ /**
293
+ * The actual text content
294
+ */
184
295
  text: string;
185
296
 
297
+ /**
298
+ * Content type, currently only "text" is supported
299
+ */
186
300
  type: 'text';
187
301
  }
188
302
  }
@@ -312,8 +426,14 @@ export namespace VectorStoreSearchParams {
312
426
  * Ranking options for fine-tuning the search results.
313
427
  */
314
428
  export interface RankingOptions {
429
+ /**
430
+ * (Optional) Name of the ranking algorithm to use
431
+ */
315
432
  ranker?: string;
316
433
 
434
+ /**
435
+ * (Optional) Minimum relevance score threshold for results
436
+ */
317
437
  score_threshold?: number;
318
438
  }
319
439
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.16'; // x-release-please-version
1
+ export const VERSION = '0.2.17rc1'; // x-release-please-version