Back to Prompt Library
implementation
AI SDK Routing and Tools
Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.
Linked challenge: NGC2 Edge Intelligence: Zero-Trust Sensor Fusion with AI SDK and Ray
Format
Text-first
Lines
1
Sections
1
Linked challenge
NGC2 Edge Intelligence: Zero-Trust Sensor Fusion with AI SDK and Ray
Prompt source
Original prompt text with formatting preserved for inspection.
1 lines
1 sections
No variables
0 checklist items
Using Vercel AI SDK, create a server-side route that accepts a stream of sensor data. Define two tools: `queryRayInference` (which calls a Ray Serve endpoint) and `verifyCommandAuthority`. Use `streamText` to provide a real-time tactical summary of the incoming data, ensuring it only executes if authority is verified.
Adaptation plan
Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.
Keep stable
Hold the task contract and output shape stable so generated implementations remain comparable.
Tune next
Update libraries, interfaces, and environment assumptions to match the stack you actually run.
Verify after
Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.