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
/
StructuredObjectGenerator
/
generate
generate
suspend
fun
generate
(
input
:
GenerationInput
)
:
StructuredObjectFinish
<
RESULT
>
(
source
)
One-shot: drives the stream to
StructuredObjectPhase.Done
and returns the typed result.