Database Capabilities¶
Database adapters own their notification, change-stream, queue-store, and agent tool implementations. Tenant scope settings remain engine-neutral, while each adapter owns its session SQL.
Agent Tool Providers¶
Pass a provider to build_tools to expose typed database operations to an agent. Constructing providers and registering tools opens no database connection.
BigQueryToolProvider
¶
Bases: ToolProvider
Expose typed native BigQuery operations with lazy driver resolution.
SpannerToolProvider
¶
Bases: ToolProvider
Expose typed native Spanner operations with lazy driver resolution.
Tenant Scope, Notifications & Change Streams¶
TenantScopeConfig
¶
SyncTenantConnectionScope
¶
Synchronous tenant connection scope enforcing mandatory context reset or physical session eviction.
AsyncTenantConnectionScope
¶
Asynchronous tenant connection scope enforcing mandatory context reset or physical session eviction.
SyncNotificationSource
¶
Bases: Protocol
Capability protocol for synchronous database or cache pub/sub notification transports.
AsyncNotificationSource
¶
Bases: Protocol
Capability protocol for asynchronous database or cache pub/sub notification transports.
SyncQueueStore
¶
AsyncQueueStore
¶
PostgresNotifyConfig
¶
SyncPostgresNotificationSource
¶
Bases: SyncNotificationSource
Publish PostgreSQL notifications and stream live SyncPostgresListener frames.
AsyncPostgresNotificationSource
¶
Bases: AsyncNotificationSource
Publish PostgreSQL notifications and stream live AsyncPostgresListener frames.
SyncPostgresQueueStore
¶
Bases: _BasePostgresQueueStore, SyncQueueStore
Synchronous PostgreSQL queue store backed by SKIP LOCKED and atomic CTE updates.
AsyncPostgresQueueStore
¶
Bases: _BasePostgresQueueStore, AsyncQueueStore
Asynchronous PostgreSQL queue store backed by SKIP LOCKED and atomic CTE updates.
PostgresChangeConfig
¶
PostgresChangeSource
¶
Bases: AsyncChangeSource
Durable PostgreSQL logical replication change source backed by ChangeFeed.
Guarantees save-before-wire-ack semantics using single-flight shielded
compare-and-swap checkpoint updates, reconciles uncertain commits against
the durable checkpoint store before resuming yields, and exposes a bounded
fail-closed aclose().
PostgresCheckpoint
¶
MemoryPostgresCheckpointStore
¶
In-memory optimistic CAS checkpoint store enforcing single-writer fencing.
PostgresEmbeddingPushdown
¶
Generate vectors with AlloyDB embedding() and search with pgvector.
OracleNotifyConfig
¶
SyncOracleNotificationSource
¶
Bases: SyncNotificationSource
Oracle 26ai TxEventQ / DBMS_AQ synchronous notification publisher and streaming listener.
AsyncOracleNotificationSource
¶
Bases: AsyncNotificationSource
Oracle 26ai TxEventQ / DBMS_AQ notification publisher and streaming listener.
SyncOracleQueueStore
¶
Bases: _BaseOracleQueueStore, SyncQueueStore
Synchronous Oracle queue store backed by FOR UPDATE SKIP LOCKED and MERGE leases.
AsyncOracleQueueStore
¶
Bases: _BaseOracleQueueStore, AsyncQueueStore
Asynchronous Oracle queue store backed by FOR UPDATE SKIP LOCKED and MERGE leases.
SyncRedisNotificationSource
¶
AsyncRedisNotificationSource
¶
Bases: AsyncNotificationSource
Publish Redis notifications and stream live AsyncRedisListener frames without blocking the event loop.
SyncValkeyNotificationSource
¶
Bases: SyncNotificationSource
Publish Valkey notifications and stream live SyncValkeyListener frames.
AsyncValkeyNotificationSource
¶
Bases: AsyncNotificationSource
Publish Valkey notifications and stream live AsyncValkeyListener frames.
SyncSpannerQueueStore
¶
Bases: _BaseSpannerQueueStore, SyncQueueStore
Synchronous Cloud Spanner queue store backed by interactive ReadWrite transactions.
AsyncSpannerQueueStore
¶
Bases: _BaseSpannerQueueStore, AsyncQueueStore
Asynchronous Cloud Spanner queue store backed by interactive ReadWrite transactions.
SyncSpannerChangeStreamSource
¶
Bases: _BaseSpannerChangeStreamSource[_SyncSelectDriver], SyncChangeSource
Synchronous Cloud Spanner reader with constructor-bound stream defaults.
AsyncSpannerChangeStreamSource
¶
Bases: _BaseSpannerChangeStreamSource[_AsyncSelectDriver], AsyncChangeSource
Asynchronous Cloud Spanner reader with constructor-bound stream defaults.