Back to prompt library
Initialize Vercel AI SDK Routing Agent
Linked challenge: Real-Time Gulf Maritime Port Logistics Exception Handler with AI SDK
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Import `{ generateText, tool }` from `'ai'`. Import `z` from `'zod'`. Create a tool `checkPortCongestion` that takes `portName: z.string()` and returns current queue hours.