Update a specific example.
update_example(
self,
example_id: ID_TYPE,
*,
inputs: Optional[dict[str, Any]] = None,
outputs: Optional[Mapping[str, Any]] = None,
metadata: Optional[dict] = None,
split: Optional[str | list[str]] = None,
dataset_id: Optional[ID_TYPE] = None,
attachments_operations: Optional[ls_schemas.AttachmentsOperations] = None,
attachments: Optional[ls_schemas.Attachments] = None
) -> dict[str, Any]| Name | Type | Description |
|---|---|---|
example_id* | Union[UUID, str] | The ID of the example to update. |
inputs | Optional[Dict[str, Any]] | Default: NoneThe input values to update. |
outputs | Optional[Mapping[str, Any]] | Default: NoneThe output values to update. |
metadata | Optional[Dict] | Default: NoneThe metadata to update. |
split | Optional[str | List[str]] | Default: NoneThe dataset split to update, such as 'train', 'test', or 'validation'. |
dataset_id | Optional[Union[UUID, str]] | Default: NoneThe ID of the dataset to update. |
attachments_operations | Optional[AttachmentsOperations] | Default: NoneThe attachments operations to perform. |
attachments | Optional[Attachments] | Default: NoneThe attachments to add to the example. |