Fix "ToolInvocation must have a result" error by either adding `execute` function to tool or using `useChat` with `addToolOutput` for client-side result handling.