Skip to main content

Module agent_store

Module agent_store 

Source
Expand description

Durable runtime history in the application’s existing SQLite database.

Every handle is bound to one workspace. State changes and their events commit together. Event sequences are allocated by a write statement, avoiding a read/modify/write race between concurrent writers. Timestamps are Unix ms.

Structs§

AccountingOverflow
AgentCheckpoint
Versioned execution snapshot. Runtime code owns the state schema; it must include resolved resource/model, conversation, workspace and policy context.
AgentEvent
One immutable event; sequence numbers are local to a run and start at one.
AgentRun
Materialized state of an execution. Inputs and outputs are plain text.
AgentRunStore
Workspace-scoped persistence facade, sharing the application connection pool.
ArtifactMetadata
Metadata for an immutable file stored beneath a run’s artifact directory.
BudgetRow 🔒
ContinuationRunRow 🔒
RunBudgets
RunLineage
Immutable ancestry of a run. Legacy runs without a row are treated as roots.
RunSuspension
RunUsage
StoppedRun 🔒
ToolInvocation
WorkingStateArtifacts
WorkingStateEventReference
WorkingStateInspection
WorkingStateObjective
WorkingStateRow 🔒
WorkingStateRun
WorkingStateSnapshot

Enums§

BlockedReason
BudgetDecision
FailureReason
LimitReason
NeedsUserInputReason
RecoveryDisposition
A read-only classification of the durable state available for recovery.
RunLifecycle
RunOutcome
A stopped transition; callers cannot create arbitrary lifecycle strings.
RunOutcomeKind
TokenAccounting
ToolOutcome
WorkingStateStatus

Constants§

MAX_ARTIFACT_BYTES
MAX_WORKING_STATE_BYTES 🔒
WORKING_STATE_VERSION

Functions§

reason_code 🔒
reason_code_for_event 🔒
stopped 🔒