Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.
Python calibrationclassificationdecision-modelhuggingfacejevmodernbertmultilingualnlppythonpytorchroutingtyped-decisionszero-shot
export const VERSION = "0.1.0";
export { Agent, checkQuestion, toInternal, defaultTokenizer } from "./agent.js";
export type { LongPredictOptions, LongResult, LongUsage, LongAnswer, LongWindow } from "./predict-long.js";
export type {
QuestionDef,
SystemOneResult,
ChoiceAnswer,
ScoreAnswer,
NoulAnswer,
SystemAnswer,
SystemUsage,
ActionInfo,
AgentCfg,
AgentOptions,
PredictOptions,
} from "./agent.js";
export { createNodeProvider, createWebProvider, feed, feedHead, loadNodeBundle, loadWebBundle, PINNED_REVISIONS, resolveRevision } from "./providers.js";
export type { Batch, SessionProvider, ProviderOptions, NodeBundle, WebBundle } from "./providers.js";
export { Router, normaliseName, DEFAULT_MODELS, digestsFromEnv, _digestsFromEnv } from "./router.js";
export type { RoutedResult, RoutedLongResult, RoutedLongPredictOptions, RouteDecision, ModelName, ModelSpec, BatchRequest, PredictBatchOptions, RouterOptions, RouteOptions } from "./router.js";
export { shortlistChoice, predictShortlist, predictTournament, embedFnFromAgent, cached, cachedEmbedFn, DEFAULT_SHORTLIST_K, DEFAULT_SHORTLIST_MAXSIZE, DEFAULT_TOURNAMENT_GROUP } from "./shortlist.js";
export type { EmbedFn, ShortlistMeta, TournamentMeta, CacheInfo, CachedEmbedFn } from "./shortlist.js";
export { analyse, isEnglish, guessLatinLanguage, detectScript } from "./lang.js";
export type { AnalyseResult, LatinProfile } from "./lang.js";
export { cleanEmailBody, emailState } from "./email.js";
export {
PredictContext,
HookRegistry,
BaseHook,
normaliseHooks,
dispatch,
aggregateUsage,
composeHooks,
defaultHooks,
setDefaultHooks,
addDefaultHook,
clearDefaultHooks,
HOOK_EVENTS,
} from "./hooks.js";
export type { Hook, HookEvent, HookArg, PredictHook, PredictHookArg } from "./hooks.js";
export { OptionStabilityHook, makeVariants, decideReliability, calibrateReliability } from "./option-stability.js";
export type {
OptionStabilityOptions, OptionStabilityReport, StabilityProbe, ReliabilityDecision,
StabilityVariant, VariantOptions, CalibrationOptions,
} from "./option-stability.js";
export { triageQuestions, emailQuestions, guardQuestions, moderationQuestions, routerQuestions } from "./presets.js";
export {
decide,
decideBatch,
planFromJsonSchema,
questionsFromJsonSchema,
answersToJson,
SchemaError,
MAX_PROPERTIES,
MAX_OPTIONS,
MAX_SCORE_LEVELS,
} from "./structured.js";
export type { DecisionResult, DecideOptions, DecideBatchOptions, DecideRunner, PlannedField } from "./structured.js";
export {
renderOptions,
serializeState,
buildSequence,
buildQuestionPrefix,
sequenceWithState,
collapsedOptions,
softmax,
confidenceFromProbs,
answerConfidence,
checkMinConfidence,
checkMinConfidenceMap,
flagLowConfidence,
optionBucket,
resolveMinConfidence,
clampTemperature,
tempBucket,
applyBinningMap,
checkBinningMap,
collateItems,
TEMP_MIN,
TEMP_MAX,
} from "./common.js";
export type {
QType,
InternalQ,
CollateItem,
CollatedBatch,
QuestionPrefix,
SequenceStats,
OptionStats,
MinConfidence,
MinConfidenceMap,
MinConfidenceBucket,
MinConfidenceKey,
BinningEntry,
BinningMap,
} from "./common.js";
export { q, best, topK, isConfident } from "./dx.js";
export { bpeEncode, metaspaceEncode, encodeWithData, parseTokenizerJson, loadTokenizerJson, CHECKPOINT_IDS, SPECIAL_ALIASES, METASPACE_REPLACEMENT } from "./tokenizer.js";
export type { TokenizerLike, TokenizerData, TokenizerIds, PreTokenizerKind } from "./tokenizer.js";