langsmith.client.Client.has_dataset#
- Client.has_dataset(*, dataset_name: str | None = None, dataset_id: str | None = None) bool[source]#
Check whether a dataset exists in your tenant.
- Parameters:
dataset_name (str or None, default=None) – The name of the dataset to check.
dataset_id (str or None, default=None) – The ID of the dataset to check.
Returns –
------- –
bool – Whether the dataset exists.
- Return type:
bool