# Langsmith

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_openapi_client/_client/Langsmith)

## Signature

```python
Langsmith(
    self,
    *,
    api_key: str | None = None,
    tenant_id: str | None = None,
    base_url: str | httpx.URL | None = None,
    timeout: float | Timeout | None | NotGiven = not_given,
    max_retries: int = DEFAULT_MAX_RETRIES,
    default_headers: Mapping[str, str] | None = None,
    default_query: Mapping[str, object] | None = None,
    http_client: httpx.Client | None = None,
    _strict_response_validation: bool = False,
)
```

## Extends

- `SyncAPIClient`

## Constructors

```python
__init__(
    self,
    *,
    api_key: str | None = None,
    tenant_id: str | None = None,
    base_url: str | httpx.URL | None = None,
    timeout: float | Timeout | None | NotGiven = not_given,
    max_retries: int = DEFAULT_MAX_RETRIES,
    default_headers: Mapping[str, str] | None = None,
    default_query: Mapping[str, object] | None = None,
    http_client: httpx.Client | None = None,
    _strict_response_validation: bool = False,
) -> None
```

| Name | Type |
|------|------|
| `api_key` | `str \| None` |
| `tenant_id` | `str \| None` |
| `base_url` | `str \| httpx.URL \| None` |
| `timeout` | `float \| Timeout \| None \| NotGiven` |
| `max_retries` | `int` |
| `default_headers` | `Mapping[str, str] \| None` |
| `default_query` | `Mapping[str, object] \| None` |
| `http_client` | `httpx.Client \| None` |
| `_strict_response_validation` | `bool` |


## Properties

- `api_key`
- `tenant_id`
- `qs`
- `auth_headers`
- `default_headers`
- `with_options`

## Methods

- [`datasets()`](https://reference.langchain.com/python/langsmith/_openapi_client/_client/Langsmith/datasets)
- [`runs()`](https://reference.langchain.com/python/langsmith/_openapi_client/_client/Langsmith/runs)
- [`threads()`](https://reference.langchain.com/python/langsmith/_openapi_client/_client/Langsmith/threads)
- [`traces()`](https://reference.langchain.com/python/langsmith/_openapi_client/_client/Langsmith/traces)
- [`online_evaluators()`](https://reference.langchain.com/python/langsmith/_openapi_client/_client/Langsmith/online_evaluators)
- [`info()`](https://reference.langchain.com/python/langsmith/_openapi_client/_client/Langsmith/info)
- [`issues()`](https://reference.langchain.com/python/langsmith/_openapi_client/_client/Langsmith/issues)
- [`sandboxes()`](https://reference.langchain.com/python/langsmith/_openapi_client/_client/Langsmith/sandboxes)
- [`with_raw_response()`](https://reference.langchain.com/python/langsmith/_openapi_client/_client/Langsmith/with_raw_response)
- [`with_streaming_response()`](https://reference.langchain.com/python/langsmith/_openapi_client/_client/Langsmith/with_streaming_response)
- [`copy()`](https://reference.langchain.com/python/langsmith/_openapi_client/_client/Langsmith/copy)

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/d6cd6082f09e7826a2d6afe444ae6119e61b82a6/python/langsmith/_openapi_client/_client.py#L61)