Challenge

Stablecoin Settlement Engine with AI SDK and Gemini 2.5 Flash

Cross-border stablecoin transactions require real-time compliance validation and liquidity routing before final ledger settlement. Build an automated settlement agent using Vercel AI SDK and Gemini 2.5 Flash to inspect transaction metadata, run AML rules, and achieve 98% classification accuracy under 300ms latency.

CybersecurityHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Implement a real-time stablecoin compliance and settlement verification pipeline using Vercel AI SDK paired with Gemini 2.5 Flash.

Delivery guide

How work is evaluated

Evaluation

Evaluates transaction risk classification accuracy, execution latency, and adherence to structured tool calling schemas.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
3 scoring checks
Binary
3 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

schema_conformance

Checks if output strictly matches expected Zod schema structure.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

classification_accuracy

Ratio of correctly classified safe vs risky transactions. • target: 0.98 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 3

p95_latency_ms

95th percentile latency per transaction evaluation in milliseconds. • target: 300 • range: 0-1000

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Stream transaction payload verification using Vercel AI SDK tools

  • Integrate Gemini 2.5 Flash for low-latency transaction risk evaluation

  • Implement structured schema validation for stablecoin mint/burn compliance

  • Enforce sub-300ms SLA for automated settlement approval workflows

Resources and assets

Reference links and supporting material

Dataset notes

Synthetic dataset of 1,000 cross-border stablecoin settlement payloads containing wallet histories, geo-location IPs, and transfer amounts.

How this agent runs

Evaluates transaction risk classification accuracy, execution latency, and adherence to structured tool calling schemas.

Challenge input

JSON array of transaction payloads including sender, receiver, amount, currency, and origin IP

AI SDK

TypeScript-native agent orchestration framework.

Gemini 2.5 Flash

Low latency inference model ideal for high-throughput streaming evaluation.

Evaluated output

JSON array of decision objects containing decision, risk_score, and rule_triggers

Checks for
  • Checks if output strictly matches expected Zod schema structure.
  • Ratio of correctly classified safe vs risky transactions. • target: 0.98 • range: 0-1
  • 95th percentile latency per transaction evaluation in milliseconds. • target: 300 • range: 0-1000
Proof of success
  • Benchmark: FintechGuard-AML-v1
  • Classification Accuracy target: 0.98
  • 1 public reference case
Runtime evidence
  • JavaScript execution harness
  • javascript sandbox (unavailable on Versalist)
View technical recipe

Configured tools

Action Space
  • Vercel AI SDK · Optional
  • Google Gemini · Optional
Policy Serving
  • Gemini 2.5 Flash · Required
Orchestration
  • Vercel AI SDK · Optional

Evaluation contract

  • schema_conformance · Weight 1
  • classification_accuracy · Weight 1
  • p95_latency_ms · Weight 1

Recipe state

This is a preview. The configuration can change before the evaluation recipe is locked.

Frequently Asked Questions about Stablecoin Settlement Engine with AI SDK and Gemini 2.5 Flash