ALGAL
Build durable agent programs with typed decision cells, replayable effects, and explicit model-routing policy.
Build durable agent programs with typed decision cells, replayable effects, and explicit model-routing policy.
ALGAL can send a task prompt and typed questions through its optional Jev adapter. Its model-router example asks for difficulty, scope, ambiguity, stakes, task kind, and frontier-worthiness. A fitted expression combines the answers with text features to choose frontier or standard; probe tasks route to standard. Other providers are also supported.
Would a frontier model materially improve the result for this task?
A first-session task prompt. This source example defines the request fields and questions but does not provide a concrete runtime prompt.
The router takes the first-session task text as input.
An expression computes prompt-shape features, then one bounded decision call asks typed questions about difficulty, scope, ambiguity, stakes, kind, and frontier-worthiness.
A fitted expression combines the features and answers. A probe-kind gate selects standard; otherwise the score selects frontier or standard.
It separates fast model judgments from deterministic routing policy: a fitted expression combines the scores and a request-kind gate can override the resulting route.