Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.36.0"
".": "0.36.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
openai (0.36.0)
openai (0.36.1)
connection_pool

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "openai", "~> 0.36.0"
gem "openai", "~> 0.36.1"
```

<!-- x-release-please-end -->
Expand Down
46 changes: 23 additions & 23 deletions lib/openai/models/responses/response_apply_patch_tool_call.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
#
Expand All @@ -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.
#
Expand All @@ -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<Symbol>]
end

# One of the create_file, delete_file, or update_file operations applied via
# apply_patch.
#
Expand Down Expand Up @@ -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<Symbol>]
end
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
#
Expand All @@ -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.
#
Expand All @@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions lib/openai/models/responses/response_input_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion lib/openai/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module OpenAI
VERSION = "0.36.0"
VERSION = "0.36.1"
end
120 changes: 53 additions & 67 deletions rbi/openai/models/responses/response_apply_patch_tool_call.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
Expand All @@ -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
)
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading