Skip to content

TypeSafe Connector for Mule 4 ​

Think: Smart If Statements.

Jev is TypeSafe's System One model. It turns unstructured JSON state and typed questions into a value a Choice router, filter, or expression can read. The flow owns the if: the threshold, the route, and the side effect. This connector exists to make that if possible in Mule.

Jev ​

Use these pages when you need the official project behind a connector concept:

TopicOfficial page
What Jev isIntroduction
System OneSystem One
How to design the ifHow to build with System One
StateState
Choice, Score, and NoulPrimitives
When to act on an answerConfidence
jev-latest and model cardsModels
POST /{apiVersion}/systemoneHTTP API
AnnouncementIntroducing System One Models and Jev

Why use it? ​

  • Typed decisions — Noul (yes/no probability), Choice (classification), and Score (ordered rubric) answers.
  • Native DataSense — JSON input and output metadata, including answer-specific metadata for reusable question sets.
  • Six routes — TypeSafe, OpenRouter, Vercel AI Gateway, Cloudflare Workers AI, compatible gateways, and an in-process mock.
  • Resilient execution — ordered provider fallbacks, retry handling, optional caching, budgets, and usage statistics.
  • Flow-ready governance — local policy evaluation returns ACCEPT, REVIEW, or REJECT.
  • Scale operations — bounded-concurrency batch evaluation and cost-efficient filtering.
  • Operational signals — polling sources for drift, budget thresholds, and successful provider failovers.

Core concepts ​

TermMeaning
StateThe JSON context being evaluated, such as a ticket, order, candidate, or message.
NoulA yes/no question whose answer is the probability of “yes.”
ChoiceA classification question that returns one option and a probability distribution.
ScoreAn ordered rubric that returns a score, level distribution, and derived level.
Question setA reusable JSON file under src/main/resources/questions/.
PolicyLocal thresholds that convert answers into an ACCEPT, REVIEW, or REJECT action.

Routes ​

RouteAuthenticationNotes
TypeSafeAPI keyDirect System One access and model listing.
OpenRouterAPI keyJev through OpenRouter, including provider-reported cost.
Vercel AI GatewayGateway key or OIDC tokenJev through Vercel AI Gateway.
Cloudflare Workers AIAccount ID and API tokenCloudflare model endpoint; model listing is unavailable.
Compatible GatewayOptional bearer keyA configurable endpoint that implements the System One contract.
MockNoneIn-process, deterministic answers for development and tests.

Keyed routes can define ordered fallback routes. A fallback is attempted for connectivity, timeout, rate-limit, and overload failures—not for invalid requests or authorization failures.

Operations ​

Decide and select ​

Policy and utilities ​

See the operations overview for inputs, outputs, and provider-call behavior.

Sources ​

  • On Drift Detected — watches no-match rate, confidence, and answer-distribution changes.
  • On Budget Threshold — fires when calls or input tokens cross a configured percentage.
  • On Provider Failover — emits successful fallback events.

See Sources for payloads and configuration.

Requirements ​

  • Mule Runtime 4.9.0 or later
  • Java 17
  • Maven 3.9.x

Learn more ​

Released under the MIT License.