Skip to content
Effect Days 2026 Get your ticket

TypeSafeDecisionModel

TypeSafe's System One implementation of DecisionModel.

4 exports Added in v4.0.0 Source

Constructors

make

Added in v4.0.0 Source

Builds a decision service. Provider values are preserved without normalization; DecisionModel validates distributions and derives rating labels.

Signature

declare const make: (...args: [options: {
readonly model: Model | string & {};
}]) => Effect<DecisionModel, never, TypeSafeClient>

model

Added in v4.0.0 Source

Creates a decision model with TypeSafe provider metadata.

Signature

declare function model(model: Model | string & {}): Model<"typesafe", DecisionModel, TypeSafeClient>

Layers

layer

Added in v4.0.0 Source

Provides DecisionModel using an existing TypeSafeClient.

Signature

declare function layer(options: {
readonly model: Model | string & {};
}): Layer<DecisionModel, never, TypeSafeClient>

Models

Model type

Added in v4.0.0 Source

Known TypeSafe model identifiers. Constructors also accept custom identifiers.

Signature

type Model = "jev-latest" | "jev-preview" | "jev-1.13.0"