llama-stack-client 0.1.4 → 0.1.6
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/package.json +1 -1
- package/resources/agents/agents.d.ts +83 -2
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +6 -0
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +6 -0
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/session.d.ts +15 -0
- 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/steps.d.ts +6 -0
- package/resources/agents/steps.d.ts.map +1 -1
- package/resources/agents/steps.js +3 -0
- package/resources/agents/steps.js.map +1 -1
- package/resources/agents/steps.mjs +3 -0
- package/resources/agents/steps.mjs.map +1 -1
- package/resources/agents/turn.d.ts +61 -7
- package/resources/agents/turn.d.ts.map +1 -1
- package/resources/agents/turn.js +3 -0
- package/resources/agents/turn.js.map +1 -1
- package/resources/agents/turn.mjs +3 -0
- package/resources/agents/turn.mjs.map +1 -1
- package/resources/datasetio.d.ts +27 -0
- package/resources/datasetio.d.ts.map +1 -1
- package/resources/datasetio.js +3 -0
- package/resources/datasetio.js.map +1 -1
- package/resources/datasetio.mjs +3 -0
- package/resources/datasetio.mjs.map +1 -1
- package/resources/eval/eval.d.ts +82 -5
- package/resources/eval/eval.d.ts.map +1 -1
- package/resources/eval/eval.js +12 -0
- package/resources/eval/eval.js.map +1 -1
- package/resources/eval/eval.mjs +12 -0
- package/resources/eval/eval.mjs.map +1 -1
- package/resources/eval/jobs.d.ts +9 -0
- package/resources/eval/jobs.d.ts.map +1 -1
- package/resources/eval/jobs.js +9 -0
- package/resources/eval/jobs.js.map +1 -1
- package/resources/eval/jobs.mjs +9 -0
- package/resources/eval/jobs.mjs.map +1 -1
- package/resources/scoring.d.ts +15 -0
- package/resources/scoring.d.ts.map +1 -1
- package/resources/scoring.js +3 -0
- package/resources/scoring.js.map +1 -1
- package/resources/scoring.mjs +3 -0
- package/resources/scoring.mjs.map +1 -1
- package/resources/shared.d.ts +9 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/resources/agents/agents.ts +83 -2
- package/src/resources/agents/session.ts +15 -0
- package/src/resources/agents/steps.ts +6 -0
- package/src/resources/agents/turn.ts +61 -8
- package/src/resources/datasetio.ts +27 -0
- package/src/resources/eval/eval.ts +84 -7
- package/src/resources/eval/jobs.ts +9 -0
- package/src/resources/scoring.ts +15 -0
- package/src/resources/shared.ts +9 -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/scoring.ts
CHANGED
|
@@ -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
|
|
package/src/resources/shared.ts
CHANGED
|
@@ -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.
|
|
1
|
+
export const VERSION = '0.1.6';
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.6";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.
|
|
1
|
+
export const VERSION = '0.1.6';
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|