0xBUFF / docs

API reference

Look up public functions, constants and types.

Import from @0xbuff/preceptor. The package root is the supported entry point. Installed TypeScript declarations give the exact signatures.

Functions

FunctionReturnBehavior
planInstruction(host, request)PlanningResultValidate input and choose a fixed instructional plan.
runInstruction(host, request, ports?, options?)Promise of SessionResultValidate, plan and coordinate optional scoped operations and model assistance.
projectCommittedSummary(authorization, previous, event, knownEvent?)SummaryProjectionResultProject an authorized committed event against prior state and receipt.

Planning and projection are synchronous. The session runner is asynchronous even without a model. Check status before accessing variant-specific fields.

Constants

ExportValue
POLICY_REVISIONpreceptor-policy-v1
SUMMARY_SCHEMA_VERSIONpreceptor-summary-v1
SESSION_LIMITSFrozen ceilings listed in contracts.

Public types

AreaTypes
PolicyCapability, CapabilityDenial, HostPolicy, InstructionIntent, InstructionMode, InstructionPlan, InstructionRequest, LessonReference, PlanningResult, TeachingStrategy
SessionsHistoryMessage, ModelIdentity, ReportedUsage, SessionFailure, SessionLimits, SessionOptions, SessionProvenance, SessionRequest, SessionResult, SessionUsage, ToolOutcome, ToolReason
Ports and toolsLessonResponse, ModelInput, ModelPort, ModelResponse, PracticeRequest, PracticeResponse, SessionPorts, ToolContext, ToolDescriptor, ToolRequest
MemoryMemoryFact, MemoryForgetRequest, MemoryInvocation, MemoryKind, MemoryMutationResponse, MemoryProposal, MemoryRecallQuery, MemoryRecallRequest, MemoryRecallResponse, MemoryRememberRequest, MemoryLifecyclePort, MemoryPort
SummariesActiveSummary, CommittedSummaryEvent, SummaryAuthorization, SummaryContext, SummaryLineage, SummaryProjection, SummaryProjectionResult, SummaryReadAuthorization, SummaryReadResponse, SummaryReceipt, SummaryReference, SummaryReadPort

See the v0.0.2 public entry point for the export list and contracts for result variants and bounds.

On this page