llama-stack-client 0.4.0-rc1 → 0.4.0-rc2
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/README.md +33 -22
- package/index.d.mts +12 -6
- package/index.d.ts +12 -6
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +7 -1
- package/resources/alpha/admin.d.ts +41 -0
- package/resources/alpha/admin.d.ts.map +1 -0
- package/resources/alpha/admin.js +46 -0
- package/resources/alpha/admin.js.map +1 -0
- package/resources/alpha/admin.mjs +42 -0
- package/resources/alpha/admin.mjs.map +1 -0
- package/resources/alpha/alpha.d.ts +6 -2
- package/resources/alpha/alpha.d.ts.map +1 -1
- package/resources/alpha/alpha.js +4 -0
- package/resources/alpha/alpha.js.map +1 -1
- package/resources/alpha/alpha.mjs +4 -0
- package/resources/alpha/alpha.mjs.map +1 -1
- package/resources/alpha/benchmarks.d.ts +37 -1
- package/resources/alpha/benchmarks.d.ts.map +1 -1
- package/resources/alpha/index.d.ts +2 -1
- package/resources/alpha/index.d.ts.map +1 -1
- package/resources/alpha/index.js +3 -1
- package/resources/alpha/index.js.map +1 -1
- package/resources/alpha/index.mjs +1 -0
- package/resources/alpha/index.mjs.map +1 -1
- package/resources/alpha/post-training/index.d.ts +2 -2
- package/resources/alpha/post-training/index.d.ts.map +1 -1
- package/resources/alpha/post-training/index.js.map +1 -1
- package/resources/alpha/post-training/index.mjs.map +1 -1
- package/resources/alpha/post-training/job.d.ts +1 -4
- package/resources/alpha/post-training/job.d.ts.map +1 -1
- package/resources/alpha/post-training/post-training.d.ts +6 -3
- package/resources/alpha/post-training/post-training.d.ts.map +1 -1
- package/resources/alpha/post-training/post-training.js.map +1 -1
- package/resources/alpha/post-training/post-training.mjs.map +1 -1
- package/resources/beta/datasets.d.ts +89 -8
- package/resources/beta/datasets.d.ts.map +1 -1
- package/resources/chat/chat.d.ts +2 -2
- package/resources/chat/chat.d.ts.map +1 -1
- package/resources/chat/completions.d.ts +6 -6
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/completions.d.ts +2 -2
- package/resources/completions.d.ts.map +1 -1
- package/resources/conversations/conversations.d.ts +32 -4
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/items.d.ts +124 -12
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/inspect.d.ts +3 -45
- package/resources/inspect.d.ts.map +1 -1
- package/resources/inspect.js +0 -4
- package/resources/inspect.js.map +1 -1
- package/resources/inspect.mjs +0 -4
- package/resources/inspect.mjs.map +1 -1
- package/resources/providers.d.ts +5 -12
- package/resources/providers.d.ts.map +1 -1
- package/resources/providers.js +0 -4
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +0 -4
- package/resources/providers.mjs.map +1 -1
- package/resources/responses/input-items.d.ts +64 -8
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/responses.d.ts +479 -31
- 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/routes.d.ts +10 -9
- package/resources/routes.d.ts.map +1 -1
- package/resources/routes.js.map +1 -1
- package/resources/routes.mjs.map +1 -1
- package/resources/shared.d.ts +86 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/index.ts +11 -16
- package/src/resources/alpha/admin.ts +84 -0
- package/src/resources/alpha/alpha.ts +8 -0
- package/src/resources/alpha/benchmarks.ts +37 -1
- package/src/resources/alpha/index.ts +2 -0
- package/src/resources/alpha/post-training/index.ts +1 -1
- package/src/resources/alpha/post-training/job.ts +0 -5
- package/src/resources/alpha/post-training/post-training.ts +5 -2
- package/src/resources/beta/datasets.ts +89 -8
- package/src/resources/chat/chat.ts +4 -4
- package/src/resources/chat/completions.ts +12 -12
- package/src/resources/completions.ts +4 -4
- package/src/resources/conversations/conversations.ts +43 -7
- package/src/resources/conversations/items.ts +165 -21
- package/src/resources/index.ts +3 -3
- package/src/resources/inspect.ts +3 -57
- package/src/resources/providers.ts +5 -16
- package/src/resources/responses/input-items.ts +86 -14
- package/src/resources/responses/responses.ts +654 -45
- package/src/resources/routes.ts +10 -14
- package/src/resources/shared.ts +95 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/routes.ts
CHANGED
|
@@ -9,12 +9,10 @@
|
|
|
9
9
|
import { APIResource } from '../resource';
|
|
10
10
|
import { isRequestOptions } from '../core';
|
|
11
11
|
import * as Core from '../core';
|
|
12
|
-
import * as
|
|
12
|
+
import * as Shared from './shared';
|
|
13
13
|
|
|
14
14
|
export class Routes extends APIResource {
|
|
15
15
|
/**
|
|
16
|
-
* List routes.
|
|
17
|
-
*
|
|
18
16
|
* List all available API routes with their methods and implementing providers.
|
|
19
17
|
*/
|
|
20
18
|
list(query?: RouteListParams, options?: Core.RequestOptions): Core.APIPromise<RouteListResponse>;
|
|
@@ -35,22 +33,20 @@ export class Routes extends APIResource {
|
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
/**
|
|
38
|
-
*
|
|
36
|
+
* List of available API routes
|
|
39
37
|
*/
|
|
40
|
-
export
|
|
41
|
-
data: RouteListResponse;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export type RouteListResponse = Array<InspectAPI.RouteInfo>;
|
|
38
|
+
export type RouteListResponse = Array<Shared.RouteInfo>;
|
|
45
39
|
|
|
46
40
|
export interface RouteListParams {
|
|
41
|
+
/**
|
|
42
|
+
* Optional filter to control which routes are returned. Can be an API level ('v1',
|
|
43
|
+
* 'v1alpha', 'v1beta') to show non-deprecated routes at that level, or
|
|
44
|
+
* 'deprecated' to show deprecated routes across all levels. If not specified,
|
|
45
|
+
* returns all non-deprecated routes.
|
|
46
|
+
*/
|
|
47
47
|
api_filter?: 'v1' | 'v1alpha' | 'v1beta' | 'deprecated' | null;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export declare namespace Routes {
|
|
51
|
-
export {
|
|
52
|
-
type ListRoutesResponse as ListRoutesResponse,
|
|
53
|
-
type RouteListResponse as RouteListResponse,
|
|
54
|
-
type RouteListParams as RouteListParams,
|
|
55
|
-
};
|
|
51
|
+
export { type RouteListResponse as RouteListResponse, type RouteListParams as RouteListParams };
|
|
56
52
|
}
|
package/src/resources/shared.ts
CHANGED
|
@@ -6,6 +6,19 @@
|
|
|
6
6
|
//
|
|
7
7
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
8
|
|
|
9
|
+
import * as ProvidersAPI from './providers';
|
|
10
|
+
import * as RoutesAPI from './routes';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Health status information for the service.
|
|
14
|
+
*/
|
|
15
|
+
export interface HealthInfo {
|
|
16
|
+
/**
|
|
17
|
+
* The health status of the service
|
|
18
|
+
*/
|
|
19
|
+
status: 'OK' | 'Error' | 'Not Implemented';
|
|
20
|
+
}
|
|
21
|
+
|
|
9
22
|
/**
|
|
10
23
|
* A image content item
|
|
11
24
|
*/
|
|
@@ -158,6 +171,26 @@ export namespace InterleavedContentItem {
|
|
|
158
171
|
}
|
|
159
172
|
}
|
|
160
173
|
|
|
174
|
+
/**
|
|
175
|
+
* Response containing a list of all available providers.
|
|
176
|
+
*/
|
|
177
|
+
export interface ListProvidersResponse {
|
|
178
|
+
/**
|
|
179
|
+
* List of provider information objects
|
|
180
|
+
*/
|
|
181
|
+
data: ProvidersAPI.ProviderListResponse;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Response containing a list of all available API routes.
|
|
186
|
+
*/
|
|
187
|
+
export interface ListRoutesResponse {
|
|
188
|
+
/**
|
|
189
|
+
* List of available API routes
|
|
190
|
+
*/
|
|
191
|
+
data: RoutesAPI.RouteListResponse;
|
|
192
|
+
}
|
|
193
|
+
|
|
161
194
|
/**
|
|
162
195
|
* Parameter type for string values.
|
|
163
196
|
*/
|
|
@@ -237,6 +270,58 @@ export namespace ParamType {
|
|
|
237
270
|
}
|
|
238
271
|
}
|
|
239
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Information about a registered provider including its configuration and health
|
|
275
|
+
* status.
|
|
276
|
+
*/
|
|
277
|
+
export interface ProviderInfo {
|
|
278
|
+
/**
|
|
279
|
+
* The API name this provider implements
|
|
280
|
+
*/
|
|
281
|
+
api: string;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Configuration parameters for the provider
|
|
285
|
+
*/
|
|
286
|
+
config: { [key: string]: unknown };
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Current health status of the provider
|
|
290
|
+
*/
|
|
291
|
+
health: { [key: string]: unknown };
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Unique identifier for the provider
|
|
295
|
+
*/
|
|
296
|
+
provider_id: string;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* The type of provider implementation
|
|
300
|
+
*/
|
|
301
|
+
provider_type: string;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Information about an API route including its path, method, and implementing
|
|
306
|
+
* providers.
|
|
307
|
+
*/
|
|
308
|
+
export interface RouteInfo {
|
|
309
|
+
/**
|
|
310
|
+
* The HTTP method for the route
|
|
311
|
+
*/
|
|
312
|
+
method: string;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* List of provider types implementing this route
|
|
316
|
+
*/
|
|
317
|
+
provider_types: Array<string>;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* The API route path
|
|
321
|
+
*/
|
|
322
|
+
route: string;
|
|
323
|
+
}
|
|
324
|
+
|
|
240
325
|
/**
|
|
241
326
|
* Details of a safety violation detected by content moderation.
|
|
242
327
|
*/
|
|
@@ -416,3 +501,13 @@ export namespace SystemMessage {
|
|
|
416
501
|
type?: 'text';
|
|
417
502
|
}
|
|
418
503
|
}
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Version information for the service.
|
|
507
|
+
*/
|
|
508
|
+
export interface VersionInfo {
|
|
509
|
+
/**
|
|
510
|
+
* The version string of the service
|
|
511
|
+
*/
|
|
512
|
+
version: string;
|
|
513
|
+
}
|
package/src/version.ts
CHANGED
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.4.
|
|
1
|
+
export declare const VERSION = "0.4.0rc2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
// the root directory of this source tree.
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.VERSION = void 0;
|
|
9
|
-
exports.VERSION = '0.4.
|
|
9
|
+
exports.VERSION = '0.4.0rc2'; // x-release-please-version
|
|
10
10
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
//
|
|
4
4
|
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
5
|
// the root directory of this source tree.
|
|
6
|
-
export const VERSION = '0.4.
|
|
6
|
+
export const VERSION = '0.4.0rc2'; // x-release-please-version
|
|
7
7
|
//# sourceMappingURL=version.mjs.map
|