diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 157f0355..559b4513 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.36.0" + ".": "0.36.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 38f260dd..d15659c7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 135 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-ca24bc4d8125b5153514ce643c4e3220f25971b7d67ca384d56d493c72c0d977.yml -openapi_spec_hash: c6f048c7b3d29f4de48fde0e845ba33f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-a7e92d12ebe89ca019a7ac5b29759064eefa2c38fe08d03516f2620e66abb32b.yml +openapi_spec_hash: acbc703b2739447abc6312b2d753631c config_hash: b876221dfb213df9f0a999e75d38a65e diff --git a/CHANGELOG.md b/CHANGELOG.md index d4ca19dc..4f992157 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.36.1 (2025-11-17) + +Full Changelog: [v0.36.0...v0.36.1](https://github.com/openai/openai-ruby/compare/v0.36.0...v0.36.1) + +### Bug Fixes + +* **api:** align types of input items / output items for typescript ([b593643](https://github.com/openai/openai-ruby/commit/b5936439c6804161bc1a9a7900bdc33f09be1485)) + ## 0.36.0 (2025-11-13) Full Changelog: [v0.35.2...v0.36.0](https://github.com/openai/openai-ruby/compare/v0.35.2...v0.36.0) diff --git a/Gemfile.lock b/Gemfile.lock index 05d32a9c..3797a176 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - openai (0.36.0) + openai (0.36.1) connection_pool GEM diff --git a/README.md b/README.md index bf2b6f36..02790b01 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "openai", "~> 0.36.0" +gem "openai", "~> 0.36.1" ``` diff --git a/lib/openai/models/responses/response_apply_patch_tool_call.rb b/lib/openai/models/responses/response_apply_patch_tool_call.rb index 2882727c..58b9e4f6 100644 --- a/lib/openai/models/responses/response_apply_patch_tool_call.rb +++ b/lib/openai/models/responses/response_apply_patch_tool_call.rb @@ -17,6 +17,13 @@ class ResponseApplyPatchToolCall < OpenAI::Internal::Type::BaseModel # @return [String] required :call_id, String + # @!attribute operation + # One of the create_file, delete_file, or update_file operations applied via + # apply_patch. + # + # @return [OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::CreateFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile] + required :operation, union: -> { OpenAI::Responses::ResponseApplyPatchToolCall::Operation } + # @!attribute status # The status of the apply patch tool call. One of `in_progress` or `completed`. # @@ -35,14 +42,7 @@ class ResponseApplyPatchToolCall < OpenAI::Internal::Type::BaseModel # @return [String, nil] optional :created_by, String - # @!attribute operation - # One of the create_file, delete_file, or update_file operations applied via - # apply_patch. - # - # @return [OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::CreateFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile, nil] - optional :operation, union: -> { OpenAI::Responses::ResponseApplyPatchToolCall::Operation } - - # @!method initialize(id:, call_id:, status:, created_by: nil, operation: nil, type: :apply_patch_call) + # @!method initialize(id:, call_id:, operation:, status:, created_by: nil, type: :apply_patch_call) # Some parameter documentations has been truncated, see # {OpenAI::Models::Responses::ResponseApplyPatchToolCall} for more details. # @@ -52,27 +52,14 @@ class ResponseApplyPatchToolCall < OpenAI::Internal::Type::BaseModel # # @param call_id [String] The unique ID of the apply patch tool call generated by the model. # + # @param operation [OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::CreateFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile] One of the create_file, delete_file, or update_file operations applied via apply + # # @param status [Symbol, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Status] The status of the apply patch tool call. One of `in_progress` or `completed`. # # @param created_by [String] The ID of the entity that created this tool call. # - # @param operation [OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::CreateFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile] One of the create_file, delete_file, or update_file operations applied via apply - # # @param type [Symbol, :apply_patch_call] The type of the item. Always `apply_patch_call`. - # The status of the apply patch tool call. One of `in_progress` or `completed`. - # - # @see OpenAI::Models::Responses::ResponseApplyPatchToolCall#status - module Status - extend OpenAI::Internal::Type::Enum - - IN_PROGRESS = :in_progress - COMPLETED = :completed - - # @!method self.values - # @return [Array] - end - # One of the create_file, delete_file, or update_file operations applied via # apply_patch. # @@ -173,6 +160,19 @@ class UpdateFile < OpenAI::Internal::Type::BaseModel # @!method self.variants # @return [Array(OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::CreateFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile)] end + + # The status of the apply patch tool call. One of `in_progress` or `completed`. + # + # @see OpenAI::Models::Responses::ResponseApplyPatchToolCall#status + module Status + extend OpenAI::Internal::Type::Enum + + IN_PROGRESS = :in_progress + COMPLETED = :completed + + # @!method self.values + # @return [Array] + end end end end diff --git a/lib/openai/models/responses/response_apply_patch_tool_call_output.rb b/lib/openai/models/responses/response_apply_patch_tool_call_output.rb index 2b6cbcdf..8e9cb9ff 100644 --- a/lib/openai/models/responses/response_apply_patch_tool_call_output.rb +++ b/lib/openai/models/responses/response_apply_patch_tool_call_output.rb @@ -17,12 +17,6 @@ class ResponseApplyPatchToolCallOutput < OpenAI::Internal::Type::BaseModel # @return [String] required :call_id, String - # @!attribute output - # Optional textual output returned by the apply patch tool. - # - # @return [String, nil] - required :output, String, nil?: true - # @!attribute status # The status of the apply patch tool call output. One of `completed` or `failed`. # @@ -41,7 +35,13 @@ class ResponseApplyPatchToolCallOutput < OpenAI::Internal::Type::BaseModel # @return [String, nil] optional :created_by, String - # @!method initialize(id:, call_id:, output:, status:, created_by: nil, type: :apply_patch_call_output) + # @!attribute output + # Optional textual output returned by the apply patch tool. + # + # @return [String, nil] + optional :output, String, nil?: true + + # @!method initialize(id:, call_id:, status:, created_by: nil, output: nil, type: :apply_patch_call_output) # Some parameter documentations has been truncated, see # {OpenAI::Models::Responses::ResponseApplyPatchToolCallOutput} for more details. # @@ -51,12 +51,12 @@ class ResponseApplyPatchToolCallOutput < OpenAI::Internal::Type::BaseModel # # @param call_id [String] The unique ID of the apply patch tool call generated by the model. # - # @param output [String, nil] Optional textual output returned by the apply patch tool. - # # @param status [Symbol, OpenAI::Models::Responses::ResponseApplyPatchToolCallOutput::Status] The status of the apply patch tool call output. One of `completed` or `failed`. # # @param created_by [String] The ID of the entity that created this tool call output. # + # @param output [String, nil] Optional textual output returned by the apply patch tool. + # # @param type [Symbol, :apply_patch_call_output] The type of the item. Always `apply_patch_call_output`. # The status of the apply patch tool call output. One of `completed` or `failed`. diff --git a/lib/openai/models/responses/response_input_item.rb b/lib/openai/models/responses/response_input_item.rb index f13d9ba1..7d264e22 100644 --- a/lib/openai/models/responses/response_input_item.rb +++ b/lib/openai/models/responses/response_input_item.rb @@ -956,7 +956,7 @@ class ApplyPatchCallOutput < OpenAI::Internal::Type::BaseModel # or errors). # # @return [String, nil] - optional :output, String + optional :output, String, nil?: true # @!method initialize(call_id:, status:, id: nil, output: nil, type: :apply_patch_call_output) # Some parameter documentations has been truncated, see @@ -971,7 +971,7 @@ class ApplyPatchCallOutput < OpenAI::Internal::Type::BaseModel # # @param id [String, nil] The unique ID of the apply patch tool call output. Populated when this item is r # - # @param output [String] Optional human-readable log text from the apply patch tool (e.g., patch results + # @param output [String, nil] Optional human-readable log text from the apply patch tool (e.g., patch results # # @param type [Symbol, :apply_patch_call_output] The type of the item. Always `apply_patch_call_output`. diff --git a/lib/openai/version.rb b/lib/openai/version.rb index 81eb5ec6..ae784293 100644 --- a/lib/openai/version.rb +++ b/lib/openai/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module OpenAI - VERSION = "0.36.0" + VERSION = "0.36.1" end diff --git a/rbi/openai/models/responses/response_apply_patch_tool_call.rbi b/rbi/openai/models/responses/response_apply_patch_tool_call.rbi index 5db154ac..0f93f907 100644 --- a/rbi/openai/models/responses/response_apply_patch_tool_call.rbi +++ b/rbi/openai/models/responses/response_apply_patch_tool_call.rbi @@ -21,6 +21,15 @@ module OpenAI sig { returns(String) } attr_accessor :call_id + # One of the create_file, delete_file, or update_file operations applied via + # apply_patch. + sig do + returns( + OpenAI::Responses::ResponseApplyPatchToolCall::Operation::Variants + ) + end + attr_accessor :operation + # The status of the apply patch tool call. One of `in_progress` or `completed`. sig do returns( @@ -40,43 +49,20 @@ module OpenAI sig { params(created_by: String).void } attr_writer :created_by - # One of the create_file, delete_file, or update_file operations applied via - # apply_patch. - sig do - returns( - T.nilable( - OpenAI::Responses::ResponseApplyPatchToolCall::Operation::Variants - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - T.any( - OpenAI::Responses::ResponseApplyPatchToolCall::Operation::CreateFile::OrHash, - OpenAI::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile::OrHash, - OpenAI::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile::OrHash - ) - ).void - end - attr_writer :operation - # A tool call that applies file diffs by creating, deleting, or updating files. sig do params( id: String, call_id: String, - status: - OpenAI::Responses::ResponseApplyPatchToolCall::Status::OrSymbol, - created_by: String, operation: T.any( OpenAI::Responses::ResponseApplyPatchToolCall::Operation::CreateFile::OrHash, OpenAI::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile::OrHash, OpenAI::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile::OrHash ), + status: + OpenAI::Responses::ResponseApplyPatchToolCall::Status::OrSymbol, + created_by: String, type: Symbol ).returns(T.attached_class) end @@ -86,13 +72,13 @@ module OpenAI id:, # The unique ID of the apply patch tool call generated by the model. call_id:, + # One of the create_file, delete_file, or update_file operations applied via + # apply_patch. + operation:, # The status of the apply patch tool call. One of `in_progress` or `completed`. status:, # The ID of the entity that created this tool call. created_by: nil, - # One of the create_file, delete_file, or update_file operations applied via - # apply_patch. - operation: nil, # The type of the item. Always `apply_patch_call`. type: :apply_patch_call ) @@ -103,53 +89,18 @@ module OpenAI { id: String, call_id: String, + operation: + OpenAI::Responses::ResponseApplyPatchToolCall::Operation::Variants, status: OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol, type: Symbol, - created_by: String, - operation: - OpenAI::Responses::ResponseApplyPatchToolCall::Operation::Variants + created_by: String } ) end def to_hash end - # The status of the apply patch tool call. One of `in_progress` or `completed`. - module Status - extend OpenAI::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - OpenAI::Responses::ResponseApplyPatchToolCall::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IN_PROGRESS = - T.let( - :in_progress, - OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol - ) - COMPLETED = - T.let( - :completed, - OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - # One of the create_file, delete_file, or update_file operations applied via # apply_patch. module Operation @@ -294,6 +245,41 @@ module OpenAI def self.variants end end + + # The status of the apply patch tool call. One of `in_progress` or `completed`. + module Status + extend OpenAI::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + OpenAI::Responses::ResponseApplyPatchToolCall::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_PROGRESS = + T.let( + :in_progress, + OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol + ) + COMPLETED = + T.let( + :completed, + OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol + ] + ) + end + def self.values + end + end end end end diff --git a/rbi/openai/models/responses/response_apply_patch_tool_call_output.rbi b/rbi/openai/models/responses/response_apply_patch_tool_call_output.rbi index 0d29a037..2bff2108 100644 --- a/rbi/openai/models/responses/response_apply_patch_tool_call_output.rbi +++ b/rbi/openai/models/responses/response_apply_patch_tool_call_output.rbi @@ -21,10 +21,6 @@ module OpenAI sig { returns(String) } attr_accessor :call_id - # Optional textual output returned by the apply patch tool. - sig { returns(T.nilable(String)) } - attr_accessor :output - # The status of the apply patch tool call output. One of `completed` or `failed`. sig do returns( @@ -44,15 +40,19 @@ module OpenAI sig { params(created_by: String).void } attr_writer :created_by + # Optional textual output returned by the apply patch tool. + sig { returns(T.nilable(String)) } + attr_accessor :output + # The output emitted by an apply patch tool call. sig do params( id: String, call_id: String, - output: T.nilable(String), status: OpenAI::Responses::ResponseApplyPatchToolCallOutput::Status::OrSymbol, created_by: String, + output: T.nilable(String), type: Symbol ).returns(T.attached_class) end @@ -62,12 +62,12 @@ module OpenAI id:, # The unique ID of the apply patch tool call generated by the model. call_id:, - # Optional textual output returned by the apply patch tool. - output:, # The status of the apply patch tool call output. One of `completed` or `failed`. status:, # The ID of the entity that created this tool call output. created_by: nil, + # Optional textual output returned by the apply patch tool. + output: nil, # The type of the item. Always `apply_patch_call_output`. type: :apply_patch_call_output ) @@ -78,11 +78,11 @@ module OpenAI { id: String, call_id: String, - output: T.nilable(String), status: OpenAI::Responses::ResponseApplyPatchToolCallOutput::Status::TaggedSymbol, type: Symbol, - created_by: String + created_by: String, + output: T.nilable(String) } ) end diff --git a/rbi/openai/models/responses/response_input_item.rbi b/rbi/openai/models/responses/response_input_item.rbi index aa4ce248..e594d8fb 100644 --- a/rbi/openai/models/responses/response_input_item.rbi +++ b/rbi/openai/models/responses/response_input_item.rbi @@ -1667,10 +1667,7 @@ module OpenAI # Optional human-readable log text from the apply patch tool (e.g., patch results # or errors). sig { returns(T.nilable(String)) } - attr_reader :output - - sig { params(output: String).void } - attr_writer :output + attr_accessor :output # The streamed output emitted by an apply patch tool call. sig do @@ -1679,7 +1676,7 @@ module OpenAI status: OpenAI::Responses::ResponseInputItem::ApplyPatchCallOutput::Status::OrSymbol, id: T.nilable(String), - output: String, + output: T.nilable(String), type: Symbol ).returns(T.attached_class) end @@ -1707,7 +1704,7 @@ module OpenAI OpenAI::Responses::ResponseInputItem::ApplyPatchCallOutput::Status::OrSymbol, type: Symbol, id: T.nilable(String), - output: String + output: T.nilable(String) } ) end diff --git a/sig/openai/models/responses/response_apply_patch_tool_call.rbs b/sig/openai/models/responses/response_apply_patch_tool_call.rbs index 37238f0c..28be35a1 100644 --- a/sig/openai/models/responses/response_apply_patch_tool_call.rbs +++ b/sig/openai/models/responses/response_apply_patch_tool_call.rbs @@ -5,10 +5,10 @@ module OpenAI { id: String, call_id: String, + operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation, status: OpenAI::Models::Responses::ResponseApplyPatchToolCall::status, type: :apply_patch_call, - created_by: String, - operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation + created_by: String } class ResponseApplyPatchToolCall < OpenAI::Internal::Type::BaseModel @@ -16,6 +16,8 @@ module OpenAI attr_accessor call_id: String + attr_accessor operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation + attr_accessor status: OpenAI::Models::Responses::ResponseApplyPatchToolCall::status attr_accessor type: :apply_patch_call @@ -24,41 +26,24 @@ module OpenAI def created_by=: (String) -> String - attr_reader operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation? - - def operation=: ( - OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation - ) -> OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation - def initialize: ( id: String, call_id: String, + operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation, status: OpenAI::Models::Responses::ResponseApplyPatchToolCall::status, ?created_by: String, - ?operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation, ?type: :apply_patch_call ) -> void def to_hash: -> { id: String, call_id: String, + operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation, status: OpenAI::Models::Responses::ResponseApplyPatchToolCall::status, type: :apply_patch_call, - created_by: String, - operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation + created_by: String } - type status = :in_progress | :completed - - module Status - extend OpenAI::Internal::Type::Enum - - IN_PROGRESS: :in_progress - COMPLETED: :completed - - def self?.values: -> ::Array[OpenAI::Models::Responses::ResponseApplyPatchToolCall::status] - end - type operation = OpenAI::Responses::ResponseApplyPatchToolCall::Operation::CreateFile | OpenAI::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile @@ -117,6 +102,17 @@ module OpenAI def self?.variants: -> ::Array[OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation] end + + type status = :in_progress | :completed + + module Status + extend OpenAI::Internal::Type::Enum + + IN_PROGRESS: :in_progress + COMPLETED: :completed + + def self?.values: -> ::Array[OpenAI::Models::Responses::ResponseApplyPatchToolCall::status] + end end end end diff --git a/sig/openai/models/responses/response_apply_patch_tool_call_output.rbs b/sig/openai/models/responses/response_apply_patch_tool_call_output.rbs index 45908b33..ea40de62 100644 --- a/sig/openai/models/responses/response_apply_patch_tool_call_output.rbs +++ b/sig/openai/models/responses/response_apply_patch_tool_call_output.rbs @@ -5,10 +5,10 @@ module OpenAI { id: String, call_id: String, - output: String?, status: OpenAI::Models::Responses::ResponseApplyPatchToolCallOutput::status, type: :apply_patch_call_output, - created_by: String + created_by: String, + output: String? } class ResponseApplyPatchToolCallOutput < OpenAI::Internal::Type::BaseModel @@ -16,8 +16,6 @@ module OpenAI attr_accessor call_id: String - attr_accessor output: String? - attr_accessor status: OpenAI::Models::Responses::ResponseApplyPatchToolCallOutput::status attr_accessor type: :apply_patch_call_output @@ -26,22 +24,24 @@ module OpenAI def created_by=: (String) -> String + attr_accessor output: String? + def initialize: ( id: String, call_id: String, - output: String?, status: OpenAI::Models::Responses::ResponseApplyPatchToolCallOutput::status, ?created_by: String, + ?output: String?, ?type: :apply_patch_call_output ) -> void def to_hash: -> { id: String, call_id: String, - output: String?, status: OpenAI::Models::Responses::ResponseApplyPatchToolCallOutput::status, type: :apply_patch_call_output, - created_by: String + created_by: String, + output: String? } type status = :completed | :failed diff --git a/sig/openai/models/responses/response_input_item.rbs b/sig/openai/models/responses/response_input_item.rbs index f7d227ab..0df92d92 100644 --- a/sig/openai/models/responses/response_input_item.rbs +++ b/sig/openai/models/responses/response_input_item.rbs @@ -645,7 +645,7 @@ module OpenAI status: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::status, type: :apply_patch_call_output, id: String?, - output: String + output: String? } class ApplyPatchCallOutput < OpenAI::Internal::Type::BaseModel @@ -657,15 +657,13 @@ module OpenAI attr_accessor id: String? - attr_reader output: String? - - def output=: (String) -> String + attr_accessor output: String? def initialize: ( call_id: String, status: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::status, ?id: String?, - ?output: String, + ?output: String?, ?type: :apply_patch_call_output ) -> void @@ -674,7 +672,7 @@ module OpenAI status: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::status, type: :apply_patch_call_output, id: String?, - output: String + output: String? } type status = :completed | :failed diff --git a/test/openai/resources/conversations/items_test.rb b/test/openai/resources/conversations/items_test.rb index f405a668..ae17ac9b 100644 --- a/test/openai/resources/conversations/items_test.rb +++ b/test/openai/resources/conversations/items_test.rb @@ -159,17 +159,17 @@ def test_retrieve_required_params type: :apply_patch_call, id: String, call_id: String, + operation: OpenAI::Responses::ResponseApplyPatchToolCall::Operation, status: OpenAI::Responses::ResponseApplyPatchToolCall::Status, - created_by: String | nil, - operation: OpenAI::Responses::ResponseApplyPatchToolCall::Operation | nil + created_by: String | nil } in { type: :apply_patch_call_output, id: String, call_id: String, - output: String | nil, status: OpenAI::Responses::ResponseApplyPatchToolCallOutput::Status, - created_by: String | nil + created_by: String | nil, + output: String | nil } in { type: :mcp_list_tools, @@ -349,17 +349,17 @@ def test_list type: :apply_patch_call, id: String, call_id: String, + operation: OpenAI::Responses::ResponseApplyPatchToolCall::Operation, status: OpenAI::Responses::ResponseApplyPatchToolCall::Status, - created_by: String | nil, - operation: OpenAI::Responses::ResponseApplyPatchToolCall::Operation | nil + created_by: String | nil } in { type: :apply_patch_call_output, id: String, call_id: String, - output: String | nil, status: OpenAI::Responses::ResponseApplyPatchToolCallOutput::Status, - created_by: String | nil + created_by: String | nil, + output: String | nil } in { type: :mcp_list_tools, diff --git a/test/openai/resources/responses/input_items_test.rb b/test/openai/resources/responses/input_items_test.rb index 6b171b88..ae647381 100644 --- a/test/openai/resources/responses/input_items_test.rb +++ b/test/openai/resources/responses/input_items_test.rb @@ -141,17 +141,17 @@ def test_list type: :apply_patch_call, id: String, call_id: String, + operation: OpenAI::Responses::ResponseApplyPatchToolCall::Operation, status: OpenAI::Responses::ResponseApplyPatchToolCall::Status, - created_by: String | nil, - operation: OpenAI::Responses::ResponseApplyPatchToolCall::Operation | nil + created_by: String | nil } in { type: :apply_patch_call_output, id: String, call_id: String, - output: String | nil, status: OpenAI::Responses::ResponseApplyPatchToolCallOutput::Status, - created_by: String | nil + created_by: String | nil, + output: String | nil } in { type: :mcp_list_tools,