Skip to main content

memories

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

Overview

Namememories
TypeResource
Idpagerduty.sre_agent.memories

Fields

The following fields are returned by SELECT queries:

An array of SRE Agent memories.

NameDatatypeDescription
idstringThe unique identifier for this memory.
attributesobjectAdditional attributes associated with this memory.
contentstringThe content of the SRE memory.
created_atstring (date-time)The date and time the memory was created.
updated_atstring (date-time)The date and time the memory was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectlimit, service_id, incident_id, typeSearch SRE Agent memories for the account.<br /><br />Memories are knowledge learned by the SRE Agent, including service runbooks, service profiles,<br />incident playbooks, and incident summaries. Filter by service ID, incident ID, or memory type to retrieve<br />relevant memories.<br /><br />Scoped OAuth requires: incident.read<br />
updateupdateid, memoryUpdate an existing SRE Agent memory. Changes to the runbook may not update in a currently ongoing conversation, but will be available to new conversations. To modify the runbook for an in progress conversation update the runbook via the agent instead.<br /><br />Scoped OAuth requires: sre_agent.write<br />
deletedeleteidPermanently delete an SRE Agent memory. Deleting a runbook may not delete it immediately from a currently running conversation, but will remove it from all future conversations. To modify an in progress conversation ask the agent to delete the runbook instead.<br /><br />Scoped OAuth requires: sre_agent.write<br />

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
idstringThe ID of the resource.
incident_idstringFilter memories by incident ID
limitintegerThe number of results to return per page.
service_idstringFilter memories by service ID
typestringFilter memories by type

SELECT examples

Search SRE Agent memories for the account.<br /><br />Memories are knowledge learned by the SRE Agent, including service runbooks, service profiles,<br />incident playbooks, and incident summaries. Filter by service ID, incident ID, or memory type to retrieve<br />relevant memories.<br /><br />Scoped OAuth requires: incident.read<br />

SELECT
id,
attributes,
content,
created_at,
updated_at
FROM pagerduty.sre_agent.memories
WHERE limit = '{{ limit }}'
AND service_id = '{{ service_id }}'
AND incident_id = '{{ incident_id }}'
AND type = '{{ type }}'
;

UPDATE examples

Update an existing SRE Agent memory. Changes to the runbook may not update in a currently ongoing conversation, but will be available to new conversations. To modify the runbook for an in progress conversation update the runbook via the agent instead.<br /><br />Scoped OAuth requires: sre_agent.write<br />

UPDATE pagerduty.sre_agent.memories
SET
memory = '{{ memory }}'
WHERE
id = '{{ id }}' --required
AND memory = '{{ memory }}' --required
RETURNING
memory;

DELETE examples

Permanently delete an SRE Agent memory. Deleting a runbook may not delete it immediately from a currently running conversation, but will remove it from all future conversations. To modify an in progress conversation ask the agent to delete the runbook instead.<br /><br />Scoped OAuth requires: sre_agent.write<br />

DELETE FROM pagerduty.sre_agent.memories
WHERE id = '{{ id }}' --required
;