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
/
StructuredObject
Structured
Object
class
StructuredObject
<
RESULT
,
INPUT
>
(
options
:
StructuredObjectOptions
<
RESULT
,
INPUT
>
)
(
source
)
Since
0.3.0-beta01
Members
Constructors
Structured
Object
Link copied to clipboard
constructor
(
options
:
StructuredObjectOptions
<
RESULT
,
INPUT
>
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
api
Link copied to clipboard
val
api
:
String
error
Link copied to clipboard
val
error
:
Throwable
?
id
Link copied to clipboard
val
id
:
String
loading
Link copied to clipboard
val
loading
:
Boolean
object
Value
Link copied to clipboard
val
objectValue
:
RESULT
?
raw
Value
Link copied to clipboard
val
rawValue
:
JsonElement
?
state
Link copied to clipboard
val
state
:
StateFlow
<
StructuredObjectPhase
<
RESULT
>
>
value
Link copied to clipboard
val
value
:
RESULT
?
Functions
clear
Link copied to clipboard
fun
clear
(
)
stop
Link copied to clipboard
fun
stop
(
)
submit
Link copied to clipboard
suspend
fun
submit
(
input
:
INPUT
)