Spaces:
Build error
Build error
File size: 1,383 Bytes
c211499 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
import { BaseRun, KVMap } from "./schemas.js";
import { Client } from "./client.js";
export interface RunTreeConfig {
name: string;
run_type: string;
id?: string;
project_name?: string;
execution_order?: number;
child_execution_order?: number;
parent_run?: RunTree;
child_runs?: RunTree[];
start_time?: number;
end_time?: number;
extra?: KVMap;
error?: string;
serialized?: object;
inputs?: KVMap;
outputs?: KVMap;
reference_example_id?: string;
client?: Client;
}
export declare class RunTree implements BaseRun {
id: string;
name: RunTreeConfig["name"];
run_type: RunTreeConfig["run_type"];
project_name: string;
parent_run?: RunTree;
child_runs: RunTree[];
execution_order: number;
child_execution_order: number;
start_time: number;
end_time?: number;
extra: KVMap;
error?: string;
serialized: object;
inputs: KVMap;
outputs?: KVMap;
reference_example_id?: string;
client: Client;
events?: KVMap[] | undefined;
constructor(config: RunTreeConfig);
private static getDefaultConfig;
createChild(config: RunTreeConfig): Promise<RunTree>;
end(outputs?: KVMap, error?: string, endTime?: number): Promise<void>;
private _convertToCreate;
postRun(excludeChildRuns?: boolean): Promise<void>;
patchRun(): Promise<void>;
}
|