Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++
398 B
Raw Blame
import { validateOrders } from './validation.ts';
import { aggregateOrders } from './aggregation.ts';

export type Order = { customer: string; priceCents: number; quantity: number; cancelled?: boolean };
export type Summary = { customer: string; totalCents: number; units: number };

export function summarizeOrders(orders: Order[]): Summary[] {
  return aggregateOrders(validateOrders(orders));
}