Preparing search index...
The search index is not available
Ninja Agents SDK - v1.0.0
Ninja Agents SDK
GenerateTextOptions
Interface GenerateTextOptions
Options for text generation
interface
GenerateTextOptions
{
prompt
:
string
;
temperature
?:
number
;
maxTokens
?:
number
;
topP
?:
number
;
frequencyPenalty
?:
number
;
presencePenalty
?:
number
;
stop
?:
string
|
string
[]
;
tools
?:
any
[]
;
toolChoice
?:
any
;
}
Hierarchy (
view full
)
GenerateTextOptions
GenerateObjectOptions
StreamTextOptions
Index
Properties
prompt
temperature?
max
Tokens?
topP?
frequency
Penalty?
presence
Penalty?
stop?
tools?
tool
Choice?
Properties
prompt
prompt
:
string
Optional
temperature
temperature
?:
number
Optional
max
Tokens
max
Tokens
?:
number
Optional
topP
topP
?:
number
Optional
frequency
Penalty
frequency
Penalty
?:
number
Optional
presence
Penalty
presence
Penalty
?:
number
Optional
stop
stop
?:
string
|
string
[]
Optional
tools
tools
?:
any
[]
Optional
tool
Choice
tool
Choice
?:
any
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
prompt
temperature
max
Tokens
topP
frequency
Penalty
presence
Penalty
stop
tools
tool
Choice
Ninja Agents SDK - v1.0.0
Loading...
Options for text generation