NOETIC
Framework
API Reference

API Reference

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

Builders

ExportKindDescription
runCode()functionCustom async function step
callModel()functionLLM inference step
invokeTool()functionTool invocation step
tool()functionTyped tool definition builder
conditional()functionConditional routing
inParallel()functionParallel execution (race/all/settle)
loop()functionIterate body steps until a predicate stops
withContext()functionAttach context layers to a subtree
schedule()functionFixed-interval recurring execution
spawn()functionIsolated child execution
channel()functionTyped communication channel

AgentHarness

ExportKindDescription
AgentHarnessclassBuilt-in agent harness implementation
ContextImplclassContext implementation
ItemLogImplclassItem log implementation
ChannelStoreclassChannel state management
execute()functionTop-level step executor
executeLLM()functioncallModel step executor
executeRun()functionrunCode step executor
executeTool()functioninvokeTool step executor
executeBranch()functionconditional step executor
executeFork()functioninParallel step executor
executeSpawn()functionSpawn step executor
executeLoop()functionLoop step executor

Context

ExportKindDescription
scratchpad()functionScratchpad context layer factory
observations()functionObservations context layer factory
taskState()functionTask state layer factory
assembleView()functionMerge layer outputs into prompt
allocateBudgets()functionDistribute token budgets across layers
checkBudget()functionVerify budget constraints
initLayers()functionInitialize all context layers
recallLayers()functionRun recall on all layers
storeLayers()functionRun store on all layers
disposeLayers()functionDispose all context 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
SlotconstLayer 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, StepRunCode, StepCallModel, StepInvokeTool, StepConditional, StepInParallel, StepSpawn, StepLoop
  • Channel Types -- Channel, ExternalChannel, ChannelHandle
  • Context Types -- Context, ItemLog, Item, ContentPart
  • Items & Events -- Standard items, extension items, streaming events, OpenResponses compatibility
  • AgentHarness Types -- AgentHarness, AgentConfig, AgentHooks
  • Context Layer Types -- ContextLayer, ContextLayerHooks, ProjectionPolicy, StorageAdapter
  • Until Types -- Until, Verdict, Snapshot, VerifyFn

On this page