npm.io
0.3.5 • Published 2d ago

@neutrome/lilsdk

Licence
Version
0.3.5
Deps
1
Size
76 kB
Vulns
0
Weekly
0

@neutrome/lilsdk

High-level TypeScript SDK for transport-neutral model authoring on top of @neutrome/lil-engine.

import { createTwoPassExecutor, type Executor } from "@neutrome/lilsdk";
import { retry } from "@neutrome/lilsdk/loops";
import {
  observeExecutionStream,
  writeReasoning,
} from "@neutrome/lilsdk/stream";
import { connectTools } from "@neutrome/lilsdk/tools";

This package owns:

  • executor and tool contracts
  • @neutrome/lilsdk/primitives: structural program helpers such as walk, map, reduce, has, find, indexOf, all, and any
  • @neutrome/lilsdk/synthetic: request/message synthesis helpers such as createModelProgram, makeMessage, makeToolCall, makeToolResponse, and appendToolInteraction
  • @neutrome/lilsdk/tools: connectTools tool-call loop
  • @neutrome/lilsdk/stream: stream observation and output helpers
  • @neutrome/lilsdk/loops: retry, fallback, and createGoalExecutor control-flow helpers
  • @neutrome/lilsdk/managed/twoPassExecutor: createTwoPassExecutor and model invocation helpers
  • multi-pass authoring primitives used by virtual models

The root export is intentionally small: SDK contracts plus the most common high-level two-pass executor helper.

It intentionally does not own HTTP routing, provider credentials, target resolution, or provider JSON conversion. Those live in @neutrome/open-ai-router and @neutrome/lil-engine.