← Back to all tweets

Tweet by @patloeber

View original on X

Gemini 🤝 @aisdk We added a new guide to our docs🎉Learn how to build agents with Gemini and the AI SDK by Vercel!

Google AI Developers
Google AI Developers
@googleaidevs

Build a market research agent with Gemini and @aisdk by Vercel. Learn how to research trends with Google Search, extract structured data into charts, and generate a final PDF report.

A code editor screen with a dark background displays JavaScript-like code demonstrating the Gemini AI SDK. At the top, the Gemini logo appears next to the text "Gemini," separated by a vertical line from an upward-pointing triangle icon and the text "AI SDK." The code defines two `await` operations: one calls `generateText` to search the web for "market trends for plant-based milk" using the "gemini-2.5-flash" model and `google_search` tool; the other calls `generateObject` to structure the `marketTrends` text into `chartData` using the same model and a specified schema.
121
Reply