In this article, I’ll show how to integrate Jev, TypeSafe’s newest type-safe model ( Introducing System One Models & Jev - TypeSafe AI Blog ) into a Pega process and make efficient use of its speed and structured output.
I called Jev through its REST API. Getting access is simple – just follow the quickstart instructions here:
In this example, I call the Pega GenAI connector and the Jev API in parallel to classify the same email, then compare the results. The goal is to assign the email to one of eight categories: Add Product, Additional Order, Cancel Order, Change Shipping Address, Line-Item Removal, Quality Change, RDD Change and Replace Product.
For my example, I used the following customer email, written in German:
Guten Tag,
Es ist ein direkte Nachfolgerartikel, aber von anderem Hersteller.
82721 - Hellmann's Dressing Balsamico 6x1L Flasche
Mit freundlichen Grüßen,
Using the Pega GenAI connector, I received the following response.
This request took 2 seconds and consumed 507 tokens in total.
2026-09-28 20:51:36,943 [itions=[0,1,2,3,4,5]] [ STANDARD] [ ] [ ] (Provider_Pega_PegaGenAI.Action)
{choices=[ChatCompletionResponseChoice{finishReason='stop', message=com.pega.platform.genai.models.ChatCompletionMessage@4b572d1d}], usage=ChatCompletionResponseUsage{promptTokens=402, completionTokens=105, totalTokens=507}, message='null', httpStatusCode=200, created=0, model='bedrock/anthropic/Claude-Haiku-45/1.0', object='null'}
The same request through the Jev REST API took just 469 ms.
2026-09-28 21:00:17,631 ] [ STANDARD] [ ] [ Complain:01.01.01] (.internal.ComponentsHttpClient) INFO lab-24348-eu-central-1|127.0.0.1|Rest|application|v2|assignments_var_actions_var062d43e11e85a35e2846a51b53f5d001|A1KCLT9HZYZ7A6SOXDC3QC434BDEQ9MW2A|Rule-Connect-REST.Classify-ClassifyEmailAPI.ClassifyEmail HXLGBFPNEKYHPA1NAA0YIRI8G5SK0MPJ6A - Finished connector client invocation in 469 ms
It processed 414 tokens in total.
Sample output from Jev looks like below
{
"model": "jev-1.13.0",
"answers": {
"bug_severity": {
"type": "score",
"score": 6.25,
"confidence": 0.63,
"legend": {
"0": "Add Product",
"1": "Additional Order",
"2": "Cancel Order",
"3": "Change Shipping Address",
"4": "Line-Item Removal",
"5": "Quality Change",
"6": "RDD Change",
"7": "Replace Product"
},
"probabilities": {
"0": 0.07,
"1": 0.02,
"2": 0.0,
"3": 0.0,
"4": 0.0,
"5": 0.06,
"6": 0.01,
"7": 0.84
}
}
},
"usage": {
"input_tokens": 393,
"output_tokens": 20
}
}
This Json response can be used for various purposes. In my example I am showing it on the screen for the users to make a decision.
Performance-wise, the gain is significant: with Jev, processing time dropped by more than 75% (from 2 seconds to 469 ms) for a comparable number of tokens. Jev also returns structured responses, so the output can be consumed directly in the Pega process without extra parsing of free-form text.
What makes this especially interesting is that Pega isn’t tied to any single state-of-the-art (SOTA) model. You can plug any model into the architecture and realise productivity gains. Jev can complement the LLM for faster decision making, routing, classification or saftey checks. (Ref: What Is Jev? A Guide to TypeSafe AI’s System One Model )




