On this page
Sommatic Docs
Open portal

Memory and datasources

A memory store describes where agents may keep context between runs, and an external datasource describes a data source they may query. Both declare what is allowed, by whom and for how long. Today they are governed definitions.

View as Markdown
Open in

An agent that remembers or reads data needs limits as clear as the ones on its tools: which backend, which slice of the data, which operations, for how long and for whom. Memory stores and external datasources write those limits down as records of your organization, so agent profiles can reference them by id (memory_store_ids, datasource_ids).

Memory store

A memory store is a governed place to keep context across runs: conversation history, facts, session state or embeddings. It is not a generic cache: it declares how entries are isolated and how long they live.

FieldWhat it is
slug, name, descriptionStable key and labels.
organization_id, project_idOwner organization and, optionally, project.
memory_kindThe backend kind: kv-store, vector-memory, session-store, document-memory or hybrid.
connector_slug, backing_datasource_keyThe connector behind it, or the datasource it is built on.
default_namespaceThe namespace or collection used when none is given.
partitioningHow entries are isolated across tenants, users, workflows or agents.
schema_hintsThe usual shape of an entry.
retention_policy, default_ttl_msHow long entries are kept and how they are compacted.
query_capabilitiesThe operations it allows.
auth_context_requiredWhether access needs an authenticated identity.
allowed_agent_profile_ids, allowed_operator_slugsWho may use it.
is_systemWhether it is a system store.

External datasource

An external datasource describes a source of data an agent may query: a database, a bucket, a warehouse, a search index or a vector database.

FieldWhat it is
slug, name, descriptionStable key and labels.
organization_id, project_idOwner organization and, optionally, project.
datasource_kindpostgres, mysql, sqlserver, mongodb, s3, gcs, snowflake, bigquery, elasticsearch, vector-db or custom.
connector_slugThe connector used to reach it.
default_collection, collectionsThe datasets it exposes, with optional schema hints.
indexingIts indexing: primary key, vector index and similar.
query_capabilitiesWhat it supports, such as select, insert, vector-search or aggregation.
auth_context_requiredWhether access needs an authenticated identity.
allowed_agent_profile_ids, allowed_operator_slugsWho may use it.
is_systemWhether it is a system datasource.

Both use the statuses enabled, review, deprecated and archived.

Manage them

In the portal, go to Advanced → Cognitive Infrastructure and open Memory Store or External Datasource. Through the API, use /cognitive-infrastructure/connectors/memory-store/ and /cognitive-infrastructure/connectors/external-datasource/ (see the API reference).

Next steps

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs