Builder
Since
0.3.0-beta01
Functions
Link copied to clipboard
fun build(fallback: (UIMessagePart.ToolUI) -> TRenderResult): ToolPartHandlerRegistry<TRenderResult>
Link copied to clipboard
fun <TInput, TOutput, TContext> register(tool: Tool<TInput, TOutput, TContext>, render: (UIToolInvocation<TInput, TOutput>) -> TRenderResult): ToolPartHandlerRegistry.Builder<TRenderResult>
Bind a typed renderer for tool. The renderer receives a UIToolInvocation with input / output already deserialized via the tool's own serializers.