# client

> **Module** in `langsmith`

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

Client for interacting with the LangSmith API.

Use the client to customize API keys / workspace connections, SSL certs,
etc. for tracing.

Also used to create, read, update, and delete LangSmith resources
such as runs (~trace spans), datasets, examples (~records),
feedback (~metrics), projects (tracer sessions/groups), etc.

For detailed API documentation, visit the [LangSmith docs](https://docs.langchain.com/langsmith/home).

## Properties

- `prompt_cache_singleton`
- `logger`
- `COMPARATIVE_EVALUATOR_T`
- `X_API_KEY`
- `EMPTY_SEQ`
- `URLLIB3_SUPPORTS_BLOCKSIZE`
- `DEFAULT_INSTRUCTIONS`
- `RUN_TYPE_T`

## Methods

- [`close_session()`](https://reference.langchain.com/python/langsmith/client/close_session)
- [`convert_prompt_to_openai_format()`](https://reference.langchain.com/python/langsmith/client/convert_prompt_to_openai_format)
- [`convert_prompt_to_anthropic_format()`](https://reference.langchain.com/python/langsmith/client/convert_prompt_to_anthropic_format)
- [`dump_model()`](https://reference.langchain.com/python/langsmith/client/dump_model)
- [`prep_obj_for_push()`](https://reference.langchain.com/python/langsmith/client/prep_obj_for_push)

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/ce9e9e8973442b33e98ec3ce1b9c2dd3f58a43a7/python/langsmith/client.py)