Skip to main content

memory_stores

Creates, updates, deletes, gets or lists a memory_stores resource.

Overview​

Namememory_stores
TypeResource
Iddatabricks_workspace.agentkit.memory_stores

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringResource name in the form ``memory-stores/{managed_memory_store_id}``.
creator_user_idstringWorkspace-local user ID of the authenticated principal that created the store. This is immutable server-set attribution and does not grant access; authorization is evaluated from the authenticated request context.
owner_user_idstringDeprecated alias for ``creator_user_id``. This identifies the original creator, not a transferable owner. Use ``creator_user_id`` instead.
workspace_idintegerWorkspace that owns the memory store.
display_namestringDeprecated compatibility alias for the caller-provided memory store ID. Canonical clients provide the ID through ``CreateMemoryStoreRequest.managed_memory_store_id`` and use ``name`` as the resource identifier.
create_timestring (date-time)Time when the store was created.
descriptionstringHuman-readable description of the memory store.
â–¶storage_backendobjectService-managed storage backing this memory store.
update_timestring (date-time)Time when the store was last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectmanaged_memory_store_id, deployment_name, workspace_domainRetrieves a memory store by resource name. Returns NOT_FOUND when the store does not exist in the
listselectdeployment_name, workspace_domainpage_size, page_tokenLists memory stores in the caller's workspace.
createinsertmanaged_memory_store_id, deployment_name, workspace_domainCreates a memory store in the caller's workspace.
updateupdatemanaged_memory_store_id, update_mask, deployment_name, workspace_domainUpdates a memory store's description and metadata.
deletedeletemanaged_memory_store_id, deployment_name, workspace_domainDeletes a memory store by resource name. Returns NOT_FOUND when the store does not exist in the

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks workspace deployment name: the host prefix of the workspace URL (dbc-abcd0123-a1bc on AWS, adb-1234567890123456.7 on Azure, 1234567890123456.7 on GCP). Set DATABRICKS_DEPLOYMENT_NAME to default it for the session. (default: dbc-abcd0123-a1bc, x-stackQL-envVar: DATABRICKS_DEPLOYMENT_NAME)
managed_memory_store_idstringThe managed_memory_store_id segment of the name resource name (memory-stores/{managed_memory_store_id}). Resource name in the form memory-stores/{managed_memory_store_id}.
update_maskobjectOnly description and metadata may be updated. Selecting metadata replaces the entire map.
workspace_domainstringThe Databricks workspace domain suffix for the cloud. Selected by DATABRICKS_CLOUD (aws, azure or gcp; default aws). (default: cloud.databricks.com, x-stackQL-envVarSelector: {"envVar":"DATABRICKS_CLOUD","default":"aws","values":{"aws":"cloud.databricks.com","azure":"azuredatabricks.net","gcp":"gcp.databricks.com"}})
page_sizeintegerMaximum number of stores to return. The service may return fewer stores than requested. Defaults to 10; must be between 1 and 100.
page_tokenstringOpaque pagination token from a previous ListManagedMemoryStores response.

SELECT examples​

Retrieves a memory store by resource name. Returns NOT_FOUND when the store does not exist in the

SELECT
name,
creator_user_id,
owner_user_id,
workspace_id,
display_name,
create_time,
description,
storage_backend,
update_time
FROM databricks_workspace.agentkit.memory_stores
WHERE managed_memory_store_id = '{{ managed_memory_store_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND workspace_domain = '{{ workspace_domain }}' -- required
;

INSERT examples​

Creates a memory store in the caller's workspace.

INSERT INTO databricks_workspace.agentkit.memory_stores (
create_time,
creator_user_id,
description,
display_name,
name,
owner_user_id,
storage_backend,
update_time,
workspace_id,
managed_memory_store_id,
deployment_name,
workspace_domain
)
SELECT
'{{ create_time }}',
'{{ creator_user_id }}',
'{{ description }}',
'{{ display_name }}',
'{{ name }}',
'{{ owner_user_id }}',
'{{ storage_backend }}',
'{{ update_time }}',
{{ workspace_id }},
'{{ managed_memory_store_id }}',
'{{ deployment_name }}',
'{{ workspace_domain }}'
RETURNING
name,
creator_user_id,
owner_user_id,
workspace_id,
display_name,
create_time,
description,
storage_backend,
update_time
;

UPDATE examples​

Updates a memory store's description and metadata.

UPDATE databricks_workspace.agentkit.memory_stores
SET
create_time = '{{ create_time }}',
creator_user_id = '{{ creator_user_id }}',
description = '{{ description }}',
display_name = '{{ display_name }}',
name = '{{ name }}',
owner_user_id = '{{ owner_user_id }}',
storage_backend = '{{ storage_backend }}',
update_time = '{{ update_time }}',
workspace_id = {{ workspace_id }}
WHERE
managed_memory_store_id = '{{ managed_memory_store_id }}' --required
AND update_mask = '{{ update_mask }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND workspace_domain = '{{ workspace_domain }}' --required
RETURNING
name,
creator_user_id,
owner_user_id,
workspace_id,
display_name,
create_time,
description,
storage_backend,
update_time;

DELETE examples​

Deletes a memory store by resource name. Returns NOT_FOUND when the store does not exist in the

DELETE FROM databricks_workspace.agentkit.memory_stores
WHERE managed_memory_store_id = '{{ managed_memory_store_id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND workspace_domain = '{{ workspace_domain }}' --required
;