langsmith.client.Client.clone_public_dataset#

Client.clone_public_dataset(token_or_url: str, *, source_api_url: str | None = None, dataset_name: str | None = None) Dataset[source]#

Clone a public dataset to your own langsmith tenant.

This operation is idempotent. If you already have a dataset with the given name, this function will do nothing.

Parameters:
  • token_or_url (str) – The token of the public dataset to clone.

  • source_api_url (str | None) – The URL of the langsmith server where the data is hosted. Defaults to the API URL of your current client.

  • dataset_name (str) – The name of the dataset to create in your tenant. Defaults to the name of the public dataset.

Return type:

Dataset