llama-stack-client 0.2.13 → 0.2.14-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.
- package/LICENSE +201 -22
- package/README.md +67 -48
- package/_shims/web-runtime.js +1 -1
- package/_shims/web-runtime.js.map +1 -1
- package/_shims/web-runtime.mjs +1 -1
- package/_shims/web-runtime.mjs.map +1 -1
- package/core.js +1 -1
- package/core.js.map +1 -1
- package/core.mjs +1 -1
- package/core.mjs.map +1 -1
- package/index.d.mts +10 -8
- package/index.d.ts +10 -8
- package/index.d.ts.map +1 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resources/agents/agents.d.ts +52 -4
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +13 -0
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +13 -0
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/index.d.ts +2 -2
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/session.d.ts +35 -1
- package/resources/agents/session.d.ts.map +1 -1
- package/resources/agents/session.js +6 -0
- package/resources/agents/session.js.map +1 -1
- package/resources/agents/session.mjs +6 -0
- package/resources/agents/session.mjs.map +1 -1
- package/resources/agents/turn.d.ts +6 -2
- package/resources/agents/turn.d.ts.map +1 -1
- package/resources/benchmarks.d.ts +6 -2
- package/resources/benchmarks.d.ts.map +1 -1
- package/resources/chat/completions.d.ts +21 -7
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/completions.d.ts +6 -2
- package/resources/completions.d.ts.map +1 -1
- package/resources/datasets.d.ts +40 -10
- package/resources/datasets.d.ts.map +1 -1
- package/resources/datasets.js +10 -0
- package/resources/datasets.js.map +1 -1
- package/resources/datasets.mjs +10 -0
- package/resources/datasets.mjs.map +1 -1
- package/resources/eval/eval.d.ts +15 -5
- package/resources/eval/eval.d.ts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/inference.d.ts +9 -3
- package/resources/inference.d.ts.map +1 -1
- package/resources/inspect.d.ts +6 -2
- package/resources/inspect.d.ts.map +1 -1
- package/resources/models.d.ts +6 -2
- package/resources/models.d.ts.map +1 -1
- package/resources/post-training/job.d.ts +3 -1
- package/resources/post-training/job.d.ts.map +1 -1
- package/resources/post-training/job.js.map +1 -1
- package/resources/post-training/job.mjs.map +1 -1
- package/resources/post-training/post-training.d.ts +12 -4
- package/resources/post-training/post-training.d.ts.map +1 -1
- package/resources/responses/input-items.d.ts +32 -1
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/responses.d.ts +223 -17
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/safety.d.ts +3 -1
- package/resources/safety.d.ts.map +1 -1
- package/resources/scoring-functions.d.ts +3 -1
- package/resources/scoring-functions.d.ts.map +1 -1
- package/resources/scoring.d.ts +15 -5
- package/resources/scoring.d.ts.map +1 -1
- package/resources/shared.d.ts +29 -9
- package/resources/shared.d.ts.map +1 -1
- package/resources/shields.d.ts +6 -2
- package/resources/shields.d.ts.map +1 -1
- package/resources/synthetic-data-generation.d.ts +6 -2
- package/resources/synthetic-data-generation.d.ts.map +1 -1
- package/resources/telemetry.d.ts +21 -7
- package/resources/telemetry.d.ts.map +1 -1
- package/resources/tool-runtime/tool-runtime.d.ts +9 -3
- package/resources/tool-runtime/tool-runtime.d.ts.map +1 -1
- package/resources/toolgroups.d.ts +6 -2
- package/resources/toolgroups.d.ts.map +1 -1
- package/resources/tools.d.ts +3 -1
- package/resources/tools.d.ts.map +1 -1
- package/resources/vector-io.d.ts +139 -7
- package/resources/vector-io.d.ts.map +1 -1
- package/resources/vector-stores/files.d.ts +78 -3
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +34 -0
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +34 -0
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.d.ts +1 -1
- package/resources/vector-stores/index.d.ts.map +1 -1
- package/resources/vector-stores/index.js.map +1 -1
- package/resources/vector-stores/index.mjs +1 -1
- package/resources/vector-stores/index.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +33 -11
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +1 -1
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/_shims/web-runtime.ts +1 -1
- package/src/core.ts +1 -1
- package/src/index.ts +16 -6
- package/src/resources/agents/agents.ts +74 -1
- package/src/resources/agents/index.ts +5 -0
- package/src/resources/agents/session.ts +54 -0
- package/src/resources/agents/turn.ts +2 -2
- package/src/resources/benchmarks.ts +2 -2
- package/src/resources/chat/completions.ts +7 -7
- package/src/resources/completions.ts +2 -2
- package/src/resources/datasets.ts +32 -9
- package/src/resources/eval/eval.ts +5 -5
- package/src/resources/index.ts +4 -0
- package/src/resources/inference.ts +3 -3
- package/src/resources/inspect.ts +2 -2
- package/src/resources/models.ts +2 -2
- package/src/resources/post-training/job.ts +1 -2
- package/src/resources/post-training/post-training.ts +4 -4
- package/src/resources/responses/input-items.ts +54 -1
- package/src/resources/responses/responses.ts +335 -17
- package/src/resources/safety.ts +1 -1
- package/src/resources/scoring-functions.ts +1 -1
- package/src/resources/scoring.ts +5 -5
- package/src/resources/shared.ts +17 -17
- package/src/resources/shields.ts +2 -2
- package/src/resources/synthetic-data-generation.ts +2 -2
- package/src/resources/telemetry.ts +7 -7
- package/src/resources/tool-runtime/tool-runtime.ts +3 -3
- package/src/resources/toolgroups.ts +2 -2
- package/src/resources/tools.ts +1 -1
- package/src/resources/vector-io.ts +159 -7
- package/src/resources/vector-stores/files.ts +146 -3
- package/src/resources/vector-stores/index.ts +10 -1
- package/src/resources/vector-stores/vector-stores.ts +29 -10
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -4,7 +4,16 @@ import { APIResource } from '../../resource';
|
|
|
4
4
|
import { isRequestOptions } from '../../core';
|
|
5
5
|
import * as Core from '../../core';
|
|
6
6
|
import * as FilesAPI from './files';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
FileContentResponse,
|
|
9
|
+
FileCreateParams,
|
|
10
|
+
FileDeleteResponse,
|
|
11
|
+
FileListParams,
|
|
12
|
+
FileListResponse,
|
|
13
|
+
FileUpdateParams,
|
|
14
|
+
Files,
|
|
15
|
+
VectorStoreFile,
|
|
16
|
+
} from './files';
|
|
8
17
|
|
|
9
18
|
export class VectorStores extends APIResource {
|
|
10
19
|
files: FilesAPI.Files = new FilesAPI.Files(this._client);
|
|
@@ -97,7 +106,7 @@ export interface VectorStore {
|
|
|
97
106
|
|
|
98
107
|
file_counts: VectorStore.FileCounts;
|
|
99
108
|
|
|
100
|
-
metadata:
|
|
109
|
+
metadata: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
101
110
|
|
|
102
111
|
object: string;
|
|
103
112
|
|
|
@@ -105,7 +114,7 @@ export interface VectorStore {
|
|
|
105
114
|
|
|
106
115
|
usage_bytes: number;
|
|
107
116
|
|
|
108
|
-
expires_after?:
|
|
117
|
+
expires_after?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
109
118
|
|
|
110
119
|
expires_at?: number;
|
|
111
120
|
|
|
@@ -167,7 +176,7 @@ export namespace VectorStoreSearchResponse {
|
|
|
167
176
|
|
|
168
177
|
score: number;
|
|
169
178
|
|
|
170
|
-
attributes?:
|
|
179
|
+
attributes?: { [key: string]: string | number | boolean };
|
|
171
180
|
}
|
|
172
181
|
|
|
173
182
|
export namespace Data {
|
|
@@ -189,7 +198,7 @@ export interface VectorStoreCreateParams {
|
|
|
189
198
|
* The chunking strategy used to chunk the file(s). If not set, will use the `auto`
|
|
190
199
|
* strategy.
|
|
191
200
|
*/
|
|
192
|
-
chunking_strategy?:
|
|
201
|
+
chunking_strategy?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
193
202
|
|
|
194
203
|
/**
|
|
195
204
|
* The dimension of the embedding vectors (default: 384).
|
|
@@ -204,7 +213,7 @@ export interface VectorStoreCreateParams {
|
|
|
204
213
|
/**
|
|
205
214
|
* The expiration policy for a vector store.
|
|
206
215
|
*/
|
|
207
|
-
expires_after?:
|
|
216
|
+
expires_after?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
208
217
|
|
|
209
218
|
/**
|
|
210
219
|
* A list of File IDs that the vector store should use. Useful for tools like
|
|
@@ -215,7 +224,7 @@ export interface VectorStoreCreateParams {
|
|
|
215
224
|
/**
|
|
216
225
|
* Set of 16 key-value pairs that can be attached to an object.
|
|
217
226
|
*/
|
|
218
|
-
metadata?:
|
|
227
|
+
metadata?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
219
228
|
|
|
220
229
|
/**
|
|
221
230
|
* The ID of the provider to use for this vector store.
|
|
@@ -232,12 +241,12 @@ export interface VectorStoreUpdateParams {
|
|
|
232
241
|
/**
|
|
233
242
|
* The expiration policy for a vector store.
|
|
234
243
|
*/
|
|
235
|
-
expires_after?:
|
|
244
|
+
expires_after?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
236
245
|
|
|
237
246
|
/**
|
|
238
247
|
* Set of 16 key-value pairs that can be attached to an object.
|
|
239
248
|
*/
|
|
240
|
-
metadata?:
|
|
249
|
+
metadata?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
241
250
|
|
|
242
251
|
/**
|
|
243
252
|
* The name of the vector store.
|
|
@@ -280,7 +289,7 @@ export interface VectorStoreSearchParams {
|
|
|
280
289
|
/**
|
|
281
290
|
* Filters based on file attributes to narrow the search results.
|
|
282
291
|
*/
|
|
283
|
-
filters?:
|
|
292
|
+
filters?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
284
293
|
|
|
285
294
|
/**
|
|
286
295
|
* Maximum number of results to return (1 to 50 inclusive, default 10).
|
|
@@ -296,6 +305,11 @@ export interface VectorStoreSearchParams {
|
|
|
296
305
|
* Whether to rewrite the natural language query for vector search (default false)
|
|
297
306
|
*/
|
|
298
307
|
rewrite_query?: boolean;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* The search mode to use - "keyword", "vector", or "hybrid" (default "vector")
|
|
311
|
+
*/
|
|
312
|
+
search_mode?: string;
|
|
299
313
|
}
|
|
300
314
|
|
|
301
315
|
export namespace VectorStoreSearchParams {
|
|
@@ -326,6 +340,11 @@ export declare namespace VectorStores {
|
|
|
326
340
|
export {
|
|
327
341
|
Files as Files,
|
|
328
342
|
type VectorStoreFile as VectorStoreFile,
|
|
343
|
+
type FileListResponse as FileListResponse,
|
|
344
|
+
type FileDeleteResponse as FileDeleteResponse,
|
|
345
|
+
type FileContentResponse as FileContentResponse,
|
|
329
346
|
type FileCreateParams as FileCreateParams,
|
|
347
|
+
type FileUpdateParams as FileUpdateParams,
|
|
348
|
+
type FileListParams as FileListParams,
|
|
330
349
|
};
|
|
331
350
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.
|
|
1
|
+
export const VERSION = '0.2.14rc1'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.
|
|
1
|
+
export declare const VERSION = "0.2.14rc1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,cAAc,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,WAAW,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2.
|
|
1
|
+
export const VERSION = '0.2.14rc1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,2BAA2B"}
|