How to use Genkit tools from dotprompt file

Did you know? 🤔 You can define and use tools directly from your dotprompt file with Genkit! This feature has been part of the framework since launch, and we've just updated our documentation to show you how easy it is to use. Check it out → http://goo.gle/46vdvPx

  • A dark gray code block with rounded corners on a vibrant orange and yellow gradient background defines an AI model. The code specifies `model: googleai/gemini-2.5-pro`, `tools: [search_flights, search_hotels]`, and an `input` schema with `destination: string`. Below this, a prompt reads: `Plan a trip to {{destination}}, using the available tools to find flights and hotels.`, with "2.5-pro" and "using" highlighted in orange, and "the" in light blue.
Like
Reply

To view or add a comment, sign in

Explore content categories