casedev 0.55.0 → 0.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/agent/agent.d.mts +0 -4
  4. package/resources/agent/agent.d.mts.map +1 -1
  5. package/resources/agent/agent.d.ts +0 -4
  6. package/resources/agent/agent.d.ts.map +1 -1
  7. package/resources/agent/agent.js +0 -4
  8. package/resources/agent/agent.js.map +1 -1
  9. package/resources/agent/agent.mjs +0 -4
  10. package/resources/agent/agent.mjs.map +1 -1
  11. package/resources/agent/index.d.mts +0 -1
  12. package/resources/agent/index.d.mts.map +1 -1
  13. package/resources/agent/index.d.ts +0 -1
  14. package/resources/agent/index.d.ts.map +1 -1
  15. package/resources/agent/index.js +1 -3
  16. package/resources/agent/index.js.map +1 -1
  17. package/resources/agent/index.mjs +0 -1
  18. package/resources/agent/index.mjs.map +1 -1
  19. package/resources/webhooks/v1/deliveries.d.mts +2 -2
  20. package/resources/webhooks/v1/deliveries.d.ts +2 -2
  21. package/resources/webhooks/v1/deliveries.js +2 -2
  22. package/resources/webhooks/v1/deliveries.mjs +2 -2
  23. package/src/resources/agent/agent.ts +0 -6
  24. package/src/resources/agent/index.ts +0 -1
  25. package/src/resources/webhooks/v1/deliveries.ts +2 -2
  26. package/src/version.ts +1 -1
  27. package/version.d.mts +1 -1
  28. package/version.d.ts +1 -1
  29. package/version.js +1 -1
  30. package/version.mjs +1 -1
  31. package/resources/agent/v2/chat/chat.d.mts +0 -196
  32. package/resources/agent/v2/chat/chat.d.mts.map +0 -1
  33. package/resources/agent/v2/chat/chat.d.ts +0 -196
  34. package/resources/agent/v2/chat/chat.d.ts.map +0 -1
  35. package/resources/agent/v2/chat/chat.js +0 -117
  36. package/resources/agent/v2/chat/chat.js.map +0 -1
  37. package/resources/agent/v2/chat/chat.mjs +0 -112
  38. package/resources/agent/v2/chat/chat.mjs.map +0 -1
  39. package/resources/agent/v2/chat/files.d.mts +0 -42
  40. package/resources/agent/v2/chat/files.d.mts.map +0 -1
  41. package/resources/agent/v2/chat/files.d.ts +0 -42
  42. package/resources/agent/v2/chat/files.d.ts.map +0 -1
  43. package/resources/agent/v2/chat/files.js +0 -33
  44. package/resources/agent/v2/chat/files.js.map +0 -1
  45. package/resources/agent/v2/chat/files.mjs +0 -29
  46. package/resources/agent/v2/chat/files.mjs.map +0 -1
  47. package/resources/agent/v2/chat/index.d.mts +0 -3
  48. package/resources/agent/v2/chat/index.d.mts.map +0 -1
  49. package/resources/agent/v2/chat/index.d.ts +0 -3
  50. package/resources/agent/v2/chat/index.d.ts.map +0 -1
  51. package/resources/agent/v2/chat/index.js +0 -9
  52. package/resources/agent/v2/chat/index.js.map +0 -1
  53. package/resources/agent/v2/chat/index.mjs +0 -4
  54. package/resources/agent/v2/chat/index.mjs.map +0 -1
  55. package/resources/agent/v2/chat.d.mts +0 -2
  56. package/resources/agent/v2/chat.d.mts.map +0 -1
  57. package/resources/agent/v2/chat.d.ts +0 -2
  58. package/resources/agent/v2/chat.d.ts.map +0 -1
  59. package/resources/agent/v2/chat.js +0 -6
  60. package/resources/agent/v2/chat.js.map +0 -1
  61. package/resources/agent/v2/chat.mjs +0 -3
  62. package/resources/agent/v2/chat.mjs.map +0 -1
  63. package/resources/agent/v2/execute.d.mts +0 -58
  64. package/resources/agent/v2/execute.d.mts.map +0 -1
  65. package/resources/agent/v2/execute.d.ts +0 -58
  66. package/resources/agent/v2/execute.d.ts.map +0 -1
  67. package/resources/agent/v2/execute.js +0 -20
  68. package/resources/agent/v2/execute.js.map +0 -1
  69. package/resources/agent/v2/execute.mjs +0 -16
  70. package/resources/agent/v2/execute.mjs.map +0 -1
  71. package/resources/agent/v2/index.d.mts +0 -5
  72. package/resources/agent/v2/index.d.mts.map +0 -1
  73. package/resources/agent/v2/index.d.ts +0 -5
  74. package/resources/agent/v2/index.d.ts.map +0 -1
  75. package/resources/agent/v2/index.js +0 -13
  76. package/resources/agent/v2/index.js.map +0 -1
  77. package/resources/agent/v2/index.mjs +0 -6
  78. package/resources/agent/v2/index.mjs.map +0 -1
  79. package/resources/agent/v2/run.d.mts +0 -73
  80. package/resources/agent/v2/run.d.mts.map +0 -1
  81. package/resources/agent/v2/run.d.ts +0 -73
  82. package/resources/agent/v2/run.d.ts.map +0 -1
  83. package/resources/agent/v2/run.js +0 -51
  84. package/resources/agent/v2/run.js.map +0 -1
  85. package/resources/agent/v2/run.mjs +0 -47
  86. package/resources/agent/v2/run.mjs.map +0 -1
  87. package/resources/agent/v2/v2.d.mts +0 -18
  88. package/resources/agent/v2/v2.d.mts.map +0 -1
  89. package/resources/agent/v2/v2.d.ts +0 -18
  90. package/resources/agent/v2/v2.d.ts.map +0 -1
  91. package/resources/agent/v2/v2.js +0 -25
  92. package/resources/agent/v2/v2.js.map +0 -1
  93. package/resources/agent/v2/v2.mjs +0 -20
  94. package/resources/agent/v2/v2.mjs.map +0 -1
  95. package/resources/agent/v2.d.mts +0 -2
  96. package/resources/agent/v2.d.mts.map +0 -1
  97. package/resources/agent/v2.d.ts +0 -2
  98. package/resources/agent/v2.d.ts.map +0 -1
  99. package/resources/agent/v2.js +0 -6
  100. package/resources/agent/v2.js.map +0 -1
  101. package/resources/agent/v2.mjs +0 -3
  102. package/resources/agent/v2.mjs.map +0 -1
  103. package/src/resources/agent/v2/chat/chat.ts +0 -314
  104. package/src/resources/agent/v2/chat/files.ts +0 -63
  105. package/src/resources/agent/v2/chat/index.ts +0 -17
  106. package/src/resources/agent/v2/chat.ts +0 -3
  107. package/src/resources/agent/v2/execute.ts +0 -91
  108. package/src/resources/agent/v2/index.ts +0 -28
  109. package/src/resources/agent/v2/run.ts +0 -137
  110. package/src/resources/agent/v2/v2.ts +0 -75
  111. package/src/resources/agent/v2.ts +0 -3
