List the datasets on the LangSmith API.
list_datasets(
self,
*,
dataset_ids: Optional[list[ID_TYPE]] = None,
data_type: Optional[str] = None,
dataset_name: Optional[str] = None,
dataset_name_contains: Optional[str] = None,
metadata: Optional[dict[str, Any]] = None,
limit: Optional[int] = None
) -> Iterator[ls_schemas.Dataset]| Name | Type | Description |
|---|---|---|
dataset_ids | Optional[List[Union[UUID, str]]] | Default: NoneA list of dataset IDs to filter the results by. |
data_type | Optional[str] | Default: NoneThe data type of the datasets to filter the results by. |
dataset_name | Optional[str] | Default: NoneThe name of the dataset to filter the results by. |
dataset_name_contains | Optional[str] | Default: NoneA substring to search for in the dataset names. |
metadata | Optional[Dict[str, Any]] | Default: NoneA dictionary of metadata to filter the results by. |
limit | Optional[int] | Default: NoneThe maximum number of datasets to return. |