Skip to content

Commit 059f1e3

Browse files
feat(api): api update
1 parent 3a54264 commit 059f1e3

5 files changed

Lines changed: 4 additions & 69 deletions

File tree

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 23
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
1+
configured_endpoints: 22
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-c58f2ee13e97acdf607650e199cb1377d2767c6bd6183b5f1212fa2666bb5f04.yml
3+
openapi_spec_hash: 19295b9e19b2ab3093087d9b11a6095f
4+
config_hash: f52e7636f248f25c4ea0b086e7326816

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ Methods:
7979
- <code title="put /agent/identities/{uid}">client.agent.agent.<a href="./src/resources/agent/agent_.ts">update</a>(uid, { ...params }) -> AgentResponse</code>
8080
- <code title="get /agent/identities">client.agent.agent.<a href="./src/resources/agent/agent_.ts">list</a>() -> ListAgentIdentitiesResponse</code>
8181
- <code title="delete /agent/identities/{uid}">client.agent.agent.<a href="./src/resources/agent/agent_.ts">delete</a>(uid) -> void</code>
82-
- <code title="get /agent/identities/{uid}">client.agent.agent.<a href="./src/resources/agent/agent_.ts">get</a>(uid) -> AgentResponse</code>
8382

8483
## Sessions
8584

src/resources/agent/agent_.ts

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,6 @@ export class Agent extends APIResource {
6767
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
6868
});
6969
}
70-
71-
/**
72-
* Retrieve a single agent by its unique identifier. The response includes an
73-
* `available` flag indicating whether the agent is within the team's plan limit
74-
* and may be used for runs.
75-
*
76-
* @example
77-
* ```ts
78-
* const agentResponse = await client.agent.agent.get('uid');
79-
* ```
80-
*/
81-
get(uid: string, options?: RequestOptions): APIPromise<AgentResponse> {
82-
return this._client.get(path`/agent/identities/${uid}`, options);
83-
}
8470
}
8571

8672
export interface AgentResponse {
@@ -115,16 +101,6 @@ export interface AgentResponse {
115101
*/
116102
uid: string;
117103

118-
/**
119-
* Base model for runs executed by this agent. The precedence order for model
120-
* resolution is:
121-
*
122-
* 1. The model specified on the run itself
123-
* 2. The agent's base model
124-
* 3. The team's default model
125-
*/
126-
base_model?: string;
127-
128104
/**
129105
* Optional description of the agent
130106
*/
@@ -149,11 +125,6 @@ export interface CreateAgentRequest {
149125
*/
150126
name: string;
151127

152-
/**
153-
* Optional base model for runs executed by this agent.
154-
*/
155-
base_model?: string | null;
156-
157128
/**
158129
* Optional description of the agent
159130
*/
@@ -200,12 +171,6 @@ export interface ListAgentIdentitiesResponse {
200171
* - Non-empty: replace the field wholesale with the provided value.
201172
*/
202173
export interface UpdateAgentRequest {
203-
/**
204-
* Replacement base model. Omit or pass `null` to leave unchanged, or pass an empty
205-
* string to clear.
206-
*/
207-
base_model?: string | null;
208-
209174
/**
210175
* Replacement description. Omit or pass `null` to leave unchanged, or use an empty
211176
* value to clear.
@@ -248,11 +213,6 @@ export interface AgentCreateParams {
248213
*/
249214
name: string;
250215

251-
/**
252-
* Optional base model for runs executed by this agent.
253-
*/
254-
base_model?: string | null;
255-
256216
/**
257217
* Optional description of the agent
258218
*/
@@ -288,12 +248,6 @@ export namespace AgentCreateParams {
288248
}
289249

290250
export interface AgentUpdateParams {
291-
/**
292-
* Replacement base model. Omit or pass `null` to leave unchanged, or pass an empty
293-
* string to clear.
294-
*/
295-
base_model?: string | null;
296-
297251
/**
298252
* Replacement description. Omit or pass `null` to leave unchanged, or use an empty
299253
* value to clear.

src/resources/agent/runs.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,11 +455,6 @@ export namespace RunItem {
455455
* Cost of LLM inference for the run
456456
*/
457457
inference_cost?: number;
458-
459-
/**
460-
* Cost of platform usage for the run
461-
*/
462-
platform_cost?: number;
463458
}
464459

465460
/**

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ describe('resource agent', () => {
2424
test.skip('create: required and optional params', async () => {
2525
const response = await client.agent.agent.create({
2626
name: 'name',
27-
base_model: 'base_model',
2827
description: 'description',
2928
secrets: [{ name: 'name' }],
3029
skills: ['string'],
@@ -66,16 +65,4 @@ describe('resource agent', () => {
6665
expect(dataAndResponse.data).toBe(response);
6766
expect(dataAndResponse.response).toBe(rawResponse);
6867
});
69-
70-
// Mock server tests are disabled
71-
test.skip('get', async () => {
72-
const responsePromise = client.agent.agent.get('uid');
73-
const rawResponse = await responsePromise.asResponse();
74-
expect(rawResponse).toBeInstanceOf(Response);
75-
const response = await responsePromise;
76-
expect(response).not.toBeInstanceOf(Response);
77-
const dataAndResponse = await responsePromise.withResponse();
78-
expect(dataAndResponse.data).toBe(response);
79-
expect(dataAndResponse.response).toBe(rawResponse);
80-
});
8168
});

0 commit comments

Comments
 (0)