API Reference

API Reference

Complete type reference for all @noetic/core exports, organized by category.

Builders

ExportKindDescription
step.run()functionCustom async function step
step.llm()functionLLM inference step
step.tool()functionTool invocation step
branch()functionConditional routing
fork()functionParallel execution (race/all/settle)
spawn()functionIsolated child execution
channel()functionTyped communication channel

Patterns

ExportKindDescription
react()functionReAct agent loop
ralphWiggum()functionSelf-refining agent
compilePlan()functionStatic plan compilation
adaptivePlan()functionDynamic plan with revision
PlanNodeSchemaZod schemaValidator for PlanNode objects

Runtime

ExportKindDescription
InMemoryRuntimeclassBuilt-in runtime implementation
ContextImplclassContext implementation
ItemLogImplclassItem log implementation
ChannelStoreclassChannel state management
execute()functionTop-level step executor
executeLLM()functionLLM step executor
executeRun()functionRun step executor
executeTool()functionTool step executor
executeBranch()functionBranch step executor
executeFork()functionFork step executor
executeSpawn()functionSpawn step executor
executeLoop()functionLoop step executor

Memory

ExportKindDescription
workingMemory()functionWorking memory layer factory
observationalMemory()functionObservational memory layer factory
durableTaskState()functionDurable task state layer factory
assembleView()functionMerge layer outputs into prompt
allocateBudgets()functionDistribute token budgets across layers
checkBudget()functionVerify budget constraints
initLayers()functionInitialize all memory layers
recallLayers()functionRun recall on all layers
storeLayers()functionRun store on all layers
disposeLayers()functionDispose all memory layers
completeLayers()functionRun onComplete on all layers
spawnLayers()functionRun onSpawn on all layers
returnLayers()functionRun onReturn on all layers
createLayerStateStore()functionCreate layer state storage
createScopedStorage()functionCreate scoped storage adapter
resolveScopeKey()functionResolve scope key for a layer
SlotconstMemory slot constants

Until

ExportKindDescription
until.maxSteps()functionStop after N iterations
until.maxCost()functionStop after USD cost limit
until.maxDuration()functionStop after time limit
until.noToolCalls()functionStop when LLM responds without tool calls
until.verified()functionStop when verify function passes
until.converged()functionStop when output stabilizes
until.outputContains()functionStop when output contains a marker
until.custom()functionWrap a custom predicate
all()functionCombine predicates with AND
any()functionCombine predicates with OR

Observability

ExportKindDescription
SpanImplclassSpan implementation
InMemoryExporterclassIn-memory trace exporter
NoopExporterclassNo-op trace exporter
GenAIconstSemantic convention attribute keys
ToolAttrconstTool attribute constants

Errors

ExportKindDescription
NoeticErrorImplclassError implementation
isNoeticError()functionType guard for NoeticError

Type Reference Pages

  • Step Types -- Step, StepRun, StepLLM, StepTool, StepBranch, StepFork, StepSpawn, StepLoop
  • Channel Types -- Channel, ExternalChannel, ChannelHandle
  • Context Types -- Context, ItemLog, Item, ContentPart
  • Runtime Types -- Runtime, AgentConfig, AgentHooks
  • Memory Types -- MemoryLayer, MemoryHooks, ProjectionPolicy, StorageAdapter
  • Until Types -- Until, Verdict, Snapshot, VerifyFn

On this page