Back to Prompt Library
planning

Vercel AI SDK Setup and Initial Agent

Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.

Linked challenge: Real-time Adaptive Gaming UI Agent

Format
Text-first
Lines
1
Sections
1
Linked challenge
Real-time Adaptive Gaming UI Agent

Prompt source

Original prompt text with formatting preserved for inspection.

1 lines
1 sections
No variables
0 checklist items
Initialize a new Next.js project with Vercel AI SDK. Create an API route `api/chat` that acts as your primary agent endpoint. Define a basic agent that uses GPT-5 Pro (or a placeholder for now) to respond to a simple 'What should I do next in the game?' query. Show the `api/chat` handler code, including Vercel AI SDK imports and model initialization.

Adaptation plan

Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.

Keep stable

Preserve the role framing, objective, and reporting structure so comparison runs stay coherent.

Tune next

Swap in your own domain constraints, anomaly thresholds, and examples before you branch variants.

Verify after

Check whether the prompt asks for the right evidence, confidence signal, and escalation path.