AI SDK Kotlin
Toggle table of contents
0.3.0-beta01
common
Target filter
common
Switch theme
Search in API
Skip to content
AI SDK Kotlin
AI SDK Kotlin
/
ai.torad.aisdk.ui
/
ChatState
Chat
State
data
class
ChatState
(
val
id
:
String
,
val
messages
:
List
<
UIMessage
>
=
emptyList()
,
val
status
:
ChatStatus
=
ChatStatus.Ready
,
val
error
:
Throwable
?
=
null
)
(
source
)
Since
0.3.0-beta01
Members
Constructors
Chat
State
Link copied to clipboard
constructor
(
id
:
String
,
messages
:
List
<
UIMessage
>
=
emptyList()
,
status
:
ChatStatus
=
ChatStatus.Ready
,
error
:
Throwable
?
=
null
)
Properties
error
Link copied to clipboard
val
error
:
Throwable
?
id
Link copied to clipboard
val
id
:
String
is
Streaming
Link copied to clipboard
val
isStreaming
:
Boolean
messages
Link copied to clipboard
val
messages
:
List
<
UIMessage
>
status
Link copied to clipboard
val
status
:
ChatStatus