@@ -1462,6 +1462,7 @@ async def add_examples_to_dataset(
14621462 inputs : Iterable [Mapping [str , Any ]] = (),
14631463 outputs : Iterable [Mapping [str , Any ]] = (),
14641464 metadata : Iterable [Mapping [str , Any ]] = (),
1465+ dataset_version_description : Optional [str ] = None ,
14651466 timeout : Optional [int ] = DEFAULT_TIMEOUT_IN_SECONDS ,
14661467 ) -> Dataset :
14671468 """
@@ -1480,6 +1481,7 @@ async def add_examples_to_dataset(
14801481 inputs: List of dictionaries each corresponding to an example.
14811482 outputs: List of dictionaries each corresponding to an example.
14821483 metadata: List of dictionaries each corresponding to an example.
1484+ dataset_version_description: Optional description for the new dataset version.
14831485 timeout: Optional request timeout in seconds.
14841486
14851487 Returns:
@@ -1540,7 +1542,7 @@ async def add_examples_to_dataset(
15401542 input_keys = input_keys ,
15411543 output_keys = output_keys ,
15421544 metadata_keys = metadata_keys ,
1543- dataset_description = None ,
1545+ dataset_description = dataset_version_description ,
15441546 action = "append" ,
15451547 timeout = timeout ,
15461548 )
@@ -1550,7 +1552,7 @@ async def add_examples_to_dataset(
15501552 inputs = inputs ,
15511553 outputs = outputs ,
15521554 metadata = metadata ,
1553- dataset_description = None ,
1555+ dataset_description = dataset_version_description ,
15541556 action = "append" ,
15551557 timeout = timeout ,
15561558 )
0 commit comments