JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 73
  • Score
    100M100P100Q77313F
  • License Apache-2.0

Actor types, constraints, and evidence helpers for Loop Engine transitions

Package Exports

  • @loop-engine/actors

Readme

@loop-engine/actors

npm Apache-2.0 Loop Engine

Actor types, authorization logic, and AI evidence helpers for Loop Engine transitions.

Install

npm install @loop-engine/actors

Quick Start

import { isAuthorized, buildAIActorEvidence } from "@loop-engine/actors";

const authorized = isAuthorized(
  { type: "human", id: "manager@acme.com" as never },
  { transitionId: "approve" as never, from: "pending" as never, to: "approved" as never, signal: "approve" as never, allowedActors: ["human"] }
);

const evidence = await buildAIActorEvidence({
  modelId: "gpt-4o",
  provider: "openai",
  reasoning: "Demand exceeds reorder point",
  confidence: 0.88,
  prompt: "Recommend replenishment action."
});

https://loopengine.io/docs/packages/actors

License

Apache-2.0 © Better Data, Inc.