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
/
ProviderToolFactoryOptions
Provider
Tool
Factory
Options
class
ProviderToolFactoryOptions
<
TInput
,
TOutput
,
TContext
>
(
source
)
Since
0.3.0-beta01
Members
Properties
args
Link copied to clipboard
val
args
:
Map
<
String
,
JsonElement
>
description
Link copied to clipboard
val
description
:
String
?
execute
Link copied to clipboard
val
execute
:
suspend
ToolExecutionContext
<
TContext
>
.
(
TInput
)
->
TOutput
?
metadata
Link copied to clipboard
val
metadata
:
Map
<
String
,
JsonElement
>
name
Link copied to clipboard
val
name
:
String
?
needs
Approval
Link copied to clipboard
val
needsApproval
:
suspend
(
input
:
TInput
,
options
:
ToolPredicateOptions
<
TContext
>
)
->
Boolean
?
on
Input
Available
Link copied to clipboard
val
onInputAvailable
:
suspend
(
toolCallId
:
String
,
input
:
TInput
)
->
Unit
?
on
Input
Delta
Link copied to clipboard
val
onInputDelta
:
suspend
(
streamingId
:
String
,
delta
:
String
)
->
Unit
?
on
Input
Start
Link copied to clipboard
val
onInputStart
:
suspend
(
streamingId
:
String
)
->
Unit
?
output
Schema
Link copied to clipboard
val
outputSchema
:
Schema
<
TOutput
>
?
output
Serializer
Link copied to clipboard
val
outputSerializer
:
KSerializer
<
TOutput
>
to
Model
Output
Link copied to clipboard
val
toModelOutput
:
(
TOutput
,
ToolPredicateOptions
<
TContext
>
)
->
ToolResultOutput
?