Systems

Intelligence

88 symbols, imported from @driftengine/ai.

Explained in Agents and behaviour.

Classes

AgentSession
One agent: a floor that always runs, and one slot holding what comes next.
AuthoritativeAgent
An agent whose model decisions are taken in one place.
Budget
A ceiling on what an agent may spend, enforced here rather than asked for in a prompt.
CommandLog
What was accepted, and when — beside TickTrace rather than inside it.
DeterministicProvider
LatencyEstimator
A p90 that revises as it measures, and says so before it knows.
RateWindows
Rate state, owned by whoever owns the agent.
ReplaySession
Replay accepted commands at their original boundaries. Calls no provider, ever.
ToolRegistry
UtilityPolicy
The default floor: score every option, take the highest.

Interfaces

AgentPolicy
AgentSessionOptions
AiCommand
AiManifest
What an agent is, written down.
AiPreemption
An observation that ended the current intent early.
AiProvider
AiProviderCapabilities
What a provider says it can do.
AiProviderConfig
AiProviderResult
AiRequest
AiSession
AiSessionOptions
AiUsage
What an agent has spent.
AssembledContext
AssembledContextLike
Context assembled for one request.
AuthoritativeAgentOptions
BudgetLimits
ContextProvider
A read-only snapshot the model is told about.
ContextSection
DecisionChannel
How a decision crosses. The consumer's, because packing and transport are theirs.
DeterministicScript
A provider that answers after a stated number of ticks, or never.
DevelopmentManifest
EntityContextOptions
ExecutionPolicy
Intent
LocalProviderConfig
A provider running on this device, accepted by running it.
NavigateArgs
NavigateResult
NavigationAdapter
What the consumer answers, because only the consumer knows what an agent is.
NavigationBridgeOptions
Observation
PolicyContext
PolicyOption
ProxyProviderConfig
A remote provider reached through the consumer's own endpoint.
RealtimeOptions
A realtime transport, emitting the same events every other session emits.
ReplaySource
ToolDefinition
W is the consumer's world view, and this package never constrains it.

Functions

admitToolCall
Whether a proposed tool call may be accepted.
applyCommand
Run an accepted command at a tick boundary, revalidating on the way in.
assembleContext
Never send the scene graph.
chargeUsage
Tokens only. Who aborted, and why, is something the session knows and an event does not.
continuationPreamble
Tell the model when its answer will be used.
createAiProvider
Accept a provider only if it declares what was asked of it, and say so either way.
createLocalProvider
createProxyProvider
Returns a provider directly, where the local path returns a Promise<AiProviderResult>.
createRealtimeSession
Open a realtime session, or refuse before connecting.
createUsage
describeAgent
describeForDevelopment
The manifest a coding assistant reads.
entityContext
A context provider that samples a query into a list of references.
entityRef
A stable, printable name for an entity, and the only form a model ever sees.
entityTool
A tool addressing an entity, whose guard checks the generation and not only the index.
hasKnownExtent
loopbackDecisionChannel
A channel with both ends in this process, for a test or a single-process host.
navigationBridge
Build the navigation tools for a consumer's world.
nextState
The next state, or null when the transition is illegal from here.
noteAbort
Record an abort, whatever caused it.
notePreemption
Record that the abort being taken is a preemption.
parseEntityRef
Read a reference back, or null when it is not one.
reachableBy
Whether a route exists for this agent right now, without writing one.
requireStructuredOutput
Ask for output shaped like a schema, or refuse before spending anything.
validateArgs
Check a model's arguments against a tool's schema.
validateIntent
Whether an intent is internally coherent.

Types

Admission
AgentRole
AgentState
Four states, and a second request that has no edge to arrive on.
AgentTransition
AiEvent
ApplyOutcome
IntentCheck
LogEntry
RealtimeResult
StructuredResult
ToolSchema
What a model may be asked to produce.
ValidationResult
WhileBusy

Constants

AI_NETWORK_AUTHORITY
The sentinel's own name, exported so the documentation gate fires when this file arrives.
UNKNOWN_EXTENT
An intent whose extent is unknown. The watermark reads it as "ask immediately".