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
/
Output
/
Companion
Companion
object
Companion
(
source
)
Members
Functions
array
Link copied to clipboard
fun
<
T
>
array
(
elementSerializer
:
KSerializer
<
T
>
,
name
:
String
=
elementSerializer.descriptor.serialName.substringAfterLast('.') + "[]"
,
description
:
String
?
=
null
)
:
Output
<
List
<
T
>
>
choice
Link copied to clipboard
fun
choice
(
options
:
Iterable
<
String
>
,
name
:
String
=
"choice"
,
description
:
String
?
=
null
)
:
Output
<
String
>
fun
choice
(
vararg
options
:
String
,
name
:
String
=
"choice"
,
description
:
String
?
=
null
)
:
Output
<
String
>
json
Link copied to clipboard
fun
json
(
name
:
String
=
"json"
,
description
:
String
?
=
null
)
:
Output
<
JsonElement
>
obj
Link copied to clipboard
fun
<
T
>
obj
(
serializer
:
KSerializer
<
T
>
,
name
:
String
=
serializer.descriptor.serialName.substringAfterLast('.')
,
description
:
String
?
=
null
)
:
Output
<
T
>