Skip to main content

Crate agent_storage

Crate agent_storage 

Source
Expand description

Persistence contracts and storage backends for the EME agent platform.

Structs§

ConnectedCalendar
ConnectedCalendarId
ConsumedExternalAuthorization
Conversation
A conversation and its complete model-visible message history.
ConversationId
Stable identifier assigned to a logical conversation.
ConversationStore
File-backed conversation store.
CredentialCipher
DiscoveredCalendar
ExternalConnection
ExternalConnectionId
Family
FamilyId
FamilyInvitation
Persisted invitation. The token hash is intentionally private and is never included in list responses or serialized API-facing summaries.
FamilyInvitationSummary
FamilyMember
FileUserIdentityStore
JSON-file-backed identity store. Writes are atomic and survive process restarts. Like ConversationStore, concurrent writers in multiple processes are not supported.
InMemoryFamilyInvitationStore
InMemoryFamilyStore
InMemoryStorage
A cloneable in-memory store implementing all execution storage contracts.
InMemoryUserIdentityStore
InvitationTargetIdentity
External identity an invitation is optionally restricted to.
InvitationToken
Raw bearer token. Its Debug implementation deliberately never reveals it.
LegacyImportReport
Summary of a legacy conversation import. Problems are reported by path or mapping; callers must not silently start serving when either list is non-empty.
NewExternalAuthorization
NewExternalConnection
SqliteConnectedCalendarStore
SqliteConversationStore
SqliteExecutionStore
SqliteExternalConnectionStore
SqliteFamilyStore
StoredMessage
A message in a conversation, optionally associated with the run that added it.
StoredRun
A run snapshot suitable for durable storage.
StoredRunEvent
An immutable event in a run’s ordered event stream.
User
Stable internal EME identity. Provider-specific identifiers belong in UserIdentity.
UserId
UserIdentity
An external identity linked to an EME user.

Enums§

CalendarAccessMode
CalendarFamilyAccess
ConnectedCalendarStorageError
ConversationStoreError
ExternalConnectionStatus
ExternalConnectionStorageError
FamilyRelationship
Describes a member’s relationship within one family, not their permissions. Add variants as the product vocabulary evolves; do not infer tree constraints.
FamilyRole
Permission granted to a member within one family.
FamilyStorageError
IdentityStoreError
InvitationStorageError
StorageError
Errors shared by storage contracts and their implementations.
StoredRunStatus
Durable representation of a run’s lifecycle state.

Traits§

ConnectedCalendarStore
ConversationMessageStore
Appends and reads ordered conversation messages.
ExecutionStore
Combined persistence interface required by the run coordinator.
ExternalConnectionStore
FamilyInvitationStore
Invitation operations. Acceptance and membership creation must be one atomic operation in every backend.
FamilyStore
Family persistence operations. Methods that affect ownership or family lifecycle are atomic; implementations must preserve exactly one owner.
RunEventStore
Appends and reads immutable run events.
RunStore
Stores mutable run snapshots.
TaskRunStore
Associates a task occurrence with the run submitted for it.
UsageStore
Stores accounting records independently of transient run events and telemetry.
UserIdentityStore
Atomic operations for resolving and linking external identities. Implementations must enforce uniqueness of (provider, subject).