langsmith
Advanced tools
Comparing version 0.0.32 to 0.0.33
@@ -29,28 +29,71 @@ export interface TracerSession { | ||
} | ||
/** | ||
* A run can represent either a trace (root run) | ||
* or a child run (~span). | ||
*/ | ||
export interface BaseRun { | ||
/** Optionally, a unique identifier for the run. */ | ||
id?: string; | ||
/** A human-readable name for the run. */ | ||
name: string; | ||
serialized?: object; | ||
inputs: KVMap; | ||
/** Defines the sequence in which the run was executed. */ | ||
execution_order?: number; | ||
/** The epoch time at which the run started, if available. */ | ||
start_time?: number; | ||
/** Specifies the type of run (tool, chain, llm, etc.). */ | ||
run_type: string; | ||
start_time?: number; | ||
/** The epoch time at which the run ended, if applicable. */ | ||
end_time?: number; | ||
/** Any additional metadata or settings for the run. */ | ||
extra?: KVMap; | ||
/** Error message, captured if the run faces any issues. */ | ||
error?: string; | ||
execution_order?: number; | ||
/** Serialized state of the run for potential future use. */ | ||
serialized?: object; | ||
/** Events like 'start', 'end' linked to the run. */ | ||
events?: KVMap[]; | ||
/** Inputs that were used to initiate the run. */ | ||
inputs: KVMap; | ||
/** Outputs produced by the run, if any. */ | ||
outputs?: KVMap; | ||
/** ID of an example that might be related to this run. */ | ||
reference_example_id?: string; | ||
/** ID of a parent run, if this run is part of a larger operation. */ | ||
parent_run_id?: string; | ||
events?: KVMap[]; | ||
/** Tags for further categorizing or annotating the run. */ | ||
tags?: string[]; | ||
} | ||
/** | ||
* Describes properties of a run when loaded from the database. | ||
* Extends the BaseRun interface. | ||
*/ | ||
export interface Run extends BaseRun { | ||
/** A unique identifier for the run, mandatory when loaded from DB. */ | ||
id: string; | ||
/** Defines the sequence in which the run was executed. */ | ||
execution_order: number; | ||
/** The ID of the project that owns this run. */ | ||
session_id?: string; | ||
execution_order: number; | ||
start_time: number; | ||
/** IDs of any child runs spawned by this run. */ | ||
child_run_ids?: string[]; | ||
/** Child runs, loaded explicitly via a heavier query. */ | ||
child_runs?: Run[]; | ||
/** Stats capturing feedback for this run. */ | ||
feedback_stats?: KVMap; | ||
child_runs?: Run[]; | ||
/** The URL path where this run is accessible within the app. */ | ||
app_path?: string; | ||
/** The manifest ID that correlates with this run. */ | ||
manifest_id?: string; | ||
/** The current status of the run, such as 'success'. */ | ||
status?: string; | ||
/** Number of tokens used in the prompt. */ | ||
prompt_tokens?: number; | ||
/** Number of tokens generated in the completion. */ | ||
completion_tokens?: number; | ||
/** Total token count, combining prompt and completion. */ | ||
total_tokens?: number; | ||
/** Time when the first token was processed. */ | ||
first_token_time?: number; | ||
/** IDs of parent runs, if multiple exist. */ | ||
parent_run_ids?: string[]; | ||
} | ||
@@ -57,0 +100,0 @@ export interface RunCreate extends BaseRun { |
{ | ||
"name": "langsmith", | ||
"version": "0.0.32", | ||
"version": "0.0.33", | ||
"description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.", | ||
@@ -5,0 +5,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164323
4065