LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDKRemoteGraph
Language
Theme
PythonlangsmithclientClientclone_public_dataset
Method●Since v0.0

clone_public_dataset

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.

Copy
clone_public_dataset(
  self,
  token_or_url: str,
  *,
  source_api_url: Optional[str] = None,
  dataset_name: Optional[str] = None
) -> ls_schemas.Dataset

Parameters

NameTypeDescription
token_or_url*str

The token of the public dataset to clone.

source_api_urlOptional[str]
Default:None

The URL of the langsmith server where the data is hosted. Defaults to the API URL of your current client.

dataset_nameOptional[str]
Default:None

The name of the dataset to create in your tenant. Defaults to the name of the public dataset.

View source on GitHub