The workflow model.

TypeLLM makes the workflow the unit of inference.

Chat modelDecision modelWorkflow model
PurposeGenerateDecideExecute
UnitMessageDecisionWorkflow
ExampleGPTJevTypeLLM

Switch from chat + decision model to TypeLLM

Safer
No out-of-schema hallucinations.
Simpler
No orchestration code to build or maintain.
Cheaper
The context is read and billed once, not once per step.
Faster
No round trips from multiple API calls, and independent fields run in parallel.
53%cheaper
1.9×faster
Measured on the support ticket workflow.
Support ticket workflowAPI callsInput tokensTime (s)
TypeLLM11491.38
Chat + decision model43202.60