Skip to content

Commit ac92458

Browse files
fix(api): fix mcp tool name
1 parent 69a08e0 commit ac92458

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.stats.yml

Lines changed: 2 additions & 2 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-ea23db36b0899cc715f56d0098956069b2d92880f448adff3a4ac1bb53cb2cec.yml
3-
openapi_spec_hash: 36f76ea31297c9593bcfae453f6255cc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-65d42621b731238ad4e59a35a705fc0608b17f53a14d047e66ce480c793da26b.yml
3+
openapi_spec_hash: d7ca86b2507600cbd5ed197cf31263c2
44
config_hash: 666d6bb4b564f0d9d431124b5d1a0665

lib/openai/models/realtime/conversation_item.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module ConversationItem
3131
variant :mcp_list_tools, -> { OpenAI::Realtime::RealtimeMcpListTools }
3232

3333
# A Realtime item representing an invocation of a tool on an MCP server.
34-
variant :mcp_tool_call, -> { OpenAI::Realtime::RealtimeMcpToolCall }
34+
variant :mcp_call, -> { OpenAI::Realtime::RealtimeMcpToolCall }
3535

3636
# A Realtime item requesting human approval of a tool invocation.
3737
variant :mcp_approval_request, -> { OpenAI::Realtime::RealtimeMcpApprovalRequest }

lib/openai/models/realtime/realtime_mcp_tool_call.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ class RealtimeMcpToolCall < OpenAI::Internal::Type::BaseModel
2929
required :server_label, String
3030

3131
# @!attribute type
32-
# The type of the item. Always `mcp_tool_call`.
32+
# The type of the item. Always `mcp_call`.
3333
#
34-
# @return [Symbol, :mcp_tool_call]
35-
required :type, const: :mcp_tool_call
34+
# @return [Symbol, :mcp_call]
35+
required :type, const: :mcp_call
3636

3737
# @!attribute approval_request_id
3838
# The ID of an associated approval request, if any.
@@ -52,7 +52,7 @@ class RealtimeMcpToolCall < OpenAI::Internal::Type::BaseModel
5252
# @return [String, nil]
5353
optional :output, String, nil?: true
5454

55-
# @!method initialize(id:, arguments:, name:, server_label:, approval_request_id: nil, error: nil, output: nil, type: :mcp_tool_call)
55+
# @!method initialize(id:, arguments:, name:, server_label:, approval_request_id: nil, error: nil, output: nil, type: :mcp_call)
5656
# A Realtime item representing an invocation of a tool on an MCP server.
5757
#
5858
# @param id [String] The unique ID of the tool call.
@@ -69,7 +69,7 @@ class RealtimeMcpToolCall < OpenAI::Internal::Type::BaseModel
6969
#
7070
# @param output [String, nil] The output from the tool call.
7171
#
72-
# @param type [Symbol, :mcp_tool_call] The type of the item. Always `mcp_tool_call`.
72+
# @param type [Symbol, :mcp_call] The type of the item. Always `mcp_call`.
7373

7474
# The error from the tool call, if any.
7575
#

rbi/openai/models/realtime/realtime_mcp_tool_call.rbi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module OpenAI
2828
sig { returns(String) }
2929
attr_accessor :server_label
3030

31-
# The type of the item. Always `mcp_tool_call`.
31+
# The type of the item. Always `mcp_call`.
3232
sig { returns(Symbol) }
3333
attr_accessor :type
3434

@@ -89,8 +89,8 @@ module OpenAI
8989
error: nil,
9090
# The output from the tool call.
9191
output: nil,
92-
# The type of the item. Always `mcp_tool_call`.
93-
type: :mcp_tool_call
92+
# The type of the item. Always `mcp_call`.
93+
type: :mcp_call
9494
)
9595
end
9696

sig/openai/models/realtime/realtime_mcp_tool_call.rbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module OpenAI
77
arguments: String,
88
name: String,
99
server_label: String,
10-
type: :mcp_tool_call,
10+
type: :mcp_call,
1111
approval_request_id: String?,
1212
error: OpenAI::Models::Realtime::RealtimeMcpToolCall::error?,
1313
output: String?
@@ -22,7 +22,7 @@ module OpenAI
2222

2323
attr_accessor server_label: String
2424

25-
attr_accessor type: :mcp_tool_call
25+
attr_accessor type: :mcp_call
2626

2727
attr_accessor approval_request_id: String?
2828

@@ -38,15 +38,15 @@ module OpenAI
3838
?approval_request_id: String?,
3939
?error: OpenAI::Models::Realtime::RealtimeMcpToolCall::error?,
4040
?output: String?,
41-
?type: :mcp_tool_call
41+
?type: :mcp_call
4242
) -> void
4343

4444
def to_hash: -> {
4545
id: String,
4646
arguments: String,
4747
name: String,
4848
server_label: String,
49-
type: :mcp_tool_call,
49+
type: :mcp_call,
5050
approval_request_id: String?,
5151
error: OpenAI::Models::Realtime::RealtimeMcpToolCall::error?,
5252
output: String?

0 commit comments

Comments
 (0)