errors.UnexpectedStatus
: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException
: If the request takes longer than Client.timeout.Union[None, DatasetContent]
: The content of the dataset
row_data
(List[Dict[str, Any]]
): The rows to add to the dataset.errors.UnexpectedStatus
: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException
: If the request takes longer than Client.timeout.Dataset
: The updated dataset with the new rows.
limit
(Union[Unset, int]
): The maximum number of datasets to return. Default is 100.errors.UnexpectedStatus
: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException
: If the request takes longer than Client.timeout.List[Dataset]
: A list of datasets.
id
or name
must be provided).
Arguments:
id
(str
): The id of the dataset.name
(str
): The name of the dataset.with_content
(bool
): Whether to return the content of the dataset. Default is False.ValueError
: If neither or both id
and name
are provided.name
1: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.name
2: If the request takes longer than Client.timeout.name
3: The dataset.
id
(str
): The id of the dataset.name
(str
): The name of the dataset.errors.UnexpectedStatus
: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException
: If the request takes longer than Client.timeout.name
(str
): The name of the dataset.content
(DatasetType
): The content of the dataset.errors.UnexpectedStatus
: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException
: If the request takes longer than Client.timeout.Dataset
: The created dataset.
prompt_settings
(Dict[str, Any]
): Settings for the prompt generation. Should contain ‘model_alias’ key.
Example: {‘model_alias’: ‘GPT-4o mini’}prompt
(str
): A description of the assistant’s role.instructions
(str
): Instructions for the assistant.examples
(List[str]
): Examples of user prompts.data_types
(List[str]
): The types of data to generate. Possible values are:
‘General Query’, ‘Prompt Injection’, ‘Off-Topic Query’,
‘Toxic Content in Query’, ‘Multiple Questions in Query’,
‘Sexist Content in Query’.Dict[str, Any]
0 (Dict[str, Any]
1): The number of synthetic examples to generate.Dict[str, Any]
2: If the request to extend the dataset fails.Dict[str, Any]
3: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.Dict[str, Any]
4: If the request takes longer than Client.timeout.Dict[str, Any]
5: A list of rows from the extended dataset.
id
or name
must be provided).
Arguments:
id
(str
): The id of the dataset.name
(str
): The name of the dataset.with_content
(bool
): Whether to return the content of the dataset. Default is False.errors.UnexpectedStatus
: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException
: If the request takes longer than Client.timeout.name
0: The dataset.
limit
(Union[Unset, int]
): The maximum number of datasets to return. Default is 100.List[Dataset]
: A list of datasets.
id
or name
must be provided).
Arguments:
id
(str
): The id of the dataset.name
(str
): The name of the dataset.errors.UnexpectedStatus
: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException
: If the request takes longer than Client.timeout.name
(str
): The name of the dataset.content
(DatasetType
): The content of the dataset.errors.UnexpectedStatus
: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.httpx.TimeoutException
: If the request takes longer than Client.timeout.Dataset
: The created dataset.
dataset_name
(str
): The name of the dataset.dataset_id
(str
): The id of the dataset.HTTPValidationError
: NoneListDatasetVersionResponse
:
version_index
(int
): The version of the dataset.dataset_name
(Optional[str]
): The name of the dataset.dataset_id
(Optional[str]
): The id of the dataset.DatasetContent
:
prompt_settings
(Dict[str, Any]
): Settings for the prompt generation. Should contain ‘model_alias’ key.
Example: {‘model_alias’: ‘GPT-4o mini’}prompt
(str
): A description of the assistant’s role.instructions
(str
): Instructions for the assistant.examples
(List[str]
): Examples of user prompts.data_types
(List[str]
): The types of data to generate. Possible values are:
‘General Query’, ‘Prompt Injection’, ‘Off-Topic Query’,
‘Toxic Content in Query’, ‘Multiple Questions in Query’,
‘Sexist Content in Query’.Dict[str, Any]
0 (Dict[str, Any]
1): The number of synthetic examples to generate.Dict[str, Any]
2: If the request to extend the dataset fails.Dict[str, Any]
3: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.Dict[str, Any]
4: If the request takes longer than Client.timeout.Dict[str, Any]
5: A list of rows from the extended dataset.