SDK

Find the public TypeScript entry points for building and hosting Tardigrade actors.

Install

bun add tardie

Most applications can import their actor definition, agent components, policies, and public types from tardie:

ts
import {
  actor,
  agentMethods,
  budget,
  codeMode,
  compaction,
  infer,
  nativeOutput,
  system,
  tool
} from "tardie"

Core primitives

The root entry point exports the common actor and component types. Lower-level integrations can import each primitive directly:

tardie/core/eventEvent
tardie/core/machineMachine
tardie/core/projectionProjection, materialization, and replay
tardie/core/componentComponents, component output, and composition
tardie/core/viewViewAlgebra
tardie/core/intentIntent transitions
tardie/core/effectExternal effect transitions
tardie/core/transitionThe transition union and transition projections
tardie/core/actorActors, methods, contracts, and references
ts
import type { Machine } from "tardie/core/machine"
import type { Projection } from "tardie/core/projection"
import type { ComponentOutput } from "tardie/core/component"