# ThreadAggregateStatsParams

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/types/thread_aggregate_stats_params/ThreadAggregateStatsParams)

## Signature

```python
ThreadAggregateStatsParams()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    project_id: Required[str],
    select: Required[List[Literal['THREAD_COUNT', 'TRACE_COUNT', 'TOTAL_TOKENS', 'TOTAL_COST', 'ERROR_RATE', 'STREAMING_RATE', 'LATENCY_P50', 'LATENCY_P99', 'MEDIAN_TOKENS', 'FIRST_TOKEN_P50', 'FIRST_TOKEN_P99', 'PROMPT_TOKENS', 'COMPLETION_TOKENS', 'PROMPT_COST', 'COMPLETION_COST', 'PROMPT_TOKEN_DETAILS', 'COMPLETION_TOKEN_DETAILS', 'PROMPT_COST_DETAILS', 'COMPLETION_COST_DETAILS', 'THREAD_FEEDBACK_STATS']]],
    filter: str,
    max_start_time: Annotated[Union[str, datetime], PropertyInfo(format='iso8601')],
    min_start_time: Annotated[Union[str, datetime], PropertyInfo(format='iso8601')],
    thread_filter: str,
    trace_filter: str,
    tree_filter: str,
)
```

| Name | Type |
|------|------|
| `project_id` | `Required[str]` |
| `select` | `Required[List[Literal['THREAD_COUNT', 'TRACE_COUNT', 'TOTAL_TOKENS', 'TOTAL_COST', 'ERROR_RATE', 'STREAMING_RATE', 'LATENCY_P50', 'LATENCY_P99', 'MEDIAN_TOKENS', 'FIRST_TOKEN_P50', 'FIRST_TOKEN_P99', 'PROMPT_TOKENS', 'COMPLETION_TOKENS', 'PROMPT_COST', 'COMPLETION_COST', 'PROMPT_TOKEN_DETAILS', 'COMPLETION_TOKEN_DETAILS', 'PROMPT_COST_DETAILS', 'COMPLETION_COST_DETAILS', 'THREAD_FEEDBACK_STATS']]]` |
| `filter` | `str` |
| `max_start_time` | `Annotated[Union[str, datetime], PropertyInfo(format='iso8601')]` |
| `min_start_time` | `Annotated[Union[str, datetime], PropertyInfo(format='iso8601')]` |
| `thread_filter` | `str` |
| `trace_filter` | `str` |
| `tree_filter` | `str` |


## Properties

- `project_id`
- `select`
- `filter`
- `max_start_time`
- `min_start_time`
- `thread_filter`
- `trace_filter`
- `tree_filter`

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/types/thread_aggregate_stats_params.py#L14)