ToolCallRepairFunction
Namespace: Vercel.AI.GenerateText
public delegate Task<GeneratedToolCall?> ToolCallRepairFunction(ToolCallRepairContext context)Attempts to repair a tool call that failed to parse. Returns the repaired call, or null to keep the error.
Maps to ToolCallRepairFunction.
Parameters
| Name | Type | Description |
|---|---|---|
context |
ToolCallRepairContext |
Returns: Task<GeneratedToolCall>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product