llama-stack-client 0.1.5 → 0.1.6-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 (67) hide show
  1. package/package.json +1 -1
  2. package/resources/agents/agents.d.ts +83 -2
  3. package/resources/agents/agents.d.ts.map +1 -1
  4. package/resources/agents/agents.js +6 -0
  5. package/resources/agents/agents.js.map +1 -1
  6. package/resources/agents/agents.mjs +6 -0
  7. package/resources/agents/agents.mjs.map +1 -1
  8. package/resources/agents/session.d.ts +15 -0
  9. package/resources/agents/session.d.ts.map +1 -1
  10. package/resources/agents/session.js +6 -0
  11. package/resources/agents/session.js.map +1 -1
  12. package/resources/agents/session.mjs +6 -0
  13. package/resources/agents/session.mjs.map +1 -1
  14. package/resources/agents/steps.d.ts +6 -0
  15. package/resources/agents/steps.d.ts.map +1 -1
  16. package/resources/agents/steps.js +3 -0
  17. package/resources/agents/steps.js.map +1 -1
  18. package/resources/agents/steps.mjs +3 -0
  19. package/resources/agents/steps.mjs.map +1 -1
  20. package/resources/agents/turn.d.ts +61 -7
  21. package/resources/agents/turn.d.ts.map +1 -1
  22. package/resources/agents/turn.js +3 -0
  23. package/resources/agents/turn.js.map +1 -1
  24. package/resources/agents/turn.mjs +3 -0
  25. package/resources/agents/turn.mjs.map +1 -1
  26. package/resources/datasetio.d.ts +27 -0
  27. package/resources/datasetio.d.ts.map +1 -1
  28. package/resources/datasetio.js +3 -0
  29. package/resources/datasetio.js.map +1 -1
  30. package/resources/datasetio.mjs +3 -0
  31. package/resources/datasetio.mjs.map +1 -1
  32. package/resources/eval/eval.d.ts +82 -5
  33. package/resources/eval/eval.d.ts.map +1 -1
  34. package/resources/eval/eval.js +12 -0
  35. package/resources/eval/eval.js.map +1 -1
  36. package/resources/eval/eval.mjs +12 -0
  37. package/resources/eval/eval.mjs.map +1 -1
  38. package/resources/eval/jobs.d.ts +9 -0
  39. package/resources/eval/jobs.d.ts.map +1 -1
  40. package/resources/eval/jobs.js +9 -0
  41. package/resources/eval/jobs.js.map +1 -1
  42. package/resources/eval/jobs.mjs +9 -0
  43. package/resources/eval/jobs.mjs.map +1 -1
  44. package/resources/scoring.d.ts +15 -0
  45. package/resources/scoring.d.ts.map +1 -1
  46. package/resources/scoring.js +3 -0
  47. package/resources/scoring.js.map +1 -1
  48. package/resources/scoring.mjs +3 -0
  49. package/resources/scoring.mjs.map +1 -1
  50. package/resources/shared.d.ts +9 -0
  51. package/resources/shared.d.ts.map +1 -1
  52. package/src/resources/agents/agents.ts +83 -2
  53. package/src/resources/agents/session.ts +15 -0
  54. package/src/resources/agents/steps.ts +6 -0
  55. package/src/resources/agents/turn.ts +61 -8
  56. package/src/resources/datasetio.ts +27 -0
  57. package/src/resources/eval/eval.ts +84 -7
  58. package/src/resources/eval/jobs.ts +9 -0
  59. package/src/resources/scoring.ts +15 -0
  60. package/src/resources/shared.ts +9 -0
  61. package/src/version.ts +1 -1
  62. package/version.d.ts +1 -1
  63. package/version.d.ts.map +1 -1
  64. package/version.js +1 -1
  65. package/version.js.map +1 -1
  66. package/version.mjs +1 -1
  67. package/version.mjs.map +1 -1
@@ -6,6 +6,9 @@ import * as ScoringFunctionsAPI from './scoring-functions';
6
6
  import * as Shared from './shared';
7
7
 
8
8
  export class Scoring extends APIResource {
9
+ /**
10
+ * Score a list of rows.
11
+ */
9
12
  score(body: ScoringScoreParams, options?: Core.RequestOptions): Core.APIPromise<ScoringScoreResponse> {
10
13
  return this._client.post('/v1/scoring/score', { body, ...options });
11
14
  }
@@ -18,7 +21,13 @@ export class Scoring extends APIResource {
18
21
  }
19
22
  }
20
23
 
24
+ /**
25
+ * The response from scoring.
26
+ */
21
27
  export interface ScoringScoreResponse {
28
+ /**
29
+ * A map of scoring function name to ScoringResult.
30
+ */
22
31
  results: Record<string, Shared.ScoringResult>;
23
32
  }
24
33
 
@@ -29,8 +38,14 @@ export interface ScoringScoreBatchResponse {
29
38
  }
30
39
 
31
40
  export interface ScoringScoreParams {
41
+ /**
42
+ * The rows to score.
43
+ */
32
44
  input_rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
33
45
 
46
+ /**
47
+ * The scoring functions to use for the scoring.
48
+ */
34
49
  scoring_functions: Record<string, ScoringFunctionsAPI.ScoringFnParams | null>;
35
50
  }
36
51
 
@@ -585,9 +585,18 @@ export namespace SamplingParams {
585
585
  }
586
586
  }
587
587
 
588
+ /**
589
+ * A scoring result for a single row.
590
+ */
588
591
  export interface ScoringResult {
592
+ /**
593
+ * Map of metric name to aggregated value
594
+ */
589
595
  aggregated_results: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
590
596
 
597
+ /**
598
+ * The scoring result for each row. Each row is a map of column name to value.
599
+ */
591
600
  score_rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
592
601
  }
593
602
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.5';
1
+ export const VERSION = '0.1.6rc1';
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.5";
1
+ export declare const VERSION = "0.1.6rc1";
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,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,aAAa,CAAC"}
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.1.5';
4
+ exports.VERSION = '0.1.6rc1';
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,UAAU,CAAC"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.5';
1
+ export const VERSION = '0.1.6rc1';
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,OAAO,CAAC"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,CAAC"}