Provider Tool Factory Options Builder
Since
0.3.0-beta01
Functions
Link copied to clipboard
fun args(value: Map<String, JsonElement>): ProviderToolFactoryOptionsBuilder<TInput, TOutput, TContext>
Link copied to clipboard
Link copied to clipboard
fun execute(value: suspend ToolExecutionContext<TContext>.(TInput) -> TOutput?): ProviderToolFactoryOptionsBuilder<TInput, TOutput, TContext>
Link copied to clipboard
fun metadata(value: Map<String, JsonElement>): ProviderToolFactoryOptionsBuilder<TInput, TOutput, TContext>
Link copied to clipboard
fun needsApproval(value: suspend (input: TInput, options: ToolPredicateOptions<TContext>) -> Boolean?): ProviderToolFactoryOptionsBuilder<TInput, TOutput, TContext>
Link copied to clipboard
fun onInputAvailable(value: suspend (toolCallId: String, input: TInput) -> Unit?): ProviderToolFactoryOptionsBuilder<TInput, TOutput, TContext>
Link copied to clipboard
fun onInputDelta(value: suspend (streamingId: String, delta: String) -> Unit?): ProviderToolFactoryOptionsBuilder<TInput, TOutput, TContext>
Link copied to clipboard
fun onInputStart(value: suspend (streamingId: String) -> Unit?): ProviderToolFactoryOptionsBuilder<TInput, TOutput, TContext>
Link copied to clipboard
fun outputSchema(value: Schema<TOutput>?): ProviderToolFactoryOptionsBuilder<TInput, TOutput, TContext>
Link copied to clipboard
fun outputSerializer(value: KSerializer<TOutput>): ProviderToolFactoryOptionsBuilder<TInput, TOutput, TContext>
Link copied to clipboard
fun toModelOutput(value: (TOutput, ToolPredicateOptions<TContext>) -> ToolResultOutput?): ProviderToolFactoryOptionsBuilder<TInput, TOutput, TContext>