Skip to content

Commit 5b9f360

Browse files
fix(api): add status, approval_request_id to MCP tool call
1 parent 08ddfb4 commit 5b9f360

File tree

3 files changed

+55
-3
lines changed

3 files changed

+55
-3
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-49233088b5e73dbb96bf7af27be3d4547632e3db1c2b00f14184900613325bbc.yml
3-
openapi_spec_hash: b34f14b141d5019244112901c5c7c2d8
4-
config_hash: 94e9ba08201c3d1ca46e093e6a0138fa
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-e205b1f2da6a1f2caa229efa9ede63f2d3d2fedeeb2dd6ed3d880bafdcb0ab88.yml
3+
openapi_spec_hash: c8aee2469a749f6a838b40c57e4b7b06
4+
config_hash: 45dcba51451ba532959c020a0ddbf23c

src/resources/conversations/items.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,13 @@ export namespace ConversationItem {
360360
*/
361361
type: 'mcp_call';
362362

363+
/**
364+
* Unique identifier for the MCP tool call approval request. Include this value in
365+
* a subsequent `mcp_approval_response` input to approve or reject the
366+
* corresponding tool call.
367+
*/
368+
approval_request_id?: string | null;
369+
363370
/**
364371
* The error from the tool call, if any.
365372
*/
@@ -369,6 +376,12 @@ export namespace ConversationItem {
369376
* The output from the tool call.
370377
*/
371378
output?: string | null;
379+
380+
/**
381+
* The status of the tool call. One of `in_progress`, `completed`, `incomplete`,
382+
* `calling`, or `failed`.
383+
*/
384+
status?: 'in_progress' | 'completed' | 'incomplete' | 'calling' | 'failed';
372385
}
373386
}
374387

src/resources/responses/responses.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2836,6 +2836,13 @@ export namespace ResponseInputItem {
28362836
*/
28372837
type: 'mcp_call';
28382838

2839+
/**
2840+
* Unique identifier for the MCP tool call approval request. Include this value in
2841+
* a subsequent `mcp_approval_response` input to approve or reject the
2842+
* corresponding tool call.
2843+
*/
2844+
approval_request_id?: string | null;
2845+
28392846
/**
28402847
* The error from the tool call, if any.
28412848
*/
@@ -2845,6 +2852,12 @@ export namespace ResponseInputItem {
28452852
* The output from the tool call.
28462853
*/
28472854
output?: string | null;
2855+
2856+
/**
2857+
* The status of the tool call. One of `in_progress`, `completed`, `incomplete`,
2858+
* `calling`, or `failed`.
2859+
*/
2860+
status?: 'in_progress' | 'completed' | 'incomplete' | 'calling' | 'failed';
28482861
}
28492862

28502863
/**
@@ -3213,6 +3226,13 @@ export namespace ResponseItem {
32133226
*/
32143227
type: 'mcp_call';
32153228

3229+
/**
3230+
* Unique identifier for the MCP tool call approval request. Include this value in
3231+
* a subsequent `mcp_approval_response` input to approve or reject the
3232+
* corresponding tool call.
3233+
*/
3234+
approval_request_id?: string | null;
3235+
32163236
/**
32173237
* The error from the tool call, if any.
32183238
*/
@@ -3222,6 +3242,12 @@ export namespace ResponseItem {
32223242
* The output from the tool call.
32233243
*/
32243244
output?: string | null;
3245+
3246+
/**
3247+
* The status of the tool call. One of `in_progress`, `completed`, `incomplete`,
3248+
* `calling`, or `failed`.
3249+
*/
3250+
status?: 'in_progress' | 'completed' | 'incomplete' | 'calling' | 'failed';
32253251
}
32263252
}
32273253

@@ -3598,6 +3624,13 @@ export namespace ResponseOutputItem {
35983624
*/
35993625
type: 'mcp_call';
36003626

3627+
/**
3628+
* Unique identifier for the MCP tool call approval request. Include this value in
3629+
* a subsequent `mcp_approval_response` input to approve or reject the
3630+
* corresponding tool call.
3631+
*/
3632+
approval_request_id?: string | null;
3633+
36013634
/**
36023635
* The error from the tool call, if any.
36033636
*/
@@ -3607,6 +3640,12 @@ export namespace ResponseOutputItem {
36073640
* The output from the tool call.
36083641
*/
36093642
output?: string | null;
3643+
3644+
/**
3645+
* The status of the tool call. One of `in_progress`, `completed`, `incomplete`,
3646+
* `calling`, or `failed`.
3647+
*/
3648+
status?: 'in_progress' | 'completed' | 'incomplete' | 'calling' | 'failed';
36103649
}
36113650

36123651
/**

0 commit comments

Comments
 (0)