API Reference
API Reference
Complete type reference for all @noetic-tools/core exports, organized by category.
| Export | Kind | Description |
|---|
runCode() | function | Custom async function step |
callModel() | function | LLM inference step |
invokeTool() | function | Tool invocation step |
tool() | function | Typed tool definition builder |
conditional() | function | Conditional routing |
inParallel() | function | Parallel execution (race/all/settle) |
loop() | function | Iterate body steps until a predicate stops |
withContext() | function | Attach context layers to a subtree |
schedule() | function | Fixed-interval recurring execution |
spawn() | function | Isolated child execution |
channel() | function | Typed communication channel |
| Export | Kind | Description |
|---|
AgentHarness | class | Built-in agent harness implementation |
ContextImpl | class | Context implementation |
ItemLogImpl | class | Item log implementation |
ChannelStore | class | Channel state management |
execute() | function | Top-level step executor |
executeLLM() | function | callModel step executor |
executeRun() | function | runCode step executor |
executeTool() | function | invokeTool step executor |
executeBranch() | function | conditional step executor |
executeFork() | function | inParallel step executor |
executeSpawn() | function | Spawn step executor |
executeLoop() | function | Loop step executor |
| Export | Kind | Description |
|---|
scratchpad() | function | Scratchpad context layer factory |
observations() | function | Observations context layer factory |
taskState() | function | Task state layer factory |
assembleView() | function | Merge layer outputs into prompt |
allocateBudgets() | function | Distribute token budgets across layers |
checkBudget() | function | Verify budget constraints |
initLayers() | function | Initialize all context layers |
recallLayers() | function | Run recall on all layers |
storeLayers() | function | Run store on all layers |
disposeLayers() | function | Dispose all context layers |
completeLayers() | function | Run onComplete on all layers |
spawnLayers() | function | Run onSpawn on all layers |
returnLayers() | function | Run onReturn on all layers |
createLayerStateStore() | function | Create layer state storage |
createScopedStorage() | function | Create scoped storage adapter |
resolveScopeKey() | function | Resolve scope key for a layer |
Slot | const | Layer slot constants |
| Export | Kind | Description |
|---|
until.maxSteps() | function | Stop after N iterations |
until.maxCost() | function | Stop after USD cost limit |
until.maxDuration() | function | Stop after time limit |
until.noToolCalls() | function | Stop when LLM responds without tool calls |
until.verified() | function | Stop when verify function passes |
until.converged() | function | Stop when output stabilizes |
until.outputContains() | function | Stop when output contains a marker |
until.custom() | function | Wrap a custom predicate |
all() | function | Combine predicates with AND |
any() | function | Combine predicates with OR |
| Export | Kind | Description |
|---|
SpanImpl | class | Span implementation |
InMemoryExporter | class | In-memory trace exporter |
NoopExporter | class | No-op trace exporter |
GenAI | const | Semantic convention attribute keys |
ToolAttr | const | Tool attribute constants |
| Export | Kind | Description |
|---|
NoeticErrorImpl | class | Error implementation |
isNoeticError() | function | Type guard for NoeticError |
- 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