Kotensor
Toggle table of contents
1.2.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Kotensor
Kotensor
/
io.kotensor.core
/
GenerationState
Generation
State
data
class
GenerationState
(
val
prompt
:
String
=
""
,
val
generatedText
:
String
=
""
,
val
isGenerating
:
Boolean
=
false
,
val
tokensGenerated
:
Int
=
0
,
val
tokensPerSecond
:
Float
=
0.0f
)
(
source
)
Members
Constructors
Generation
State
Link copied to clipboard
constructor
(
prompt
:
String
=
""
,
generatedText
:
String
=
""
,
isGenerating
:
Boolean
=
false
,
tokensGenerated
:
Int
=
0
,
tokensPerSecond
:
Float
=
0.0f
)
Properties
generated
Text
Link copied to clipboard
val
generatedText
:
String
is
Generating
Link copied to clipboard
val
isGenerating
:
Boolean
prompt
Link copied to clipboard
val
prompt
:
String
tokens
Generated
Link copied to clipboard
val
tokensGenerated
:
Int
tokens
Per
Second
Link copied to clipboard
val
tokensPerSecond
:
Float