@@ -1,20 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- import * as ExecuteAPI from "./execute.mjs";
4
- import { Execute } from "./execute.mjs";
5
- import * as RunAPI from "./run.mjs";
6
- import { Run, } from "./run.mjs";
7
- import * as ChatAPI from "./chat/chat.mjs";
8
- import { Chat, } from "./chat/chat.mjs";
9
- export class V2 extends APIResource {
10
- constructor() {
11
- super(...arguments);
12
- this.run = new RunAPI.Run(this._client);
13
- this.execute = new ExecuteAPI.Execute(this._client);
14
- this.chat = new ChatAPI.Chat(this._client);
15
- }
16
- }
17
- V2.Run = Run;
18
- V2.Execute = Execute;
19
- V2.Chat = Chat;
20
- //# sourceMappingURL=v2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2.mjs","sourceRoot":"","sources":["../../../src/resources/agent/v2/v2.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,OAAO,EAA8C;OACvD,KAAK,MAAM;OACX,EACL,GAAG,GAQJ;OACM,KAAK,OAAO;OACZ,EACL,IAAI,GAYL;AAED,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAED,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;AACb,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC;AACrB,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./v2/index.mjs";
2
- //# sourceMappingURL=v2.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2.d.mts","sourceRoot":"","sources":["../../src/resources/agent/v2.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./v2/index.js";
2
- //# sourceMappingURL=v2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../src/resources/agent/v2.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const tslib_1 = require("../../internal/tslib.js");
5
- tslib_1.__exportStar(require("./v2/index.js"), exports);
6
- //# sourceMappingURL=v2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2.js","sourceRoot":"","sources":["../../src/resources/agent/v2.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAA2B"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./v2/index.mjs";
3
- //# sourceMappingURL=v2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2.mjs","sourceRoot":"","sources":["../../src/resources/agent/v2.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,314 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../../core/resource';
4
- import * as FilesAPI from './files';
5
- import { FileDownloadParams, FileListResponse, Files } from './files';
6
- import { APIPromise } from '../../../../core/api-promise';
7
- import { Stream } from '../../../../core/streaming';
8
- import { buildHeaders } from '../../../../internal/headers';
9
- import { RequestOptions } from '../../../../internal/request-options';
10
- import { path } from '../../../../internal/utils/path';
11
-
12
- /**
13
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
14
- */
15
- export class Chat extends APIResource {
16
- files: FilesAPI.Files = new FilesAPI.Files(this._client);
17
-
18
- /**
19
- * Creates a persistent OpenCode chat session backed by a Daytona runtime. Session
20
- * state is retained and can be resumed or recovered across requests.
21
- */
22
- create(
23
- body: ChatCreateParams | null | undefined = {},
24
- options?: RequestOptions,
25
- ): APIPromise<ChatCreateResponse> {
26
- return this._client.post('/agent/v2/chat', { body, ...options });
27
- }
28
-
29
- /**
30
- * Terminates the active Daytona runtime (if any), then marks the chat as ended.
31
- */
32
- delete(id: string, options?: RequestOptions): APIPromise<ChatDeleteResponse> {
33
- return this._client.delete(path`/agent/v2/chat/${id}`, options);
34
- }
35
-
36
- /**
37
- * Aborts the active OpenCode generation for this Daytona-backed chat session.
38
- */
39
- cancel(id: string, options?: RequestOptions): APIPromise<ChatCancelResponse> {
40
- return this._client.post(path`/agent/v2/chat/${id}/cancel`, options);
41
- }
42
-
43
- /**
44
- * Returns a short-lived token that allows browser clients to connect directly to
45
- * the agent chat SSE stream without exposing the underlying org API key.
46
- */
47
- createStreamToken(id: string, options?: RequestOptions): APIPromise<ChatCreateStreamTokenResponse> {
48
- return this._client.post(path`/agent/v2/chat/${id}/stream-token`, options);
49
- }
50
-
51
- /**
52
- * Answers a pending OpenCode question for the Daytona-backed chat session and
53
- * resumes or recovers the runtime if needed.
54
- */
55
- replyToQuestion(
56
- requestID: string,
57
- params: ChatReplyToQuestionParams,
58
- options?: RequestOptions,
59
- ): APIPromise<void> {
60
- const { id, ...body } = params;
61
- return this._client.post(path`/agent/v2/chat/${id}/question/${requestID}/reply`, {
62
- body,
63
- ...options,
64
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
65
- });
66
- }
67
-
68
- /**
69
- * Streams a single assistant turn from a Daytona-backed chat runtime as normalized
70
- * SSE events with stable turn, message, and part IDs. Emits events:
71
- * `turn.started`, `turn.status`, `message.created`, `message.part.updated`,
72
- * `message.completed`, `session.usage`, `turn.completed`.
73
- *
74
- * **When to use this endpoint:** Recommended for building custom chat UIs that
75
- * need real-time streaming progress. This is the primary streaming endpoint for
76
- * new integrations.
77
- *
78
- * **Alternatives:**
79
- *
80
- * - `POST /chat/:id/message` — synchronous, returns complete response as JSON
81
- * (best for server-to-server)
82
- */
83
- respond(
84
- id: string,
85
- body: ChatRespondParams,
86
- options?: RequestOptions,
87
- ): APIPromise<Stream<ChatRespondResponse>> {
88
- return this._client.post(path`/agent/v2/chat/${id}/respond`, {
89
- body,
90
- ...options,
91
- headers: buildHeaders([{ Accept: 'text/event-stream' }, options?.headers]),
92
- stream: true,
93
- }) as APIPromise<Stream<ChatRespondResponse>>;
94
- }
95
-
96
- /**
97
- * Sends a message to a Daytona-backed chat runtime and returns the complete
98
- * response as a single JSON body. Blocks until the assistant turn completes.
99
- *
100
- * **When to use this endpoint:** Best for server-to-server integrations,
101
- * background processing, or any context where you want the full response in one
102
- * call without managing an SSE stream.
103
- *
104
- * **Alternatives:**
105
- *
106
- * - `POST /chat/:id/respond` — streaming SSE with normalized events (recommended
107
- * for custom chat UIs)
108
- */
109
- sendMessage(id: string, body: ChatSendMessageParams, options?: RequestOptions): APIPromise<void> {
110
- return this._client.post(path`/agent/v2/chat/${id}/message`, {
111
- body,
112
- ...options,
113
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
114
- });
115
- }
116
-
117
- /**
118
- * Relays OpenCode SSE events for this Daytona-backed chat runtime. Supports replay
119
- * from buffered events using Last-Event-ID and transparently reconnects stopped or
120
- * archived runtimes. Accepts either Bearer token auth or a short-lived stream
121
- * token via query parameter. When both are provided, Bearer auth takes precedence.
122
- */
123
- stream(
124
- id: string,
125
- query: ChatStreamParams | undefined = {},
126
- options?: RequestOptions,
127
- ): APIPromise<Stream<ChatStreamResponse>> {
128
- return this._client.get(path`/agent/v2/chat/${id}/stream`, {
129
- query,
130
- ...options,
131
- headers: buildHeaders([{ Accept: 'text/event-stream' }, options?.headers]),
132
- stream: true,
133
- }) as APIPromise<Stream<ChatStreamResponse>>;
134
- }
135
- }
136
-
137
- export interface ChatCreateResponse {
138
- id?: string;
139
-
140
- createdAt?: string;
141
-
142
- idleTimeoutMs?: number;
143
-
144
- provider?: 'daytona';
145
-
146
- runtimeState?: string;
147
-
148
- status?: string;
149
- }
150
-
151
- export interface ChatDeleteResponse {
152
- id?: string;
153
-
154
- cost?: number;
155
-
156
- provider?: string | null;
157
-
158
- runtimeId?: string | null;
159
-
160
- runtimeMs?: number;
161
-
162
- status?: string;
163
- }
164
-
165
- export interface ChatCancelResponse {
166
- id?: string;
167
-
168
- ok?: boolean;
169
- }
170
-
171
- export interface ChatCreateStreamTokenResponse {
172
- token: string;
173
-
174
- expiresAt: string;
175
-
176
- streamUrl: string;
177
- }
178
-
179
- export type ChatRespondResponse = string;
180
-
181
- export type ChatStreamResponse = string;
182
-
183
- export interface ChatCreateParams {
184
- /**
185
- * Idle timeout before the runtime is eligible to stop. Defaults to 15 minutes.
186
- */
187
- idleTimeoutMs?: number | null;
188
-
189
- /**
190
- * Optional hidden app instructions merged into the chat runtime bootstrap and
191
- * never exposed as a user message. Only accepted for privileged C3 system keys.
192
- */
193
- instructions?: string | null;
194
-
195
- /**
196
- * Optional model override for the OpenCode session
197
- */
198
- model?: string | null;
199
-
200
- /**
201
- * Optional human-readable session title
202
- */
203
- title?: string;
204
-
205
- /**
206
- * Restrict the chat session to specific vault IDs
207
- */
208
- vaultIds?: Array<string> | null;
209
- }
210
-
211
- export interface ChatReplyToQuestionParams {
212
- /**
213
- * Path param: Chat session ID
214
- */
215
- id: string;
216
-
217
- /**
218
- * Body param: Answer selections for each prompt element in the pending question
219
- */
220
- answers: Array<Array<string>>;
221
- }
222
-
223
- export interface ChatRespondParams {
224
- /**
225
- * Optional model override. When provided, the runtime bootstrap config is updated
226
- * so subsequent turns use this model. Conversation history is preserved.
227
- */
228
- model?: string | null;
229
-
230
- /**
231
- * Message content parts. Currently only "text" type is supported. Additional types
232
- * (e.g. file, image) may be added in future versions.
233
- */
234
- parts?: Array<ChatRespondParams.Part>;
235
- }
236
-
237
- export namespace ChatRespondParams {
238
- export interface Part {
239
- /**
240
- * The message text content
241
- */
242
- text: string;
243
-
244
- /**
245
- * Part type. Currently only "text" is supported.
246
- */
247
- type: 'text';
248
- }
249
- }
250
-
251
- export interface ChatSendMessageParams {
252
- /**
253
- * Optional model override. When provided, the runtime bootstrap config is updated
254
- * so subsequent turns use this model. Conversation history is preserved.
255
- */
256
- model?: string | null;
257
-
258
- /**
259
- * Message content parts. Currently only "text" type is supported. Additional types
260
- * (e.g. file, image) may be added in future versions.
261
- */
262
- parts?: Array<ChatSendMessageParams.Part>;
263
- }
264
-
265
- export namespace ChatSendMessageParams {
266
- export interface Part {
267
- /**
268
- * The message text content
269
- */
270
- text: string;
271
-
272
- /**
273
- * Part type. Currently only "text" is supported.
274
- */
275
- type: 'text';
276
- }
277
- }
278
-
279
- export interface ChatStreamParams {
280
- /**
281
- * Short-lived stream token from POST /agent/v2/chat/:id/stream-token. If provided,
282
- * Bearer auth is not required.
283
- */
284
- token?: string;
285
-
286
- /**
287
- * Replay events after this sequence number
288
- */
289
- lastEventId?: number;
290
- }
291
-
292
- Chat.Files = Files;
293
-
294
- export declare namespace Chat {
295
- export {
296
- type ChatCreateResponse as ChatCreateResponse,
297
- type ChatDeleteResponse as ChatDeleteResponse,
298
- type ChatCancelResponse as ChatCancelResponse,
299
- type ChatCreateStreamTokenResponse as ChatCreateStreamTokenResponse,
300
- type ChatRespondResponse as ChatRespondResponse,
301
- type ChatStreamResponse as ChatStreamResponse,
302
- type ChatCreateParams as ChatCreateParams,
303
- type ChatReplyToQuestionParams as ChatReplyToQuestionParams,
304
- type ChatRespondParams as ChatRespondParams,
305
- type ChatSendMessageParams as ChatSendMessageParams,
306
- type ChatStreamParams as ChatStreamParams,
307
- };
308
-
309
- export {
310
- Files as Files,
311
- type FileListResponse as FileListResponse,
312
- type FileDownloadParams as FileDownloadParams,
313
- };
314
- }
@@ -1,63 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../../core/resource';
4
- import { APIPromise } from '../../../../core/api-promise';
5
- import { buildHeaders } from '../../../../internal/headers';
6
- import { RequestOptions } from '../../../../internal/request-options';
7
- import { path } from '../../../../internal/utils/path';
8
-
9
- /**
10
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
11
- */
12
- export class Files extends APIResource {
13
- /**
14
- * Lists files created by the agent in the Daytona runtime workspace. Stopped or
15
- * archived runtimes are transparently resumed or recovered.
16
- */
17
- list(id: string, options?: RequestOptions): APIPromise<FileListResponse> {
18
- return this._client.get(path`/agent/v2/chat/${id}/files`, options);
19
- }
20
-
21
- /**
22
- * Downloads a file from the Daytona runtime workspace by path. Stopped or archived
23
- * runtimes are transparently resumed or recovered.
24
- */
25
- download(filePath: string, params: FileDownloadParams, options?: RequestOptions): APIPromise<Response> {
26
- const { id } = params;
27
- return this._client.get(path`/agent/v2/chat/${id}/files/${filePath}`, {
28
- ...options,
29
- headers: buildHeaders([{ Accept: 'application/octet-stream' }, options?.headers]),
30
- __binaryResponse: true,
31
- });
32
- }
33
- }
34
-
35
- export interface FileListResponse {
36
- chatId?: string;
37
-
38
- files?: Array<FileListResponse.File>;
39
- }
40
-
41
- export namespace FileListResponse {
42
- export interface File {
43
- name?: string;
44
-
45
- /**
46
- * Relative path from /workspace
47
- */
48
- path?: string;
49
-
50
- sizeBytes?: number;
51
- }
52
- }
53
-
54
- export interface FileDownloadParams {
55
- /**
56
- * Chat session ID
57
- */
58
- id: string;
59
- }
60
-
61
- export declare namespace Files {
62
- export { type FileListResponse as FileListResponse, type FileDownloadParams as FileDownloadParams };
63
- }
@@ -1,17 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export {
4
- Chat,
5
- type ChatCreateResponse,
6
- type ChatDeleteResponse,
7
- type ChatCancelResponse,
8
- type ChatCreateStreamTokenResponse,
9
- type ChatRespondResponse,
10
- type ChatStreamResponse,
11
- type ChatCreateParams,
12
- type ChatReplyToQuestionParams,
13
- type ChatRespondParams,
14
- type ChatSendMessageParams,
15
- type ChatStreamParams,
16
- } from './chat';
17
- export { Files, type FileListResponse, type FileDownloadParams } from './files';
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export * from './chat/index';
@@ -1,91 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../core/resource';
4
- import { APIPromise } from '../../../core/api-promise';
5
- import { RequestOptions } from '../../../internal/request-options';
6
-
7
- /**
8
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
9
- */
10
- export class Execute extends APIResource {
11
- /**
12
- * Creates an ephemeral agent and executes it immediately. By default this uses the
13
- * lightweight synchronous linc runtime on Vercel Sandbox. Set `agentRuntime: true`
14
- * to opt into the legacy Daytona-backed agent runtime.
15
- */
16
- create(body: ExecuteCreateParams, options?: RequestOptions): APIPromise<ExecuteCreateResponse> {
17
- return this._client.post('/agent/v2/execute', { body, ...options });
18
- }
19
- }
20
-
21
- export interface ExecuteCreateResponse {
22
- agentId?: string;
23
-
24
- error?: string | null;
25
-
26
- logs?: ExecuteCreateResponse.Logs | null;
27
-
28
- message?: string | null;
29
-
30
- output?: string | null;
31
-
32
- provider?: 'daytona' | 'vercel';
33
-
34
- runId?: string;
35
-
36
- runtimeId?: string | null;
37
-
38
- runtimeState?: 'running' | 'ended' | 'error';
39
-
40
- status?: 'running' | 'completed' | 'failed';
41
-
42
- usage?: unknown | null;
43
- }
44
-
45
- export namespace ExecuteCreateResponse {
46
- export interface Logs {
47
- linc?: string | null;
48
-
49
- runner?: string | null;
50
- }
51
- }
52
-
53
- export interface ExecuteCreateParams {
54
- prompt: string;
55
-
56
- /**
57
- * Set to true to opt into the legacy Daytona-backed agent runtime.
58
- */
59
- agentRuntime?: boolean | null;
60
-
61
- disabledTools?: Array<string> | null;
62
-
63
- enabledTools?: Array<string> | null;
64
-
65
- guidance?: string | null;
66
-
67
- instructions?: string;
68
-
69
- model?: string;
70
-
71
- objectIds?: Array<string> | null;
72
-
73
- sandbox?: ExecuteCreateParams.Sandbox | null;
74
-
75
- vaultIds?: Array<string> | null;
76
- }
77
-
78
- export namespace ExecuteCreateParams {
79
- export interface Sandbox {
80
- cpu?: number;
81
-
82
- memoryMiB?: number;
83
- }
84
- }
85
-
86
- export declare namespace Execute {
87
- export {
88
- type ExecuteCreateResponse as ExecuteCreateResponse,
89
- type ExecuteCreateParams as ExecuteCreateParams,
90
- };
91
- }
@@ -1,28 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export {
4
- Chat,
5
- type ChatCreateResponse,
6
- type ChatDeleteResponse,
7
- type ChatCancelResponse,
8
- type ChatCreateStreamTokenResponse,
9
- type ChatRespondResponse,
10
- type ChatStreamResponse,
11
- type ChatCreateParams,
12
- type ChatReplyToQuestionParams,
13
- type ChatRespondParams,
14
- type ChatSendMessageParams,
15
- type ChatStreamParams,
16
- } from './chat/index';
17
- export { Execute, type ExecuteCreateResponse, type ExecuteCreateParams } from './execute';
18
- export {
19
- Run,
20
- type RunCreateResponse,
21
- type RunEventsResponse,
22
- type RunExecResponse,
23
- type RunGetDetailsResponse,
24
- type RunGetStatusResponse,
25
- type RunCreateParams,
26
- type RunEventsParams,
27
- } from './run';
28
- export { V2 } from './v2';