Function: extendDataset()
Parameters
params
The parameters for the synthetic dataset extension request.count?
number
Count
Default
data_types?
|null
| (
| "General Query"
| "Prompt Injection"
| "Off-Topic Query"
| "Toxic Content in Query"
| "Multiple Questions in Query"
| "Sexist Content in Query"
)[]
Data Types
examples?
string
[]
Examples
instructions?
null
| string
Instructions
prompt?
null
| string
Prompt
prompt_settings?
{deployment_name?
: null
| string
;
echo?
: boolean
;
frequency_penalty?
: number
;
input?
: null
| string
;
instructions?
: null
| string
;
known_models?
: object
[];
logprobs?
: boolean
;
max_tokens?
: number
;
model_alias?
: string
;
n?
: number
;
presence_penalty?
: number
;
reasoning_effort?
: string
;
response_format?
: | null
| {
[key
: string
]: string
;
};
stop_sequences?
: null
| string
[];
temperature?
: number
;
tool_choice?
: | null
| string
| {
function
: {
name
: string
;
};
type?
: string
;
};
tools?
: null
| object
[];
top_k?
: number
;
top_logprobs?
: number
;
top_p?
: number
;
verbosity?
: string
;
}
Description
Only the model is used.
prompt_settings.deployment_name?
null
| string
Deployment Name
prompt_settings.echo?
boolean
Echo
Default
prompt_settings.frequency_penalty?
number
Frequency Penalty
Default
prompt_settings.input?
null
| string
Input
prompt_settings.instructions?
null
| string
Instructions
prompt_settings.known_models?
object
[]
Known Models
prompt_settings.logprobs?
boolean
Logprobs
Default
prompt_settings.max_tokens?
number
Max Tokens
Default
prompt_settings.model_alias?
string
Model Alias
Default
prompt_settings.n?
number
N
Default
prompt_settings.presence_penalty?
number
Presence Penalty
Default
prompt_settings.reasoning_effort?
string
Reasoning Effort
Default
prompt_settings.response_format?
|null
| {
[key
: string
]: string
;
}
Response Format
prompt_settings.stop_sequences?
null
| string
[]
Stop Sequences
prompt_settings.temperature?
number
Temperature
Default
prompt_settings.tool_choice?
|null
| string
| {
function
: {
name
: string
;
};
type?
: string
;
}
Tool Choice
prompt_settings.tools?
null
| object
[]
Tools
prompt_settings.top_k?
number
Top K
Default
prompt_settings.top_logprobs?
number
Top Logprobs
Default
prompt_settings.top_p?
number
Top P
Default
prompt_settings.verbosity?
string
Verbosity
Default
source_dataset?
|null
| {
dataset_id
: string
;
dataset_version_index?
: null
| number
;
row_ids?
: null
| string
[];
}
Returns
Promise
<object
[]>
A promise that resolves with the rows of the extended dataset.