Software-Defined Control Logic Engine with Vercel AI SDK
Industrial control logic is rapidly transitioning from dedicated hardware PLCs to cloud-connected software-defined control containers. You will build an edge-to-cloud distributed control logic orchestrator using Vercel AI SDK to stream real-time operational adjustments directly to edge execution runtimes. The pipeline must support continuous stream processing with zero stream dropouts and sub-100ms response delivery.
What you are building
The core problem, expected build, and operating context for this challenge.
Develop a TypeScript control system using Vercel AI SDK streaming capabilities to deliver low-latency dynamic control directives to soft-PLCs.
How work is evaluated
Evaluates streaming validity and response time of generated software-defined control directives.
Challenge datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
stream_completion_check
Validates that stream closed successfully with valid JSON EOF marker.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
first_chunk_latency_ms
Time to receive first control streaming chunk • target: 80 • range: 0-300
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
What you should walk away with
Utilize Vercel AI SDK `streamText` and `generateObject` primitives for streaming soft-PLC control directives
Implement edge state updates using TypeScript async generators
Construct soft-PLC execution adapters consuming JSON control streams
Evaluate streaming throughput and chunk latency on simulated industrial edge nodes
Reference links and supporting material
Continuous process telemetry records from high-speed bottling and packaging machinery.
Challenge setup
Evaluates streaming validity and response time of generated software-defined control directives.
Challenge input
JSON specifying line_demand_units_sec and current_belt_speed_m_s
AI SDK
Required framework assignment.
Evaluated output
Streamed JSON chunks culminating in target_belt_speed_m_s and motor_voltage_v
- Validates that stream closed successfully with valid JSON EOF marker.
- Time to receive first control streaming chunk • target: 80 • range: 0-300
- Benchmark: Software-Defined Control Streaming Benchmark
- First Chunk Latency Ms target: 80
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.
View technical recipe
Configured tools
- Vercel AI SDK · Required
- Vercel AI SDK · Required
Evaluation contract
- stream_completion_check · Weight 1
- first_chunk_latency_ms · Weight 1
Metrics
- first_chunk_latency_ms · Target 80
Benchmarks
- Software-Defined Control Streaming Benchmark
- general
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON specifying line_demand_units_sec and current_belt_speed_m_s
Output: Streamed JSON chunks culminating in target_belt_speed_m_s and motor_voltage_v
Execution harness: JavaScript
Evaluation tools
- AI SDK · Agent & Streaming SDK
Recipe freeze marker
No recipe freeze time is recorded.