@@ -102,6 +102,12 @@ export interface AuthorizeToolRequest {
102
102
export interface ExecuteToolRequest {
103
103
tool_name : string ;
104
104
105
+ /**
106
+ * Whether to include the error stacktrace in the response. If not provided, the
107
+ * error stacktrace is not included.
108
+ */
109
+ include_error_stacktrace ?: boolean ;
110
+
105
111
/**
106
112
* JSON input to the tool, if any
107
113
*/
@@ -159,15 +165,41 @@ export namespace ExecuteToolResponse {
159
165
160
166
export namespace Output {
161
167
export interface Error {
168
+ can_retry : boolean ;
169
+
170
+ kind :
171
+ | 'TOOLKIT_LOAD_FAILED'
172
+ | 'TOOL_DEFINITION_BAD_DEFINITION'
173
+ | 'TOOL_DEFINITION_BAD_INPUT_SCHEMA'
174
+ | 'TOOL_DEFINITION_BAD_OUTPUT_SCHEMA'
175
+ | 'TOOL_REQUIREMENTS_NOT_MET'
176
+ | 'TOOL_RUNTIME_BAD_INPUT_VALUE'
177
+ | 'TOOL_RUNTIME_BAD_OUTPUT_VALUE'
178
+ | 'TOOL_RUNTIME_RETRY'
179
+ | 'TOOL_RUNTIME_CONTEXT_REQUIRED'
180
+ | 'TOOL_RUNTIME_FATAL'
181
+ | 'UPSTREAM_RUNTIME_BAD_REQUEST'
182
+ | 'UPSTREAM_RUNTIME_AUTH_ERROR'
183
+ | 'UPSTREAM_RUNTIME_NOT_FOUND'
184
+ | 'UPSTREAM_RUNTIME_VALIDATION_ERROR'
185
+ | 'UPSTREAM_RUNTIME_RATE_LIMIT'
186
+ | 'UPSTREAM_RUNTIME_SERVER_ERROR'
187
+ | 'UPSTREAM_RUNTIME_UNMAPPED'
188
+ | 'UNKNOWN' ;
189
+
162
190
message : string ;
163
191
164
192
additional_prompt_content ?: string ;
165
193
166
- can_retry ?: boolean ;
167
-
168
194
developer_message ?: string ;
169
195
196
+ extra ?: { [ key : string ] : unknown } ;
197
+
170
198
retry_after_ms ?: number ;
199
+
200
+ stacktrace ?: string ;
201
+
202
+ status_code ?: number ;
171
203
}
172
204
173
205
export interface Log {
@@ -329,15 +361,41 @@ export namespace ToolExecutionAttempt {
329
361
330
362
export namespace Output {
331
363
export interface Error {
364
+ can_retry : boolean ;
365
+
366
+ kind :
367
+ | 'TOOLKIT_LOAD_FAILED'
368
+ | 'TOOL_DEFINITION_BAD_DEFINITION'
369
+ | 'TOOL_DEFINITION_BAD_INPUT_SCHEMA'
370
+ | 'TOOL_DEFINITION_BAD_OUTPUT_SCHEMA'
371
+ | 'TOOL_REQUIREMENTS_NOT_MET'
372
+ | 'TOOL_RUNTIME_BAD_INPUT_VALUE'
373
+ | 'TOOL_RUNTIME_BAD_OUTPUT_VALUE'
374
+ | 'TOOL_RUNTIME_RETRY'
375
+ | 'TOOL_RUNTIME_CONTEXT_REQUIRED'
376
+ | 'TOOL_RUNTIME_FATAL'
377
+ | 'UPSTREAM_RUNTIME_BAD_REQUEST'
378
+ | 'UPSTREAM_RUNTIME_AUTH_ERROR'
379
+ | 'UPSTREAM_RUNTIME_NOT_FOUND'
380
+ | 'UPSTREAM_RUNTIME_VALIDATION_ERROR'
381
+ | 'UPSTREAM_RUNTIME_RATE_LIMIT'
382
+ | 'UPSTREAM_RUNTIME_SERVER_ERROR'
383
+ | 'UPSTREAM_RUNTIME_UNMAPPED'
384
+ | 'UNKNOWN' ;
385
+
332
386
message : string ;
333
387
334
388
additional_prompt_content ?: string ;
335
389
336
- can_retry ?: boolean ;
337
-
338
390
developer_message ?: string ;
339
391
392
+ extra ?: { [ key : string ] : unknown } ;
393
+
340
394
retry_after_ms ?: number ;
395
+
396
+ stacktrace ?: string ;
397
+
398
+ status_code ?: number ;
341
399
}
342
400
343
401
export interface Log {
@@ -398,6 +456,12 @@ export interface ToolAuthorizeParams {
398
456
export interface ToolExecuteParams {
399
457
tool_name : string ;
400
458
459
+ /**
460
+ * Whether to include the error stacktrace in the response. If not provided, the
461
+ * error stacktrace is not included.
462
+ */
463
+ include_error_stacktrace ?: boolean ;
464
+
401
465
/**
402
466
* JSON input to the tool, if any
403
467
*/
0 commit comments