Skip to content

Commit 63ba09a

Browse files
feat(api): api update
1 parent 89d7027 commit 63ba09a

6 files changed

Lines changed: 5 additions & 188 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 23
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-39a99ab48c1c418a7cf1535c85ff115b2745b5a6fd04aa4d148ae91a58a3dcd8.yml
3-
openapi_spec_hash: 5c307d9da7c5debd964c0da4ebe82214
4-
config_hash: 236823a4936c76818117c16aa5c188df
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-e752e75a35d88b84870729ef94b0c32783172983420cbff1b204ca14375553f7.yml
3+
openapi_spec_hash: 34787afc1e1c84a643431a0f0eb352ae
4+
config_hash: 5a6e285f6e3a958a887b31b972a3f49c

src/resources/agent/agent.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,6 @@ export interface AmbientAgentConfig {
250250
*/
251251
mcp_servers?: { [key: string]: McpServerConfig };
252252

253-
/**
254-
* Memory stores to attach to this run.
255-
*/
256-
memory_stores?: Array<AmbientAgentConfig.MemoryStore>;
257-
258253
/**
259254
* LLM model to use (uses team default if not specified)
260255
*/
@@ -323,26 +318,6 @@ export namespace AmbientAgentConfig {
323318
claude_auth_secret_name?: string;
324319
}
325320

326-
/**
327-
* Reference to a memory store to attach to an agent.
328-
*/
329-
export interface MemoryStore {
330-
/**
331-
* Access level for the store.
332-
*/
333-
access: 'read_write' | 'read_only';
334-
335-
/**
336-
* Instructions for how the agent should use this memory store. Must not be empty.
337-
*/
338-
instructions: string;
339-
340-
/**
341-
* UID of the memory store.
342-
*/
343-
uid: string;
344-
}
345-
346321
/**
347322
* Configures sharing behavior for the run's shared session. When set, the worker
348323
* emits `--share public:<level>` and the bundled Warp client applies an

src/resources/agent/agent_.ts

Lines changed: 0 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,6 @@ export interface AgentResponse {
9494
*/
9595
created_at: string;
9696

97-
/**
98-
* Memory stores attached to this agent. Always present; empty when no stores are
99-
* attached.
100-
*/
101-
memory_stores: Array<AgentResponse.MemoryStore>;
102-
10397
/**
10498
* Name of the agent
10599
*/
@@ -138,26 +132,6 @@ export interface AgentResponse {
138132
}
139133

140134
export namespace AgentResponse {
141-
/**
142-
* Reference to a memory store to attach to an agent.
143-
*/
144-
export interface MemoryStore {
145-
/**
146-
* Access level for the store.
147-
*/
148-
access: 'read_write' | 'read_only';
149-
150-
/**
151-
* Instructions for how the agent should use this memory store. Must not be empty.
152-
*/
153-
instructions: string;
154-
155-
/**
156-
* UID of the memory store.
157-
*/
158-
uid: string;
159-
}
160-
161135
/**
162136
* Reference to a managed secret by name.
163137
*/
@@ -185,13 +159,6 @@ export interface CreateAgentRequest {
185159
*/
186160
description?: string | null;
187161

188-
/**
189-
* Optional list of memory stores to attach to the agent. Each store must be
190-
* team-owned by the same team as the agent. Duplicate UIDs within a single request
191-
* are rejected.
192-
*/
193-
memory_stores?: Array<CreateAgentRequest.MemoryStore>;
194-
195162
/**
196163
* Optional list of secrets associated with the agent. Duplicate names within a
197164
* single request are rejected. Each entry is unioned into the run-time secret
@@ -210,26 +177,6 @@ export interface CreateAgentRequest {
210177
}
211178

212179
export namespace CreateAgentRequest {
213-
/**
214-
* Reference to a memory store to attach to an agent.
215-
*/
216-
export interface MemoryStore {
217-
/**
218-
* Access level for the store.
219-
*/
220-
access: 'read_write' | 'read_only';
221-
222-
/**
223-
* Instructions for how the agent should use this memory store. Must not be empty.
224-
*/
225-
instructions: string;
226-
227-
/**
228-
* UID of the memory store.
229-
*/
230-
uid: string;
231-
}
232-
233180
/**
234181
* Reference to a managed secret by name.
235182
*/
@@ -265,12 +212,6 @@ export interface UpdateAgentRequest {
265212
*/
266213
description?: string | null;
267214

268-
/**
269-
* Replacement list of memory stores. Omit to leave unchanged, pass an empty array
270-
* to clear, or pass a non-empty array to replace.
271-
*/
272-
memory_stores?: Array<UpdateAgentRequest.MemoryStore> | null;
273-
274215
/**
275216
* The new name for the agent
276217
*/
@@ -290,26 +231,6 @@ export interface UpdateAgentRequest {
290231
}
291232

292233
export namespace UpdateAgentRequest {
293-
/**
294-
* Reference to a memory store to attach to an agent.
295-
*/
296-
export interface MemoryStore {
297-
/**
298-
* Access level for the store.
299-
*/
300-
access: 'read_write' | 'read_only';
301-
302-
/**
303-
* Instructions for how the agent should use this memory store. Must not be empty.
304-
*/
305-
instructions: string;
306-
307-
/**
308-
* UID of the memory store.
309-
*/
310-
uid: string;
311-
}
312-
313234
/**
314235
* Reference to a managed secret by name.
315236
*/
@@ -337,13 +258,6 @@ export interface AgentCreateParams {
337258
*/
338259
description?: string | null;
339260

340-
/**
341-
* Optional list of memory stores to attach to the agent. Each store must be
342-
* team-owned by the same team as the agent. Duplicate UIDs within a single request
343-
* are rejected.
344-
*/
345-
memory_stores?: Array<AgentCreateParams.MemoryStore>;
346-
347261
/**
348262
* Optional list of secrets associated with the agent. Duplicate names within a
349263
* single request are rejected. Each entry is unioned into the run-time secret
@@ -362,26 +276,6 @@ export interface AgentCreateParams {
362276
}
363277

364278
export namespace AgentCreateParams {
365-
/**
366-
* Reference to a memory store to attach to an agent.
367-
*/
368-
export interface MemoryStore {
369-
/**
370-
* Access level for the store.
371-
*/
372-
access: 'read_write' | 'read_only';
373-
374-
/**
375-
* Instructions for how the agent should use this memory store. Must not be empty.
376-
*/
377-
instructions: string;
378-
379-
/**
380-
* UID of the memory store.
381-
*/
382-
uid: string;
383-
}
384-
385279
/**
386280
* Reference to a managed secret by name.
387281
*/
@@ -406,12 +300,6 @@ export interface AgentUpdateParams {
406300
*/
407301
description?: string | null;
408302

409-
/**
410-
* Replacement list of memory stores. Omit to leave unchanged, pass an empty array
411-
* to clear, or pass a non-empty array to replace.
412-
*/
413-
memory_stores?: Array<AgentUpdateParams.MemoryStore> | null;
414-
415303
/**
416304
* The new name for the agent
417305
*/
@@ -431,26 +319,6 @@ export interface AgentUpdateParams {
431319
}
432320

433321
export namespace AgentUpdateParams {
434-
/**
435-
* Reference to a memory store to attach to an agent.
436-
*/
437-
export interface MemoryStore {
438-
/**
439-
* Access level for the store.
440-
*/
441-
access: 'read_write' | 'read_only';
442-
443-
/**
444-
* Instructions for how the agent should use this memory store. Must not be empty.
445-
*/
446-
instructions: string;
447-
448-
/**
449-
* UID of the memory store.
450-
*/
451-
uid: string;
452-
}
453-
454322
/**
455323
* Reference to a managed secret by name.
456324
*/

src/resources/agent/schedules.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,6 @@ export interface ScheduledAgentItem {
178178
*/
179179
agent_config?: AgentAPI.AmbientAgentConfig;
180180

181-
/**
182-
* UID of the agent that this schedule runs as
183-
*/
184-
agent_uid?: string;
185-
186181
created_by?: AgentAPI.UserProfile;
187182

188183
/**

tests/api-resources/agent/agent_.test.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ describe('resource agent', () => {
2626
name: 'name',
2727
base_model: 'base_model',
2828
description: 'description',
29-
memory_stores: [
30-
{
31-
access: 'read_write',
32-
instructions: 'instructions',
33-
uid: 'uid',
34-
},
35-
],
3629
secrets: [{ name: 'name' }],
3730
skills: ['string'],
3831
});

tests/api-resources/agent/schedules.test.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,13 @@ describe('resource schedules', () => {
4545
warp_id: 'warp_id',
4646
},
4747
},
48-
memory_stores: [
49-
{
50-
access: 'read_write',
51-
instructions: 'instructions',
52-
uid: 'uid',
53-
},
54-
],
5548
model_id: 'model_id',
5649
name: 'name',
5750
session_sharing: { public_access: 'VIEWER' },
5851
skill_spec: 'skill_spec',
5952
worker_host: 'worker_host',
6053
},
61-
agent_uid: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
54+
agent_uid: 'agent_uid',
6255
enabled: true,
6356
mode: 'normal',
6457
prompt: 'Review open pull requests and provide feedback',
@@ -117,20 +110,13 @@ describe('resource schedules', () => {
117110
warp_id: 'warp_id',
118111
},
119112
},
120-
memory_stores: [
121-
{
122-
access: 'read_write',
123-
instructions: 'instructions',
124-
uid: 'uid',
125-
},
126-
],
127113
model_id: 'model_id',
128114
name: 'name',
129115
session_sharing: { public_access: 'VIEWER' },
130116
skill_spec: 'skill_spec',
131117
worker_host: 'worker_host',
132118
},
133-
agent_uid: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
119+
agent_uid: 'agent_uid',
134120
mode: 'normal',
135121
prompt: 'prompt',
136122
});

0 commit comments

Comments
 (0)