Keep the Vercel AI SDK and add Caveman Middleware: a native withCaveman adapter that shrinks large tool results before each model call, originals recoverable.