@@ -96,10 +96,9 @@ export interface AgentResponse {
9696 created_at : string ;
9797
9898 /**
99- * Memory stores attached to this agent. Always present; empty when no stores are
100- * attached.
99+ * Memory settings for an agent.
101100 */
102- memory_stores : Array < AgentResponse . MemoryStore > ;
101+ memory : AgentResponse . Memory ;
103102
104103 /**
105104 * Name of the agent
@@ -187,23 +186,92 @@ export interface AgentResponse {
187186
188187export namespace AgentResponse {
189188 /**
190- * Reference to a memory store to attach to an agent.
189+ * Memory settings for an agent.
191190 */
192- export interface MemoryStore {
191+ export interface Memory {
193192 /**
194- * Access level for the store .
193+ * Team memory stores attached to the agent .
195194 */
196- access : 'read_write' | 'read_only' ;
195+ attached_stores : Array < Memory . AttachedStore > ;
197196
198197 /**
199- * Instructions for how the agent should use this memory store. Must not be empty .
198+ * Auto- memory state for an agent .
200199 */
201- instructions : string ;
200+ auto_memory : Memory . AutoMemory ;
201+ }
202+
203+ export namespace Memory {
204+ /**
205+ * Reference to a memory store to attach to an agent.
206+ */
207+ export interface AttachedStore {
208+ /**
209+ * Access level for the store.
210+ */
211+ access : 'read_write' | 'read_only' ;
212+
213+ /**
214+ * Instructions for how the agent should use this memory store. Must not be empty.
215+ */
216+ instructions : string ;
217+
218+ /**
219+ * UID of the memory store.
220+ */
221+ uid : string ;
222+ }
202223
203224 /**
204- * UID of the memory store .
225+ * Auto-memory state for an agent .
205226 */
206- uid : string ;
227+ export interface AutoMemory {
228+ /**
229+ * Whether this agent has an agent-owned memory store.
230+ */
231+ enabled : boolean ;
232+
233+ /**
234+ * Memory store attached to an agent.
235+ */
236+ store ?: AutoMemory . Store ;
237+ }
238+
239+ export namespace AutoMemory {
240+ /**
241+ * Memory store attached to an agent.
242+ */
243+ export interface Store {
244+ /**
245+ * Access level for the store.
246+ */
247+ access : 'read_write' | 'read_only' ;
248+
249+ /**
250+ * Instructions for how the agent should use this memory store.
251+ */
252+ instructions : string ;
253+
254+ /**
255+ * Public owner type.
256+ */
257+ owner_type : 'user' | 'service_account' | 'team' ;
258+
259+ /**
260+ * Public UID of the user, service account, or team that owns the memory store.
261+ */
262+ owner_uid : string ;
263+
264+ /**
265+ * UID of the memory store.
266+ */
267+ uid : string ;
268+
269+ /**
270+ * Optional description for the memory store.
271+ */
272+ description ?: string ;
273+ }
274+ }
207275 }
208276
209277 /**
@@ -314,11 +382,9 @@ export interface CreateAgentRequest {
314382 mcp_servers ?: { [ key : string ] : AgentAPI . McpServerConfig } ;
315383
316384 /**
317- * Optional list of memory stores to attach to the agent. Each store must be
318- * team-owned by the same team as the agent. Duplicate UIDs within a single request
319- * are rejected.
385+ * Memory settings for creating an agent.
320386 */
321- memory_stores ?: Array < CreateAgentRequest . MemoryStore > ;
387+ memory ?: CreateAgentRequest . Memory ;
322388
323389 /**
324390 * Optional base prompt for this agent
@@ -396,23 +462,52 @@ export namespace CreateAgentRequest {
396462 }
397463
398464 /**
399- * Reference to a memory store to attach to an agent.
465+ * Memory settings for creating an agent.
400466 */
401- export interface MemoryStore {
467+ export interface Memory {
402468 /**
403- * Access level for the store.
469+ * Existing team memory stores to attach to the agent. Duplicate UIDs within a
470+ * single request are rejected.
404471 */
405- access : 'read_write' | 'read_only' ;
472+ attached_stores ?: Array < Memory . AttachedStore > ;
406473
407474 /**
408- * Instructions for how the agent should use this memory store. Must not be empty .
475+ * Auto- memory settings for creating an agent .
409476 */
410- instructions : string ;
477+ auto_memory ?: Memory . AutoMemory ;
478+ }
411479
480+ export namespace Memory {
412481 /**
413- * UID of the memory store.
482+ * Reference to a memory store to attach to an agent .
414483 */
415- uid : string ;
484+ export interface AttachedStore {
485+ /**
486+ * Access level for the store.
487+ */
488+ access : 'read_write' | 'read_only' ;
489+
490+ /**
491+ * Instructions for how the agent should use this memory store. Must not be empty.
492+ */
493+ instructions : string ;
494+
495+ /**
496+ * UID of the memory store.
497+ */
498+ uid : string ;
499+ }
500+
501+ /**
502+ * Auto-memory settings for creating an agent.
503+ */
504+ export interface AutoMemory {
505+ /**
506+ * Whether to create and attach a default service-account-owned memory store for
507+ * this agent. Defaults to true when omitted.
508+ */
509+ enabled ?: boolean ;
510+ }
416511 }
417512
418513 /**
@@ -481,10 +576,9 @@ export interface UpdateAgentRequest {
481576 mcp_servers ?: { [ key : string ] : AgentAPI . McpServerConfig } ;
482577
483578 /**
484- * Replacement list of memory stores. Omit to leave unchanged, pass an empty array
485- * to clear, or pass a non-empty array to replace.
579+ * Memory settings for updating an agent.
486580 */
487- memory_stores ?: Array < UpdateAgentRequest . MemoryStore > | null ;
581+ memory ?: UpdateAgentRequest . Memory | null ;
488582
489583 /**
490584 * The new name for the agent
@@ -564,23 +658,36 @@ export namespace UpdateAgentRequest {
564658 }
565659
566660 /**
567- * Reference to a memory store to attach to an agent.
661+ * Memory settings for updating an agent.
568662 */
569- export interface MemoryStore {
663+ export interface Memory {
570664 /**
571- * Access level for the store.
665+ * Replacement list of attached team memory stores. Omit to leave unchanged, pass
666+ * an empty array to clear, or pass a non-empty array to replace.
572667 */
573- access : 'read_write' | 'read_only' ;
668+ attached_stores ?: Array < Memory . AttachedStore > | null ;
669+ }
574670
671+ export namespace Memory {
575672 /**
576- * Instructions for how the agent should use this memory store. Must not be empty .
673+ * Reference to a memory store to attach to an agent .
577674 */
578- instructions : string ;
675+ export interface AttachedStore {
676+ /**
677+ * Access level for the store.
678+ */
679+ access : 'read_write' | 'read_only' ;
579680
580- /**
581- * UID of the memory store.
582- */
583- uid : string ;
681+ /**
682+ * Instructions for how the agent should use this memory store. Must not be empty.
683+ */
684+ instructions : string ;
685+
686+ /**
687+ * UID of the memory store.
688+ */
689+ uid : string ;
690+ }
584691 }
585692
586693 /**
@@ -639,11 +746,9 @@ export interface AgentCreateParams {
639746 mcp_servers ?: { [ key : string ] : AgentAPI . McpServerConfig } ;
640747
641748 /**
642- * Optional list of memory stores to attach to the agent. Each store must be
643- * team-owned by the same team as the agent. Duplicate UIDs within a single request
644- * are rejected.
749+ * Memory settings for creating an agent.
645750 */
646- memory_stores ?: Array < AgentCreateParams . MemoryStore > ;
751+ memory ?: AgentCreateParams . Memory ;
647752
648753 /**
649754 * Optional base prompt for this agent
@@ -721,23 +826,52 @@ export namespace AgentCreateParams {
721826 }
722827
723828 /**
724- * Reference to a memory store to attach to an agent.
829+ * Memory settings for creating an agent.
725830 */
726- export interface MemoryStore {
831+ export interface Memory {
727832 /**
728- * Access level for the store.
833+ * Existing team memory stores to attach to the agent. Duplicate UIDs within a
834+ * single request are rejected.
729835 */
730- access : 'read_write' | 'read_only' ;
836+ attached_stores ?: Array < Memory . AttachedStore > ;
837+
838+ /**
839+ * Auto-memory settings for creating an agent.
840+ */
841+ auto_memory ?: Memory . AutoMemory ;
842+ }
731843
844+ export namespace Memory {
732845 /**
733- * Instructions for how the agent should use this memory store. Must not be empty .
846+ * Reference to a memory store to attach to an agent .
734847 */
735- instructions : string ;
848+ export interface AttachedStore {
849+ /**
850+ * Access level for the store.
851+ */
852+ access : 'read_write' | 'read_only' ;
853+
854+ /**
855+ * Instructions for how the agent should use this memory store. Must not be empty.
856+ */
857+ instructions : string ;
858+
859+ /**
860+ * UID of the memory store.
861+ */
862+ uid : string ;
863+ }
736864
737865 /**
738- * UID of the memory store .
866+ * Auto-memory settings for creating an agent .
739867 */
740- uid : string ;
868+ export interface AutoMemory {
869+ /**
870+ * Whether to create and attach a default service-account-owned memory store for
871+ * this agent. Defaults to true when omitted.
872+ */
873+ enabled ?: boolean ;
874+ }
741875 }
742876
743877 /**
@@ -795,10 +929,9 @@ export interface AgentUpdateParams {
795929 mcp_servers ?: { [ key : string ] : AgentAPI . McpServerConfig } ;
796930
797931 /**
798- * Replacement list of memory stores. Omit to leave unchanged, pass an empty array
799- * to clear, or pass a non-empty array to replace.
932+ * Memory settings for updating an agent.
800933 */
801- memory_stores ?: Array < AgentUpdateParams . MemoryStore > | null ;
934+ memory ?: AgentUpdateParams . Memory | null ;
802935
803936 /**
804937 * The new name for the agent
@@ -878,23 +1011,36 @@ export namespace AgentUpdateParams {
8781011 }
8791012
8801013 /**
881- * Reference to a memory store to attach to an agent.
1014+ * Memory settings for updating an agent.
8821015 */
883- export interface MemoryStore {
1016+ export interface Memory {
8841017 /**
885- * Access level for the store.
1018+ * Replacement list of attached team memory stores. Omit to leave unchanged, pass
1019+ * an empty array to clear, or pass a non-empty array to replace.
8861020 */
887- access : 'read_write' | 'read_only' ;
1021+ attached_stores ?: Array < Memory . AttachedStore > | null ;
1022+ }
8881023
1024+ export namespace Memory {
8891025 /**
890- * Instructions for how the agent should use this memory store. Must not be empty .
1026+ * Reference to a memory store to attach to an agent .
8911027 */
892- instructions : string ;
1028+ export interface AttachedStore {
1029+ /**
1030+ * Access level for the store.
1031+ */
1032+ access : 'read_write' | 'read_only' ;
8931033
894- /**
895- * UID of the memory store.
896- */
897- uid : string ;
1034+ /**
1035+ * Instructions for how the agent should use this memory store. Must not be empty.
1036+ */
1037+ instructions : string ;
1038+
1039+ /**
1040+ * UID of the memory store.
1041+ */
1042+ uid : string ;
1043+ }
8981044 }
8991045
9001046 /**
0 commit comments