Skip to content

pgagentos

SQL schemas and functions for agent state, jobs and retrieval.

pgagentos · SQL schemas and functions for agent state, jobs and retrieval.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102077pgagentospgagentos1.0RAGGPL-3.0-onlySQL

PostgreSQL · 14, 15, 16, 17, 18

Relationships
Requiresvector pgcrypto plpgsql

Usage

Sources:

pgagentos installs relational agent infrastructure: model/event records, tenants, personas, skills, conversations, memory and retrieval schemas. It is a SQL-only extension, not an autonomous model runtime.

Core Workflow

CREATE EXTENSION vector;
CREATE EXTENSION pgcrypto;
CREATE EXTENSION pgagentos;
INSERT INTO aos_auth.tenant(name) VALUES ('example_team') RETURNING tenant_id;
SELECT * FROM aos_core.job LIMIT 10;

Operational Boundaries

Requires PostgreSQL 14 or later, vector, pgcrypto and PL/pgSQL. Install as a superuser; no preload is required. Use the SQL functions to record work, while an external application handles model execution and credentials. Row policies depend on aos_auth.current_tenant() and a session tenant setting; callers able to change that setting are not an independent authentication boundary. Review grants, ownership and RLS bypass before exposing database sessions to tenants. Schema creation alone does not establish secure multi-tenant operation.

Table reader