langsmith 0.0.14 → 0.0.16
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 +2 -3
- package/dist/client.d.ts +3 -3
- package/dist/run_trees.d.ts +2 -2
- package/dist/schemas.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -168,9 +168,8 @@ await parentRun.end({
|
|
|
168
168
|
},
|
|
169
169
|
});
|
|
170
170
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
});
|
|
171
|
+
// False directs to not exclude child runs
|
|
172
|
+
await parentRun.postRun(false);
|
|
174
173
|
```
|
|
175
174
|
|
|
176
175
|
### Create a Dataset from Existing Runs
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsyncCallerParams } from "./utils/async_caller.js";
|
|
2
|
-
import { Dataset, Example, ExampleUpdate, Feedback, KVMap, Run, RunCreate,
|
|
2
|
+
import { Dataset, Example, ExampleUpdate, Feedback, KVMap, Run, RunCreate, RunUpdate, ScoreType, TracerSession, TracerSessionResult, ValueType, DataType } from "./schemas.js";
|
|
3
3
|
import { RunEvaluator } from "./evaluation/evaluator.js";
|
|
4
4
|
interface ClientConfig {
|
|
5
5
|
apiUrl?: string;
|
|
@@ -16,7 +16,7 @@ interface ListRunsParams {
|
|
|
16
16
|
datasetId?: string;
|
|
17
17
|
startTime?: Date;
|
|
18
18
|
endTime?: Date;
|
|
19
|
-
runType?:
|
|
19
|
+
runType?: string;
|
|
20
20
|
error?: boolean;
|
|
21
21
|
id?: string[];
|
|
22
22
|
limit?: number;
|
|
@@ -37,7 +37,7 @@ interface UploadCSVParams {
|
|
|
37
37
|
interface CreateRunParams {
|
|
38
38
|
name: string;
|
|
39
39
|
inputs: KVMap;
|
|
40
|
-
run_type:
|
|
40
|
+
run_type: string;
|
|
41
41
|
execution_order?: number;
|
|
42
42
|
id?: string;
|
|
43
43
|
start_time?: number;
|
package/dist/run_trees.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BaseRun, KVMap
|
|
1
|
+
import { BaseRun, KVMap } from "./schemas.js";
|
|
2
2
|
import { Client } from "./client.js";
|
|
3
3
|
export interface RunTreeConfig {
|
|
4
4
|
name: string;
|
|
5
|
-
run_type:
|
|
5
|
+
run_type: string;
|
|
6
6
|
id?: string;
|
|
7
7
|
project_name?: string;
|
|
8
8
|
execution_order?: number;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface TracerSessionResult extends TracerSession {
|
|
|
17
17
|
run_facets?: KVMap[];
|
|
18
18
|
}
|
|
19
19
|
export type KVMap = Record<string, any>;
|
|
20
|
-
export type RunType = "llm" | "chain" | "tool" | "retriever" | "embedding";
|
|
20
|
+
export type RunType = "llm" | "chain" | "tool" | "retriever" | "embedding" | "prompt" | "parser";
|
|
21
21
|
export type ScoreType = number | boolean | null;
|
|
22
22
|
export type ValueType = number | boolean | string | object | null;
|
|
23
23
|
export type DataType = "kv" | "llm" | "chat";
|
|
@@ -31,7 +31,7 @@ export interface BaseRun {
|
|
|
31
31
|
name: string;
|
|
32
32
|
serialized?: object;
|
|
33
33
|
inputs: KVMap;
|
|
34
|
-
run_type:
|
|
34
|
+
run_type: string;
|
|
35
35
|
start_time?: number;
|
|
36
36
|
end_time?: number;
|
|
37
37
|
extra?: KVMap;
|