# Vlo > Durable execution for workflows and AI agents, as a library on the database you already run. Tiny, performant, reliable, efficient and built for the edge. ## Table of Contents ### TypeScript API - [index](/vlo/api/index.md) - [host](/vlo/api/host.md) - [agent](/vlo/api/agent.md) - [testing](/vlo/api/testing.md) #### @oona/vlo ##### Classes - [Class: ActivityInputError](/api/index/classes/ActivityInputError.md) - [Class: WorkflowFailure](/api/index/classes/WorkflowFailure.md) ##### Interfaces - [Interface: Activity\](/api/index/interfaces/Activity.md) - [Interface: ActivityOptions\](/api/index/interfaces/ActivityOptions.md) - [Interface: AwaitHumanOptions](/api/index/interfaces/AwaitHumanOptions.md) - [Interface: AwaitSignalOptions](/api/index/interfaces/AwaitSignalOptions.md) - [Interface: ChildResult\](/api/index/interfaces/ChildResult.md) - [Interface: DeployProfile](/api/index/interfaces/DeployProfile.md) - [Interface: DispatcherProfile](/api/index/interfaces/DispatcherProfile.md) - [Interface: Domain](/api/index/interfaces/Domain.md) - [Interface: DomainDef](/api/index/interfaces/DomainDef.md) - [Interface: EnvRef](/api/index/interfaces/EnvRef.md) - [Interface: FanOutOptions](/api/index/interfaces/FanOutOptions.md) - [Interface: FanOutRunsOptions](/api/index/interfaces/FanOutRunsOptions.md) - [Interface: FanState](/api/index/interfaces/FanState.md) - [Interface: Handlers\](/api/index/interfaces/Handlers.md) - [Interface: Profile](/api/index/interfaces/Profile.md) - [Interface: QueueProfile](/api/index/interfaces/QueueProfile.md) - [Interface: ReductionWire](/api/index/interfaces/ReductionWire.md) - [Interface: RetryOptions](/api/index/interfaces/RetryOptions.md) - [Interface: RetryPolicy](/api/index/interfaces/RetryPolicy.md) - [Interface: SeqState](/api/index/interfaces/SeqState.md) - [Interface: SequenceOptions](/api/index/interfaces/SequenceOptions.md) - [Interface: SignalDef\](/api/index/interfaces/SignalDef.md) - [Interface: SpawnOptions](/api/index/interfaces/SpawnOptions.md) - [Interface: StepOptions](/api/index/interfaces/StepOptions.md) - [Interface: TaskContext](/api/index/interfaces/TaskContext.md) - [Interface: TaskOptions](/api/index/interfaces/TaskOptions.md) - [Interface: TimerOptions](/api/index/interfaces/TimerOptions.md) - [Interface: Usage](/api/index/interfaces/Usage.md) - [Interface: VloConfig](/api/index/interfaces/VloConfig.md) - [Interface: WaitForOptions](/api/index/interfaces/WaitForOptions.md) - [Interface: Worker](/api/index/interfaces/Worker.md) - [Interface: WorkerOptions](/api/index/interfaces/WorkerOptions.md) - [Interface: Workflow\](/api/index/interfaces/Workflow.md) - [Interface: WorkflowDef\](/api/index/interfaces/WorkflowDef.md) ##### Type Aliases - [Type Alias: ActivityHandler\](/api/index/type-aliases/ActivityHandler.md) - [Type Alias: ActivityImpls](/api/index/type-aliases/ActivityImpls.md) - [Type Alias: Backoff](/api/index/type-aliases/Backoff.md) - [Type Alias: Cause](/api/index/type-aliases/Cause.md) - [Type Alias: ChildStatus](/api/index/type-aliases/ChildStatus.md) - [Type Alias: Command](/api/index/type-aliases/Command.md) - [Type Alias: DeployTarget](/api/index/type-aliases/DeployTarget.md) - [Type Alias: ErasedActivity](/api/index/type-aliases/ErasedActivity.md) - [Type Alias: Jitter](/api/index/type-aliases/Jitter.md) - [Type Alias: Json](/api/index/type-aliases/Json.md) - [Type Alias: OnFailure](/api/index/type-aliases/OnFailure.md) - [Type Alias: OnTimeout](/api/index/type-aliases/OnTimeout.md) - [Type Alias: ReducerEvent](/api/index/type-aliases/ReducerEvent.md) - [Type Alias: Reduction\](/api/index/type-aliases/Reduction.md) - [Type Alias: Ref](/api/index/type-aliases/Ref.md) - [Type Alias: RunStatus](/api/index/type-aliases/RunStatus.md) - [Type Alias: SeqStep](/api/index/type-aliases/SeqStep.md) - [Type Alias: Status](/api/index/type-aliases/Status.md) ##### Variables - [Variable: ANNOTATION_KEYWORDS](/api/index/variables/ANNOTATION_KEYWORDS.md) - [Variable: cmd](/api/index/variables/cmd.md) - [Variable: DEFAULT_LEASE_MS](/api/index/variables/DEFAULT_LEASE_MS.md) - [Variable: DEFAULT_QUEUE](/api/index/variables/DEFAULT_QUEUE.md) - [Variable: DEFAULT_RETRY](/api/index/variables/DEFAULT_RETRY.md) - [~~Variable: humanTimeoutStepId~~](/api/index/variables/humanTimeoutStepId.md) - [Variable: NAMED_SCHEMA_MAPS](/api/index/variables/NAMED_SCHEMA_MAPS.md) - [Variable: SCHEMA_HASH_VERSION](/api/index/variables/SCHEMA_HASH_VERSION.md) - [Variable: TERMINAL_RUN_STATUSES](/api/index/variables/TERMINAL_RUN_STATUSES.md) ##### Functions - [Function: activity()](/api/index/functions/activity.md) - [Function: canonicalJson()](/api/index/functions/canonicalJson.md) - [Function: contentHash()](/api/index/functions/contentHash.md) - [Function: defineConfig()](/api/index/functions/defineConfig.md) - [Function: defineDomain()](/api/index/functions/defineDomain.md) - [Function: defineWorker()](/api/index/functions/defineWorker.md) - [Function: defineWorkflow()](/api/index/functions/defineWorkflow.md) - [Function: env()](/api/index/functions/env.md) - [Function: fanOut()](/api/index/functions/fanOut.md) - [Function: fanOutResultsOf()](/api/index/functions/fanOutResultsOf.md) - [Function: fanOutRuns()](/api/index/functions/fanOutRuns.md) - [Function: fanOutRunsResultsOf()](/api/index/functions/fanOutRunsResultsOf.md) - [Function: isTerminalRunStatus()](/api/index/functions/isTerminalRunStatus.md) - [Function: projectSchema()](/api/index/functions/projectSchema.md) - [Function: resultOf()](/api/index/functions/resultOf.md) - [Function: sequence()](/api/index/functions/sequence.md) - [Function: sha256Hex()](/api/index/functions/sha256Hex.md) - [Function: signal()](/api/index/functions/signal.md) - [Function: signalOf()](/api/index/functions/signalOf.md) - [Function: signalTimeoutStepId()](/api/index/functions/signalTimeoutStepId.md) - [Function: sleep()](/api/index/functions/sleep.md) - [Function: step()](/api/index/functions/step.md) - [Function: waitFor()](/api/index/functions/waitFor.md) - [Function: withRetryInput()](/api/index/functions/withRetryInput.md) #### @oona/vlo/host ##### Classes - [Class: BadRequest](/api/host/classes/BadRequest.md) - [Class: Dispatcher](/api/host/classes/Dispatcher.md) - [Class: GcsBlobStore](/api/host/classes/GcsBlobStore.md) - [Class: HttpPushTransport](/api/host/classes/HttpPushTransport.md) - [Class: IllegalEvent](/api/host/classes/IllegalEvent.md) - [Class: InProcessTracker](/api/host/classes/InProcessTracker.md) - [Class: InProcessTransport](/api/host/classes/InProcessTransport.md) - [Class: JournalClosed](/api/host/classes/JournalClosed.md) - [Class: LeaseLost](/api/host/classes/LeaseLost.md) - [Class: Nondeterminism](/api/host/classes/Nondeterminism.md) - [Class: ReducerFailed](/api/host/classes/ReducerFailed.md) - [Class: RunNotFound](/api/host/classes/RunNotFound.md) - [Class: RunTerminal](/api/host/classes/RunTerminal.md) - [Class: TaskNotFound](/api/host/classes/TaskNotFound.md) - [Class: Unauthorized](/api/host/classes/Unauthorized.md) - [Class: VloError](/api/host/classes/VloError.md) - [Class: WorkflowRejected](/api/host/classes/WorkflowRejected.md) ##### Interfaces - [Interface: ActivityRegistration](/api/host/interfaces/ActivityRegistration.md) - [Interface: ApplyTransitionOptions](/api/host/interfaces/ApplyTransitionOptions.md) - [Interface: AuthConfig](/api/host/interfaces/AuthConfig.md) - [Interface: BlobStore](/api/host/interfaces/BlobStore.md) - [Interface: Client](/api/host/interfaces/Client.md) - [Interface: ClientOptions](/api/host/interfaces/ClientOptions.md) - [Interface: Completion](/api/host/interfaces/Completion.md) - [Interface: CreateHostOptions](/api/host/interfaces/CreateHostOptions.md) - [Interface: DeriveIdsOutput](/api/host/interfaces/DeriveIdsOutput.md) - [Interface: DispatcherOptions](/api/host/interfaces/DispatcherOptions.md) - [Interface: DrainOptions](/api/host/interfaces/DrainOptions.md) - [Interface: DrainResult](/api/host/interfaces/DrainResult.md) - [Interface: Emit](/api/host/interfaces/Emit.md) - [Interface: Envelope](/api/host/interfaces/Envelope.md) - [Interface: EventInput](/api/host/interfaces/EventInput.md) - [Interface: FoldState](/api/host/interfaces/FoldState.md) - [Interface: GcsBlobStoreOptions](/api/host/interfaces/GcsBlobStoreOptions.md) - [Interface: GcsBucketLike](/api/host/interfaces/GcsBucketLike.md) - [Interface: GcsClientLike](/api/host/interfaces/GcsClientLike.md) - [Interface: GcsFileLike](/api/host/interfaces/GcsFileLike.md) - [Interface: HandleTaskOptions](/api/host/interfaces/HandleTaskOptions.md) - [Interface: HashAtSeq](/api/host/interfaces/HashAtSeq.md) - [Interface: HeaderSource](/api/host/interfaces/HeaderSource.md) - [Interface: Host](/api/host/interfaces/Host.md) - [Interface: HostContext](/api/host/interfaces/HostContext.md) - [Interface: HttpPushOptions](/api/host/interfaces/HttpPushOptions.md) - [Interface: InProcessOptions](/api/host/interfaces/InProcessOptions.md) - [Interface: Journal](/api/host/interfaces/Journal.md) - [Interface: JournalTx](/api/host/interfaces/JournalTx.md) - [Interface: Kernel](/api/host/interfaces/Kernel.md) - [Interface: KernelError](/api/host/interfaces/KernelError.md) - [Interface: KernelReduction](/api/host/interfaces/KernelReduction.md) - [Interface: KernelState](/api/host/interfaces/KernelState.md) - [Interface: KernelVersion](/api/host/interfaces/KernelVersion.md) - [Interface: Listening](/api/host/interfaces/Listening.md) - [Interface: ListQuery](/api/host/interfaces/ListQuery.md) - [Interface: NewRunRow](/api/host/interfaces/NewRunRow.md) - [Interface: NewSignalRow](/api/host/interfaces/NewSignalRow.md) - [Interface: NewSpawn](/api/host/interfaces/NewSpawn.md) - [Interface: NewTask](/api/host/interfaces/NewTask.md) - [Interface: NewTimer](/api/host/interfaces/NewTimer.md) - [Interface: PlanRetryInput](/api/host/interfaces/PlanRetryInput.md) - [Interface: PostgresJournalOptions](/api/host/interfaces/PostgresJournalOptions.md) - [Interface: PrepareEventInput](/api/host/interfaces/PrepareEventInput.md) - [Interface: PullWorkerOptions](/api/host/interfaces/PullWorkerOptions.md) - [Interface: PushedTask](/api/host/interfaces/PushedTask.md) - [Interface: QueueConfig](/api/host/interfaces/QueueConfig.md) - [Interface: Rebuilt](/api/host/interfaces/Rebuilt.md) - [Interface: ReduceStepInput](/api/host/interfaces/ReduceStepInput.md) - [Interface: Registries](/api/host/interfaces/Registries.md) - [Interface: RunPatch](/api/host/interfaces/RunPatch.md) - [Interface: RunQuery](/api/host/interfaces/RunQuery.md) - [Interface: RunRef](/api/host/interfaces/RunRef.md) - [Interface: RunRow](/api/host/interfaces/RunRow.md) - [Interface: RunView](/api/host/interfaces/RunView.md) - [Interface: SchemaRow](/api/host/interfaces/SchemaRow.md) - [Interface: ServeOptions](/api/host/interfaces/ServeOptions.md) - [Interface: ServeResult](/api/host/interfaces/ServeResult.md) - [Interface: SignalLink](/api/host/interfaces/SignalLink.md) - [Interface: SignalLinkClaims](/api/host/interfaces/SignalLinkClaims.md) - [Interface: SignalLinkOptions](/api/host/interfaces/SignalLinkOptions.md) - [Interface: SignalRegistration](/api/host/interfaces/SignalRegistration.md) - [Interface: SignalResult](/api/host/interfaces/SignalResult.md) - [Interface: SignalRow](/api/host/interfaces/SignalRow.md) - [Interface: SignalRunResult](/api/host/interfaces/SignalRunResult.md) - [Interface: SignalWait](/api/host/interfaces/SignalWait.md) - [Interface: SignalWaitRow](/api/host/interfaces/SignalWaitRow.md) - [Interface: StartFreshOptions](/api/host/interfaces/StartFreshOptions.md) - [Interface: StartFreshResult](/api/host/interfaces/StartFreshResult.md) - [Interface: StartOptions](/api/host/interfaces/StartOptions.md) - [Interface: StartRunInput](/api/host/interfaces/StartRunInput.md) - [Interface: StateRow](/api/host/interfaces/StateRow.md) - [Interface: StepState](/api/host/interfaces/StepState.md) - [Interface: StreamOptions](/api/host/interfaces/StreamOptions.md) - [Interface: TaskClaimFilter](/api/host/interfaces/TaskClaimFilter.md) - [Interface: TaskReporter](/api/host/interfaces/TaskReporter.md) - [Interface: TaskResult](/api/host/interfaces/TaskResult.md) - [Interface: TaskRow](/api/host/interfaces/TaskRow.md) - [Interface: TaskScheduled](/api/host/interfaces/TaskScheduled.md) - [Interface: TaskTransport](/api/host/interfaces/TaskTransport.md) - [Interface: TaskUpdate](/api/host/interfaces/TaskUpdate.md) - [Interface: TickCounts](/api/host/interfaces/TickCounts.md) - [Interface: TimerRow](/api/host/interfaces/TimerRow.md) - [Interface: Transition](/api/host/interfaces/Transition.md) - [Interface: TxOutcome](/api/host/interfaces/TxOutcome.md) - [Interface: UsageInput](/api/host/interfaces/UsageInput.md) - [Interface: Validator](/api/host/interfaces/Validator.md) ##### Type Aliases - [Type Alias: AfterApply](/api/host/type-aliases/AfterApply.md) - [Type Alias: ClientFetch](/api/host/type-aliases/ClientFetch.md) - [Type Alias: DispatcherMode](/api/host/type-aliases/DispatcherMode.md) - [Type Alias: EventSource](/api/host/type-aliases/EventSource.md) - [Type Alias: FetchHandler](/api/host/type-aliases/FetchHandler.md) - [Type Alias: FetchLike](/api/host/type-aliases/FetchLike.md) - [Type Alias: JournalOptions](/api/host/type-aliases/JournalOptions.md) - [Type Alias: KernelResult\](/api/host/type-aliases/KernelResult.md) - [Type Alias: Kind](/api/host/type-aliases/Kind.md) - [Type Alias: Prepared](/api/host/type-aliases/Prepared.md) - [Type Alias: PushResult](/api/host/type-aliases/PushResult.md) - [Type Alias: RefoldCheckOutput](/api/host/type-aliases/RefoldCheckOutput.md) - [Type Alias: RetryPlan](/api/host/type-aliases/RetryPlan.md) - [Type Alias: Role](/api/host/type-aliases/Role.md) - [Type Alias: StreamMessage](/api/host/type-aliases/StreamMessage.md) ##### Variables - [Variable: ATTEMPT_HEADER](/api/host/variables/ATTEMPT_HEADER.md) - [Variable: DEFAULT_BLOB_URL](/api/host/variables/DEFAULT_BLOB_URL.md) - [Variable: DEFAULT_DRAIN_MAX_MS](/api/host/variables/DEFAULT_DRAIN_MAX_MS.md) - [Variable: DEFAULT_LINK_TTL_MS](/api/host/variables/DEFAULT_LINK_TTL_MS.md) - [Variable: DEFAULT_PORT](/api/host/variables/DEFAULT_PORT.md) - [Variable: DEFAULT_STREAM_POLL_MS](/api/host/variables/DEFAULT_STREAM_POLL_MS.md) - [Variable: SHUTDOWN_GRACE_MS](/api/host/variables/SHUTDOWN_GRACE_MS.md) - [Variable: SIGNATURE_HEADER](/api/host/variables/SIGNATURE_HEADER.md) - [Variable: TASK_ID_HEADER](/api/host/variables/TASK_ID_HEADER.md) - [Variable: TIMESTAMP_HEADER](/api/host/variables/TIMESTAMP_HEADER.md) ##### Functions - [Function: applyEvent()](/api/host/functions/applyEvent.md) - [Function: cancelRun()](/api/host/functions/cancelRun.md) - [Function: completeTask()](/api/host/functions/completeTask.md) - [Function: createClient()](/api/host/functions/createClient.md) - [Function: createHost()](/api/host/functions/createHost.md) - [Function: createRouter()](/api/host/functions/createRouter.md) - [Function: drainHost()](/api/host/functions/drainHost.md) - [Function: failTask()](/api/host/functions/failTask.md) - [Function: findWorker()](/api/host/functions/findWorker.md) - [Function: foldEvent()](/api/host/functions/foldEvent.md) - [Function: getRunView()](/api/host/functions/getRunView.md) - [Function: handler()](/api/host/functions/handler.md) - [Function: handleTask()](/api/host/functions/handleTask.md) - [Function: heartbeatTask()](/api/host/functions/heartbeatTask.md) - [Function: linkSecret()](/api/host/functions/linkSecret.md) - [Function: listen()](/api/host/functions/listen.md) - [Function: listRuns()](/api/host/functions/listRuns.md) - [Function: loadKernel()](/api/host/functions/loadKernel.md) - [Function: localReporter()](/api/host/functions/localReporter.md) - [Function: mergeDomains()](/api/host/functions/mergeDomains.md) - [Function: normalizeBasePath()](/api/host/functions/normalizeBasePath.md) - [Function: openBlobStore()](/api/host/functions/openBlobStore.md) - [Function: openJournal()](/api/host/functions/openJournal.md) - [Function: readRunEvents()](/api/host/functions/readRunEvents.md) - [Function: rebuildCheckpoint()](/api/host/functions/rebuildCheckpoint.md) - [Function: remoteReporter()](/api/host/functions/remoteReporter.md) - [Function: runPullWorker()](/api/host/functions/runPullWorker.md) - [Function: serve()](/api/host/functions/serve.md) - [Function: signalRun()](/api/host/functions/signalRun.md) - [Function: signPush()](/api/host/functions/signPush.md) - [Function: signSignalLink()](/api/host/functions/signSignalLink.md) - [Function: startRun()](/api/host/functions/startRun.md) - [Function: verifySignalLink()](/api/host/functions/verifySignalLink.md) - [Function: verifySignature()](/api/host/functions/verifySignature.md) #### @oona/vlo/agent ##### Interfaces - [Interface: AgentLoopOptions](/api/agent/interfaces/AgentLoopOptions.md) - [Interface: AgentResult](/api/agent/interfaces/AgentResult.md) - [Interface: AgentState](/api/agent/interfaces/AgentState.md) - [Interface: ApprovalOptions](/api/agent/interfaces/ApprovalOptions.md) - [Interface: Budget](/api/agent/interfaces/Budget.md) - [Interface: BudgetTopup](/api/agent/interfaces/BudgetTopup.md) - [Interface: Decision](/api/agent/interfaces/Decision.md) - [Interface: DecisionOptions\](/api/agent/interfaces/DecisionOptions.md) - [Interface: Observation](/api/agent/interfaces/Observation.md) - [Interface: ToolApproval](/api/agent/interfaces/ToolApproval.md) ##### Type Aliases - [Type Alias: AgentPhase](/api/agent/type-aliases/AgentPhase.md) - [Type Alias: Spent](/api/agent/type-aliases/Spent.md) ##### Variables - [Variable: DEFAULT_APPROVAL_SIGNAL](/api/agent/variables/DEFAULT_APPROVAL_SIGNAL.md) - [Variable: DEFAULT_MAX_ITERATIONS](/api/agent/variables/DEFAULT_MAX_ITERATIONS.md) - [Variable: DEFAULT_MEMORY_LIMIT](/api/agent/variables/DEFAULT_MEMORY_LIMIT.md) - [Variable: DEFAULT_TOPUP_SIGNAL](/api/agent/variables/DEFAULT_TOPUP_SIGNAL.md) - [Variable: DONE](/api/agent/variables/DONE.md) ##### Functions - [Function: agentLoop()](/api/agent/functions/agentLoop.md) - [Function: approvalSignal()](/api/agent/functions/approvalSignal.md) - [Function: budgetTopup()](/api/agent/functions/budgetTopup.md) - [Function: decision()](/api/agent/functions/decision.md) #### @oona/vlo/testing ##### Interfaces - [Interface: Clock](/api/testing/interfaces/Clock.md) ##### Functions - [Function: fakeClock()](/api/testing/functions/fakeClock.md) - [Function: journalConformance()](/api/testing/functions/journalConformance.md) ### Evaluate - [Why Vlo](/vlo/why-vlo.md) - [Performance](/vlo/performance.md) - [Reliability](/vlo/reliability.md) - [Status and roadmap](/vlo/status.md) - [FAQ](/vlo/faq.md) ### Build - [Getting started](/vlo/getting-started.md) - [Concepts](/vlo/concepts.md) - [Workflows](/vlo/workflows.md) - [Activities and workers](/vlo/activities-and-workers.md) - [Signals and humans](/vlo/signals-and-humans.md) - [Build an agent harness](/vlo/agent-harness.md) - [Agents](/vlo/agents.md) - [Testing](/vlo/testing.md) - [Recipes](/vlo/recipes.md) ### Operate - [Configuration](/vlo/configuration.md) - [CLI](/vlo/cli.md) - [Deployment](/vlo/deployment.md) - [Observability](/vlo/observability.md) - [HTTP API](/vlo/http-api.md) - [Journal](/vlo/journal.md) - [Errors](/vlo/errors.md) - [Limits](/vlo/limits.md) ### Internals - [Architecture](/vlo/architecture.md) - [Kernel protocol](/vlo/kernel-protocol.md) - [Design decisions](/vlo/design-decisions.md) ### Other - [@oona/vlo](/vlo/api/packages.md)