ExperimentRunStats#
- class langsmith.schemas.ExperimentRunStats[source]#
Run statistics for an experiment.
- run_count: int | None#
The number of runs in the project.
- latency_p50: timedelta | None#
The median (50th percentile) latency for the project.
- latency_p99: timedelta | None#
The 99th percentile latency for the project.
- total_tokens: int | None#
The total number of tokens consumed in the project.
- prompt_tokens: int | None#
The total number of prompt tokens consumed in the project.
- completion_tokens: int | None#
The total number of completion tokens consumed in the project.
- last_run_start_time: datetime | None#
The start time of the last run in the project.
- run_facets: list[dict[str, Any]] | None#
Facets for the runs in the project.
- total_cost: Decimal | None#
The total estimated LLM cost associated with the completion tokens.
- prompt_cost: Decimal | None#
The estimated cost associated with the prompt (input) tokens.
- completion_cost: Decimal | None#
The estimated cost associated with the completion tokens.
- first_token_p50: timedelta | None#
The median (50th percentile) time to process the first token.
- first_token_p99: timedelta | None#
The 99th percentile time to process the first token.
- error_rate: float | None#
The error rate for the project.