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
/
OutputChoice
Output
Choice
fun
OutputChoice
(
options
:
Iterable
<
String
>
,
name
:
String
=
"choice"
,
description
:
String
?
=
null
)
:
Output
<
String
>
(
source
)
fun
OutputChoice
(
vararg
options
:
String
,
name
:
String
=
"choice"
,
description
:
String
?
=
null
)
:
Output
<
String
>
(
source
)
Since
0.3.0-beta01
fun
<
T
>
OutputChoice
(
options
:
Iterable
<
T
>
,
encode
:
(
T
)
->
String
,
decodeChoice
:
(
String
)
->
T
,
name
:
String
=
"choice"
,
description
:
String
?
=
null
)
:
Output
<
T
>
(
source
)