Preparing search index...
The search index is not available
Ninja Agents SDK - v1.0.0
Ninja Agents SDK
StreamTextOptions
Interface StreamTextOptions
Options for text streaming
interface
StreamTextOptions
{
prompt
:
string
;
temperature
?:
number
;
maxTokens
?:
number
;
topP
?:
number
;
frequencyPenalty
?:
number
;
presencePenalty
?:
number
;
stop
?:
string
|
string
[]
;
tools
?:
any
[]
;
toolChoice
?:
any
;
onChunk
?:
(
(
chunk
)
=>
void
)
;
}
Hierarchy (
view full
)
GenerateTextOptions
StreamTextOptions
Index
Properties
prompt
temperature?
max
Tokens?
topP?
frequency
Penalty?
presence
Penalty?
stop?
tools?
tool
Choice?
on
Chunk?
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
Optional
on
Chunk
on
Chunk
?:
(
(
chunk
)
=>
void
)
Type declaration
(
chunk
)
:
void
Parameters
chunk
:
string
Returns
void
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
on
Chunk
Ninja Agents SDK - v1.0.0
Loading...
Options for text streaming