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.
Files changed (106) hide show
  1. package/README.md +33 -22
  2. package/index.d.mts +12 -6
  3. package/index.d.ts +12 -6
  4. package/index.d.ts.map +1 -1
  5. package/index.js.map +1 -1
  6. package/index.mjs.map +1 -1
  7. package/package.json +7 -1
  8. package/resources/alpha/admin.d.ts +41 -0
  9. package/resources/alpha/admin.d.ts.map +1 -0
  10. package/resources/alpha/admin.js +46 -0
  11. package/resources/alpha/admin.js.map +1 -0
  12. package/resources/alpha/admin.mjs +42 -0
  13. package/resources/alpha/admin.mjs.map +1 -0
  14. package/resources/alpha/alpha.d.ts +6 -2
  15. package/resources/alpha/alpha.d.ts.map +1 -1
  16. package/resources/alpha/alpha.js +4 -0
  17. package/resources/alpha/alpha.js.map +1 -1
  18. package/resources/alpha/alpha.mjs +4 -0
  19. package/resources/alpha/alpha.mjs.map +1 -1
  20. package/resources/alpha/benchmarks.d.ts +37 -1
  21. package/resources/alpha/benchmarks.d.ts.map +1 -1
  22. package/resources/alpha/index.d.ts +2 -1
  23. package/resources/alpha/index.d.ts.map +1 -1
  24. package/resources/alpha/index.js +3 -1
  25. package/resources/alpha/index.js.map +1 -1
  26. package/resources/alpha/index.mjs +1 -0
  27. package/resources/alpha/index.mjs.map +1 -1
  28. package/resources/alpha/post-training/index.d.ts +2 -2
  29. package/resources/alpha/post-training/index.d.ts.map +1 -1
  30. package/resources/alpha/post-training/index.js.map +1 -1
  31. package/resources/alpha/post-training/index.mjs.map +1 -1
  32. package/resources/alpha/post-training/job.d.ts +1 -4
  33. package/resources/alpha/post-training/job.d.ts.map +1 -1
  34. package/resources/alpha/post-training/post-training.d.ts +6 -3
  35. package/resources/alpha/post-training/post-training.d.ts.map +1 -1
  36. package/resources/alpha/post-training/post-training.js.map +1 -1
  37. package/resources/alpha/post-training/post-training.mjs.map +1 -1
  38. package/resources/beta/datasets.d.ts +89 -8
  39. package/resources/beta/datasets.d.ts.map +1 -1
  40. package/resources/chat/chat.d.ts +2 -2
  41. package/resources/chat/chat.d.ts.map +1 -1
  42. package/resources/chat/completions.d.ts +6 -6
  43. package/resources/chat/completions.d.ts.map +1 -1
  44. package/resources/completions.d.ts +2 -2
  45. package/resources/completions.d.ts.map +1 -1
  46. package/resources/conversations/conversations.d.ts +32 -4
  47. package/resources/conversations/conversations.d.ts.map +1 -1
  48. package/resources/conversations/conversations.js.map +1 -1
  49. package/resources/conversations/conversations.mjs.map +1 -1
  50. package/resources/conversations/items.d.ts +124 -12
  51. package/resources/conversations/items.d.ts.map +1 -1
  52. package/resources/conversations/items.js.map +1 -1
  53. package/resources/conversations/items.mjs.map +1 -1
  54. package/resources/index.d.ts +3 -3
  55. package/resources/index.d.ts.map +1 -1
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs.map +1 -1
  58. package/resources/inspect.d.ts +3 -45
  59. package/resources/inspect.d.ts.map +1 -1
  60. package/resources/inspect.js +0 -4
  61. package/resources/inspect.js.map +1 -1
  62. package/resources/inspect.mjs +0 -4
  63. package/resources/inspect.mjs.map +1 -1
  64. package/resources/providers.d.ts +5 -12
  65. package/resources/providers.d.ts.map +1 -1
  66. package/resources/providers.js +0 -4
  67. package/resources/providers.js.map +1 -1
  68. package/resources/providers.mjs +0 -4
  69. package/resources/providers.mjs.map +1 -1
  70. package/resources/responses/input-items.d.ts +64 -8
  71. package/resources/responses/input-items.d.ts.map +1 -1
  72. package/resources/responses/responses.d.ts +479 -31
  73. package/resources/responses/responses.d.ts.map +1 -1
  74. package/resources/responses/responses.js.map +1 -1
  75. package/resources/responses/responses.mjs.map +1 -1
  76. package/resources/routes.d.ts +10 -9
  77. package/resources/routes.d.ts.map +1 -1
  78. package/resources/routes.js.map +1 -1
  79. package/resources/routes.mjs.map +1 -1
  80. package/resources/shared.d.ts +86 -0
  81. package/resources/shared.d.ts.map +1 -1
  82. package/src/index.ts +11 -16
  83. package/src/resources/alpha/admin.ts +84 -0
  84. package/src/resources/alpha/alpha.ts +8 -0
  85. package/src/resources/alpha/benchmarks.ts +37 -1
  86. package/src/resources/alpha/index.ts +2 -0
  87. package/src/resources/alpha/post-training/index.ts +1 -1
  88. package/src/resources/alpha/post-training/job.ts +0 -5
  89. package/src/resources/alpha/post-training/post-training.ts +5 -2
  90. package/src/resources/beta/datasets.ts +89 -8
  91. package/src/resources/chat/chat.ts +4 -4
  92. package/src/resources/chat/completions.ts +12 -12
  93. package/src/resources/completions.ts +4 -4
  94. package/src/resources/conversations/conversations.ts +43 -7
  95. package/src/resources/conversations/items.ts +165 -21
  96. package/src/resources/index.ts +3 -3
  97. package/src/resources/inspect.ts +3 -57
  98. package/src/resources/providers.ts +5 -16
  99. package/src/resources/responses/input-items.ts +86 -14
  100. package/src/resources/responses/responses.ts +654 -45
  101. package/src/resources/routes.ts +10 -14
  102. package/src/resources/shared.ts +95 -0
  103. package/src/version.ts +1 -1
  104. package/version.d.ts +1 -1
  105. package/version.js +1 -1
  106. package/version.mjs +1 -1
@@ -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 InspectAPI from './inspect';
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
- * Response containing a list of all available API routes.
36
+ * List of available API routes
39
37
  */
40
- export interface ListRoutesResponse {
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
  }
@@ -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
@@ -4,4 +4,4 @@
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
6
 
7
- export const VERSION = '0.4.0rc1'; // x-release-please-version
7
+ export const VERSION = '0.4.0rc2'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.4.0rc1";
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.0rc1'; // x-release-please-version
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.0rc1'; // x-release-please-version
6
+ export const VERSION = '0.4.0rc2'; // x-release-please-version
7
7
  //# sourceMappingURL=version.mjs.map