amfs-adapter-postgres 0.2.4__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/PKG-INFO +2 -2
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/pyproject.toml +2 -2
- amfs_adapter_postgres-0.2.5/src/amfs_postgres/__init__.py +23 -0
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/adapter.py +871 -187
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/async_adapter.py +223 -36
- amfs_adapter_postgres-0.2.5/src/amfs_postgres/migrations/007_outcome_propagation_row_copy.sql +134 -0
- amfs_adapter_postgres-0.2.5/src/amfs_postgres/retention.py +93 -0
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/schema.sql +153 -37
- amfs_adapter_postgres-0.2.5/src/amfs_postgres/tenant_gucs.py +268 -0
- amfs_adapter_postgres-0.2.5/src/amfs_postgres/trace_partitions.py +838 -0
- amfs_adapter_postgres-0.2.4/src/amfs_postgres/__init__.py +0 -6
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/.gitignore +0 -0
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/_fts.py +0 -0
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/migrations/001_initial.sql +0 -0
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/migrations/002_artifact_refs.sql +0 -0
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/migrations/002_search_indexes.sql +0 -0
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/migrations/003_knowledge_graph.sql +0 -0
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/migrations/004_agent_groups.sql +0 -0
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/migrations/005_configurable_embedding_dim.sql +0 -0
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/migrations/006_is_artifact.sql +0 -0
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/migrations/006_outcome_confidence_semantics.sql +0 -0
- {amfs_adapter_postgres-0.2.4 → amfs_adapter_postgres-0.2.5}/src/amfs_postgres/tenant_context.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: amfs-adapter-postgres
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: AMFS Postgres adapter with back-propagation triggers
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Requires-Python: >=3.11
|
|
7
|
-
Requires-Dist: amfs-core>=0.3.
|
|
7
|
+
Requires-Dist: amfs-core>=0.3.19
|
|
8
8
|
Requires-Dist: psycopg-pool>=3.1
|
|
9
9
|
Requires-Dist: psycopg[binary]<4,>=3.1
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "amfs-adapter-postgres"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.5"
|
|
4
4
|
description = "AMFS Postgres adapter with back-propagation triggers"
|
|
5
5
|
requires-python = ">=3.11"
|
|
6
6
|
license = "Apache-2.0"
|
|
7
7
|
dependencies = [
|
|
8
8
|
# 0.3.14 adds the capture fields this adapter now persists and selects back,
|
|
9
9
|
# tool_calls among them.
|
|
10
|
-
"amfs-core>=0.3.
|
|
10
|
+
"amfs-core>=0.3.19",
|
|
11
11
|
"psycopg[binary]>=3.1,<4",
|
|
12
12
|
"psycopg-pool>=3.1",
|
|
13
13
|
]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""AMFS Postgres Adapter — psycopg3 with back-propagation triggers."""
|
|
2
|
+
|
|
3
|
+
from amfs_postgres.adapter import PostgresAdapter
|
|
4
|
+
from amfs_postgres.async_adapter import AsyncPostgresAdapter
|
|
5
|
+
from amfs_postgres.tenant_gucs import (
|
|
6
|
+
TENANT_GUC_NAMES,
|
|
7
|
+
set_tenant_gucs,
|
|
8
|
+
tenant_transaction,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"PostgresAdapter",
|
|
13
|
+
"AsyncPostgresAdapter",
|
|
14
|
+
# Anything doing tenant-scoped work on its own connections needs these
|
|
15
|
+
# rather than a private import: the four settings are one list in one place,
|
|
16
|
+
# and tenant_transaction is the transaction-scoped form that is safe behind
|
|
17
|
+
# a transaction-mode pooler. Both adapters' checkouts now do the same thing
|
|
18
|
+
# by default, so this is for callers holding a bare pool.
|
|
19
|
+
# See amfs_postgres.tenant_gucs.
|
|
20
|
+
"TENANT_GUC_NAMES",
|
|
21
|
+
"set_tenant_gucs",
|
|
22
|
+
"tenant_transaction",
|
|
23
|
+
]
|