openai 0.36.0 → 0.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/openai/models/responses/response_apply_patch_tool_call.rb +23 -23
- data/lib/openai/models/responses/response_apply_patch_tool_call_output.rb +9 -9
- data/lib/openai/models/responses/response_input_item.rb +2 -2
- data/lib/openai/version.rb +1 -1
- data/rbi/openai/models/responses/response_apply_patch_tool_call.rbi +53 -67
- data/rbi/openai/models/responses/response_apply_patch_tool_call_output.rbi +9 -9
- data/rbi/openai/models/responses/response_input_item.rbi +3 -6
- data/sig/openai/models/responses/response_apply_patch_tool_call.rbs +18 -22
- data/sig/openai/models/responses/response_apply_patch_tool_call_output.rbs +7 -7
- data/sig/openai/models/responses/response_input_item.rbs +4 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6976ed8077092b131fe261b2a968357ee6cf0fa8006d34020c0cc966c0b2cf5f
|
|
4
|
+
data.tar.gz: c44842a11376b3da062d1c4948939e633e0de6fc2e979d0d502f9c39114bf6bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52619060805bb76964607ce798a943837eaa8ba9ba0a711133bc0ea6568af8c1c971a8ef67f5ecc4030fa67dbcc93266890f3a7e90b2955fbb29723af8d42271
|
|
7
|
+
data.tar.gz: 88344ac0e74606bf7e9898aafc630e048ae1c7536c37c216afc4b62c474b370a99e4cd702f483e46b793cc0335d6e2038e9e251f24eb19ebec4d849447ef819e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.36.1 (2025-11-17)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.36.0...v0.36.1](https://github.com/openai/openai-ruby/compare/v0.36.0...v0.36.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **api:** align types of input items / output items for typescript ([b593643](https://github.com/openai/openai-ruby/commit/b5936439c6804161bc1a9a7900bdc33f09be1485))
|
|
10
|
+
|
|
3
11
|
## 0.36.0 (2025-11-13)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.35.2...v0.36.0](https://github.com/openai/openai-ruby/compare/v0.35.2...v0.36.0)
|
data/README.md
CHANGED
|
@@ -17,6 +17,13 @@ module OpenAI
|
|
|
17
17
|
# @return [String]
|
|
18
18
|
required :call_id, String
|
|
19
19
|
|
|
20
|
+
# @!attribute operation
|
|
21
|
+
# One of the create_file, delete_file, or update_file operations applied via
|
|
22
|
+
# apply_patch.
|
|
23
|
+
#
|
|
24
|
+
# @return [OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::CreateFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile]
|
|
25
|
+
required :operation, union: -> { OpenAI::Responses::ResponseApplyPatchToolCall::Operation }
|
|
26
|
+
|
|
20
27
|
# @!attribute status
|
|
21
28
|
# The status of the apply patch tool call. One of `in_progress` or `completed`.
|
|
22
29
|
#
|
|
@@ -35,14 +42,7 @@ module OpenAI
|
|
|
35
42
|
# @return [String, nil]
|
|
36
43
|
optional :created_by, String
|
|
37
44
|
|
|
38
|
-
# @!
|
|
39
|
-
# One of the create_file, delete_file, or update_file operations applied via
|
|
40
|
-
# apply_patch.
|
|
41
|
-
#
|
|
42
|
-
# @return [OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::CreateFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile, nil]
|
|
43
|
-
optional :operation, union: -> { OpenAI::Responses::ResponseApplyPatchToolCall::Operation }
|
|
44
|
-
|
|
45
|
-
# @!method initialize(id:, call_id:, status:, created_by: nil, operation: nil, type: :apply_patch_call)
|
|
45
|
+
# @!method initialize(id:, call_id:, operation:, status:, created_by: nil, type: :apply_patch_call)
|
|
46
46
|
# Some parameter documentations has been truncated, see
|
|
47
47
|
# {OpenAI::Models::Responses::ResponseApplyPatchToolCall} for more details.
|
|
48
48
|
#
|
|
@@ -52,27 +52,14 @@ module OpenAI
|
|
|
52
52
|
#
|
|
53
53
|
# @param call_id [String] The unique ID of the apply patch tool call generated by the model.
|
|
54
54
|
#
|
|
55
|
+
# @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
|
|
56
|
+
#
|
|
55
57
|
# @param status [Symbol, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Status] The status of the apply patch tool call. One of `in_progress` or `completed`.
|
|
56
58
|
#
|
|
57
59
|
# @param created_by [String] The ID of the entity that created this tool call.
|
|
58
60
|
#
|
|
59
|
-
# @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
|
|
60
|
-
#
|
|
61
61
|
# @param type [Symbol, :apply_patch_call] The type of the item. Always `apply_patch_call`.
|
|
62
62
|
|
|
63
|
-
# The status of the apply patch tool call. One of `in_progress` or `completed`.
|
|
64
|
-
#
|
|
65
|
-
# @see OpenAI::Models::Responses::ResponseApplyPatchToolCall#status
|
|
66
|
-
module Status
|
|
67
|
-
extend OpenAI::Internal::Type::Enum
|
|
68
|
-
|
|
69
|
-
IN_PROGRESS = :in_progress
|
|
70
|
-
COMPLETED = :completed
|
|
71
|
-
|
|
72
|
-
# @!method self.values
|
|
73
|
-
# @return [Array<Symbol>]
|
|
74
|
-
end
|
|
75
|
-
|
|
76
63
|
# One of the create_file, delete_file, or update_file operations applied via
|
|
77
64
|
# apply_patch.
|
|
78
65
|
#
|
|
@@ -173,6 +160,19 @@ module OpenAI
|
|
|
173
160
|
# @!method self.variants
|
|
174
161
|
# @return [Array(OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::CreateFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile, OpenAI::Models::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile)]
|
|
175
162
|
end
|
|
163
|
+
|
|
164
|
+
# The status of the apply patch tool call. One of `in_progress` or `completed`.
|
|
165
|
+
#
|
|
166
|
+
# @see OpenAI::Models::Responses::ResponseApplyPatchToolCall#status
|
|
167
|
+
module Status
|
|
168
|
+
extend OpenAI::Internal::Type::Enum
|
|
169
|
+
|
|
170
|
+
IN_PROGRESS = :in_progress
|
|
171
|
+
COMPLETED = :completed
|
|
172
|
+
|
|
173
|
+
# @!method self.values
|
|
174
|
+
# @return [Array<Symbol>]
|
|
175
|
+
end
|
|
176
176
|
end
|
|
177
177
|
end
|
|
178
178
|
end
|
|
@@ -17,12 +17,6 @@ module OpenAI
|
|
|
17
17
|
# @return [String]
|
|
18
18
|
required :call_id, String
|
|
19
19
|
|
|
20
|
-
# @!attribute output
|
|
21
|
-
# Optional textual output returned by the apply patch tool.
|
|
22
|
-
#
|
|
23
|
-
# @return [String, nil]
|
|
24
|
-
required :output, String, nil?: true
|
|
25
|
-
|
|
26
20
|
# @!attribute status
|
|
27
21
|
# The status of the apply patch tool call output. One of `completed` or `failed`.
|
|
28
22
|
#
|
|
@@ -41,7 +35,13 @@ module OpenAI
|
|
|
41
35
|
# @return [String, nil]
|
|
42
36
|
optional :created_by, String
|
|
43
37
|
|
|
44
|
-
# @!
|
|
38
|
+
# @!attribute output
|
|
39
|
+
# Optional textual output returned by the apply patch tool.
|
|
40
|
+
#
|
|
41
|
+
# @return [String, nil]
|
|
42
|
+
optional :output, String, nil?: true
|
|
43
|
+
|
|
44
|
+
# @!method initialize(id:, call_id:, status:, created_by: nil, output: nil, type: :apply_patch_call_output)
|
|
45
45
|
# Some parameter documentations has been truncated, see
|
|
46
46
|
# {OpenAI::Models::Responses::ResponseApplyPatchToolCallOutput} for more details.
|
|
47
47
|
#
|
|
@@ -51,12 +51,12 @@ module OpenAI
|
|
|
51
51
|
#
|
|
52
52
|
# @param call_id [String] The unique ID of the apply patch tool call generated by the model.
|
|
53
53
|
#
|
|
54
|
-
# @param output [String, nil] Optional textual output returned by the apply patch tool.
|
|
55
|
-
#
|
|
56
54
|
# @param status [Symbol, OpenAI::Models::Responses::ResponseApplyPatchToolCallOutput::Status] The status of the apply patch tool call output. One of `completed` or `failed`.
|
|
57
55
|
#
|
|
58
56
|
# @param created_by [String] The ID of the entity that created this tool call output.
|
|
59
57
|
#
|
|
58
|
+
# @param output [String, nil] Optional textual output returned by the apply patch tool.
|
|
59
|
+
#
|
|
60
60
|
# @param type [Symbol, :apply_patch_call_output] The type of the item. Always `apply_patch_call_output`.
|
|
61
61
|
|
|
62
62
|
# The status of the apply patch tool call output. One of `completed` or `failed`.
|
|
@@ -956,7 +956,7 @@ module OpenAI
|
|
|
956
956
|
# or errors).
|
|
957
957
|
#
|
|
958
958
|
# @return [String, nil]
|
|
959
|
-
optional :output, String
|
|
959
|
+
optional :output, String, nil?: true
|
|
960
960
|
|
|
961
961
|
# @!method initialize(call_id:, status:, id: nil, output: nil, type: :apply_patch_call_output)
|
|
962
962
|
# Some parameter documentations has been truncated, see
|
|
@@ -971,7 +971,7 @@ module OpenAI
|
|
|
971
971
|
#
|
|
972
972
|
# @param id [String, nil] The unique ID of the apply patch tool call output. Populated when this item is r
|
|
973
973
|
#
|
|
974
|
-
# @param output [String] Optional human-readable log text from the apply patch tool (e.g., patch results
|
|
974
|
+
# @param output [String, nil] Optional human-readable log text from the apply patch tool (e.g., patch results
|
|
975
975
|
#
|
|
976
976
|
# @param type [Symbol, :apply_patch_call_output] The type of the item. Always `apply_patch_call_output`.
|
|
977
977
|
|
data/lib/openai/version.rb
CHANGED
|
@@ -21,6 +21,15 @@ module OpenAI
|
|
|
21
21
|
sig { returns(String) }
|
|
22
22
|
attr_accessor :call_id
|
|
23
23
|
|
|
24
|
+
# One of the create_file, delete_file, or update_file operations applied via
|
|
25
|
+
# apply_patch.
|
|
26
|
+
sig do
|
|
27
|
+
returns(
|
|
28
|
+
OpenAI::Responses::ResponseApplyPatchToolCall::Operation::Variants
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
attr_accessor :operation
|
|
32
|
+
|
|
24
33
|
# The status of the apply patch tool call. One of `in_progress` or `completed`.
|
|
25
34
|
sig do
|
|
26
35
|
returns(
|
|
@@ -40,43 +49,20 @@ module OpenAI
|
|
|
40
49
|
sig { params(created_by: String).void }
|
|
41
50
|
attr_writer :created_by
|
|
42
51
|
|
|
43
|
-
# One of the create_file, delete_file, or update_file operations applied via
|
|
44
|
-
# apply_patch.
|
|
45
|
-
sig do
|
|
46
|
-
returns(
|
|
47
|
-
T.nilable(
|
|
48
|
-
OpenAI::Responses::ResponseApplyPatchToolCall::Operation::Variants
|
|
49
|
-
)
|
|
50
|
-
)
|
|
51
|
-
end
|
|
52
|
-
attr_reader :operation
|
|
53
|
-
|
|
54
|
-
sig do
|
|
55
|
-
params(
|
|
56
|
-
operation:
|
|
57
|
-
T.any(
|
|
58
|
-
OpenAI::Responses::ResponseApplyPatchToolCall::Operation::CreateFile::OrHash,
|
|
59
|
-
OpenAI::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile::OrHash,
|
|
60
|
-
OpenAI::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile::OrHash
|
|
61
|
-
)
|
|
62
|
-
).void
|
|
63
|
-
end
|
|
64
|
-
attr_writer :operation
|
|
65
|
-
|
|
66
52
|
# A tool call that applies file diffs by creating, deleting, or updating files.
|
|
67
53
|
sig do
|
|
68
54
|
params(
|
|
69
55
|
id: String,
|
|
70
56
|
call_id: String,
|
|
71
|
-
status:
|
|
72
|
-
OpenAI::Responses::ResponseApplyPatchToolCall::Status::OrSymbol,
|
|
73
|
-
created_by: String,
|
|
74
57
|
operation:
|
|
75
58
|
T.any(
|
|
76
59
|
OpenAI::Responses::ResponseApplyPatchToolCall::Operation::CreateFile::OrHash,
|
|
77
60
|
OpenAI::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile::OrHash,
|
|
78
61
|
OpenAI::Responses::ResponseApplyPatchToolCall::Operation::UpdateFile::OrHash
|
|
79
62
|
),
|
|
63
|
+
status:
|
|
64
|
+
OpenAI::Responses::ResponseApplyPatchToolCall::Status::OrSymbol,
|
|
65
|
+
created_by: String,
|
|
80
66
|
type: Symbol
|
|
81
67
|
).returns(T.attached_class)
|
|
82
68
|
end
|
|
@@ -86,13 +72,13 @@ module OpenAI
|
|
|
86
72
|
id:,
|
|
87
73
|
# The unique ID of the apply patch tool call generated by the model.
|
|
88
74
|
call_id:,
|
|
75
|
+
# One of the create_file, delete_file, or update_file operations applied via
|
|
76
|
+
# apply_patch.
|
|
77
|
+
operation:,
|
|
89
78
|
# The status of the apply patch tool call. One of `in_progress` or `completed`.
|
|
90
79
|
status:,
|
|
91
80
|
# The ID of the entity that created this tool call.
|
|
92
81
|
created_by: nil,
|
|
93
|
-
# One of the create_file, delete_file, or update_file operations applied via
|
|
94
|
-
# apply_patch.
|
|
95
|
-
operation: nil,
|
|
96
82
|
# The type of the item. Always `apply_patch_call`.
|
|
97
83
|
type: :apply_patch_call
|
|
98
84
|
)
|
|
@@ -103,53 +89,18 @@ module OpenAI
|
|
|
103
89
|
{
|
|
104
90
|
id: String,
|
|
105
91
|
call_id: String,
|
|
92
|
+
operation:
|
|
93
|
+
OpenAI::Responses::ResponseApplyPatchToolCall::Operation::Variants,
|
|
106
94
|
status:
|
|
107
95
|
OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol,
|
|
108
96
|
type: Symbol,
|
|
109
|
-
created_by: String
|
|
110
|
-
operation:
|
|
111
|
-
OpenAI::Responses::ResponseApplyPatchToolCall::Operation::Variants
|
|
97
|
+
created_by: String
|
|
112
98
|
}
|
|
113
99
|
)
|
|
114
100
|
end
|
|
115
101
|
def to_hash
|
|
116
102
|
end
|
|
117
103
|
|
|
118
|
-
# The status of the apply patch tool call. One of `in_progress` or `completed`.
|
|
119
|
-
module Status
|
|
120
|
-
extend OpenAI::Internal::Type::Enum
|
|
121
|
-
|
|
122
|
-
TaggedSymbol =
|
|
123
|
-
T.type_alias do
|
|
124
|
-
T.all(
|
|
125
|
-
Symbol,
|
|
126
|
-
OpenAI::Responses::ResponseApplyPatchToolCall::Status
|
|
127
|
-
)
|
|
128
|
-
end
|
|
129
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
130
|
-
|
|
131
|
-
IN_PROGRESS =
|
|
132
|
-
T.let(
|
|
133
|
-
:in_progress,
|
|
134
|
-
OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol
|
|
135
|
-
)
|
|
136
|
-
COMPLETED =
|
|
137
|
-
T.let(
|
|
138
|
-
:completed,
|
|
139
|
-
OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol
|
|
140
|
-
)
|
|
141
|
-
|
|
142
|
-
sig do
|
|
143
|
-
override.returns(
|
|
144
|
-
T::Array[
|
|
145
|
-
OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol
|
|
146
|
-
]
|
|
147
|
-
)
|
|
148
|
-
end
|
|
149
|
-
def self.values
|
|
150
|
-
end
|
|
151
|
-
end
|
|
152
|
-
|
|
153
104
|
# One of the create_file, delete_file, or update_file operations applied via
|
|
154
105
|
# apply_patch.
|
|
155
106
|
module Operation
|
|
@@ -294,6 +245,41 @@ module OpenAI
|
|
|
294
245
|
def self.variants
|
|
295
246
|
end
|
|
296
247
|
end
|
|
248
|
+
|
|
249
|
+
# The status of the apply patch tool call. One of `in_progress` or `completed`.
|
|
250
|
+
module Status
|
|
251
|
+
extend OpenAI::Internal::Type::Enum
|
|
252
|
+
|
|
253
|
+
TaggedSymbol =
|
|
254
|
+
T.type_alias do
|
|
255
|
+
T.all(
|
|
256
|
+
Symbol,
|
|
257
|
+
OpenAI::Responses::ResponseApplyPatchToolCall::Status
|
|
258
|
+
)
|
|
259
|
+
end
|
|
260
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
261
|
+
|
|
262
|
+
IN_PROGRESS =
|
|
263
|
+
T.let(
|
|
264
|
+
:in_progress,
|
|
265
|
+
OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol
|
|
266
|
+
)
|
|
267
|
+
COMPLETED =
|
|
268
|
+
T.let(
|
|
269
|
+
:completed,
|
|
270
|
+
OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
sig do
|
|
274
|
+
override.returns(
|
|
275
|
+
T::Array[
|
|
276
|
+
OpenAI::Responses::ResponseApplyPatchToolCall::Status::TaggedSymbol
|
|
277
|
+
]
|
|
278
|
+
)
|
|
279
|
+
end
|
|
280
|
+
def self.values
|
|
281
|
+
end
|
|
282
|
+
end
|
|
297
283
|
end
|
|
298
284
|
end
|
|
299
285
|
end
|
|
@@ -21,10 +21,6 @@ module OpenAI
|
|
|
21
21
|
sig { returns(String) }
|
|
22
22
|
attr_accessor :call_id
|
|
23
23
|
|
|
24
|
-
# Optional textual output returned by the apply patch tool.
|
|
25
|
-
sig { returns(T.nilable(String)) }
|
|
26
|
-
attr_accessor :output
|
|
27
|
-
|
|
28
24
|
# The status of the apply patch tool call output. One of `completed` or `failed`.
|
|
29
25
|
sig do
|
|
30
26
|
returns(
|
|
@@ -44,15 +40,19 @@ module OpenAI
|
|
|
44
40
|
sig { params(created_by: String).void }
|
|
45
41
|
attr_writer :created_by
|
|
46
42
|
|
|
43
|
+
# Optional textual output returned by the apply patch tool.
|
|
44
|
+
sig { returns(T.nilable(String)) }
|
|
45
|
+
attr_accessor :output
|
|
46
|
+
|
|
47
47
|
# The output emitted by an apply patch tool call.
|
|
48
48
|
sig do
|
|
49
49
|
params(
|
|
50
50
|
id: String,
|
|
51
51
|
call_id: String,
|
|
52
|
-
output: T.nilable(String),
|
|
53
52
|
status:
|
|
54
53
|
OpenAI::Responses::ResponseApplyPatchToolCallOutput::Status::OrSymbol,
|
|
55
54
|
created_by: String,
|
|
55
|
+
output: T.nilable(String),
|
|
56
56
|
type: Symbol
|
|
57
57
|
).returns(T.attached_class)
|
|
58
58
|
end
|
|
@@ -62,12 +62,12 @@ module OpenAI
|
|
|
62
62
|
id:,
|
|
63
63
|
# The unique ID of the apply patch tool call generated by the model.
|
|
64
64
|
call_id:,
|
|
65
|
-
# Optional textual output returned by the apply patch tool.
|
|
66
|
-
output:,
|
|
67
65
|
# The status of the apply patch tool call output. One of `completed` or `failed`.
|
|
68
66
|
status:,
|
|
69
67
|
# The ID of the entity that created this tool call output.
|
|
70
68
|
created_by: nil,
|
|
69
|
+
# Optional textual output returned by the apply patch tool.
|
|
70
|
+
output: nil,
|
|
71
71
|
# The type of the item. Always `apply_patch_call_output`.
|
|
72
72
|
type: :apply_patch_call_output
|
|
73
73
|
)
|
|
@@ -78,11 +78,11 @@ module OpenAI
|
|
|
78
78
|
{
|
|
79
79
|
id: String,
|
|
80
80
|
call_id: String,
|
|
81
|
-
output: T.nilable(String),
|
|
82
81
|
status:
|
|
83
82
|
OpenAI::Responses::ResponseApplyPatchToolCallOutput::Status::TaggedSymbol,
|
|
84
83
|
type: Symbol,
|
|
85
|
-
created_by: String
|
|
84
|
+
created_by: String,
|
|
85
|
+
output: T.nilable(String)
|
|
86
86
|
}
|
|
87
87
|
)
|
|
88
88
|
end
|
|
@@ -1667,10 +1667,7 @@ module OpenAI
|
|
|
1667
1667
|
# Optional human-readable log text from the apply patch tool (e.g., patch results
|
|
1668
1668
|
# or errors).
|
|
1669
1669
|
sig { returns(T.nilable(String)) }
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
sig { params(output: String).void }
|
|
1673
|
-
attr_writer :output
|
|
1670
|
+
attr_accessor :output
|
|
1674
1671
|
|
|
1675
1672
|
# The streamed output emitted by an apply patch tool call.
|
|
1676
1673
|
sig do
|
|
@@ -1679,7 +1676,7 @@ module OpenAI
|
|
|
1679
1676
|
status:
|
|
1680
1677
|
OpenAI::Responses::ResponseInputItem::ApplyPatchCallOutput::Status::OrSymbol,
|
|
1681
1678
|
id: T.nilable(String),
|
|
1682
|
-
output: String,
|
|
1679
|
+
output: T.nilable(String),
|
|
1683
1680
|
type: Symbol
|
|
1684
1681
|
).returns(T.attached_class)
|
|
1685
1682
|
end
|
|
@@ -1707,7 +1704,7 @@ module OpenAI
|
|
|
1707
1704
|
OpenAI::Responses::ResponseInputItem::ApplyPatchCallOutput::Status::OrSymbol,
|
|
1708
1705
|
type: Symbol,
|
|
1709
1706
|
id: T.nilable(String),
|
|
1710
|
-
output: String
|
|
1707
|
+
output: T.nilable(String)
|
|
1711
1708
|
}
|
|
1712
1709
|
)
|
|
1713
1710
|
end
|
|
@@ -5,10 +5,10 @@ module OpenAI
|
|
|
5
5
|
{
|
|
6
6
|
id: String,
|
|
7
7
|
call_id: String,
|
|
8
|
+
operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation,
|
|
8
9
|
status: OpenAI::Models::Responses::ResponseApplyPatchToolCall::status,
|
|
9
10
|
type: :apply_patch_call,
|
|
10
|
-
created_by: String
|
|
11
|
-
operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation
|
|
11
|
+
created_by: String
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
class ResponseApplyPatchToolCall < OpenAI::Internal::Type::BaseModel
|
|
@@ -16,6 +16,8 @@ module OpenAI
|
|
|
16
16
|
|
|
17
17
|
attr_accessor call_id: String
|
|
18
18
|
|
|
19
|
+
attr_accessor operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation
|
|
20
|
+
|
|
19
21
|
attr_accessor status: OpenAI::Models::Responses::ResponseApplyPatchToolCall::status
|
|
20
22
|
|
|
21
23
|
attr_accessor type: :apply_patch_call
|
|
@@ -24,41 +26,24 @@ module OpenAI
|
|
|
24
26
|
|
|
25
27
|
def created_by=: (String) -> String
|
|
26
28
|
|
|
27
|
-
attr_reader operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation?
|
|
28
|
-
|
|
29
|
-
def operation=: (
|
|
30
|
-
OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation
|
|
31
|
-
) -> OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation
|
|
32
|
-
|
|
33
29
|
def initialize: (
|
|
34
30
|
id: String,
|
|
35
31
|
call_id: String,
|
|
32
|
+
operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation,
|
|
36
33
|
status: OpenAI::Models::Responses::ResponseApplyPatchToolCall::status,
|
|
37
34
|
?created_by: String,
|
|
38
|
-
?operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation,
|
|
39
35
|
?type: :apply_patch_call
|
|
40
36
|
) -> void
|
|
41
37
|
|
|
42
38
|
def to_hash: -> {
|
|
43
39
|
id: String,
|
|
44
40
|
call_id: String,
|
|
41
|
+
operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation,
|
|
45
42
|
status: OpenAI::Models::Responses::ResponseApplyPatchToolCall::status,
|
|
46
43
|
type: :apply_patch_call,
|
|
47
|
-
created_by: String
|
|
48
|
-
operation: OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation
|
|
44
|
+
created_by: String
|
|
49
45
|
}
|
|
50
46
|
|
|
51
|
-
type status = :in_progress | :completed
|
|
52
|
-
|
|
53
|
-
module Status
|
|
54
|
-
extend OpenAI::Internal::Type::Enum
|
|
55
|
-
|
|
56
|
-
IN_PROGRESS: :in_progress
|
|
57
|
-
COMPLETED: :completed
|
|
58
|
-
|
|
59
|
-
def self?.values: -> ::Array[OpenAI::Models::Responses::ResponseApplyPatchToolCall::status]
|
|
60
|
-
end
|
|
61
|
-
|
|
62
47
|
type operation =
|
|
63
48
|
OpenAI::Responses::ResponseApplyPatchToolCall::Operation::CreateFile
|
|
64
49
|
| OpenAI::Responses::ResponseApplyPatchToolCall::Operation::DeleteFile
|
|
@@ -117,6 +102,17 @@ module OpenAI
|
|
|
117
102
|
|
|
118
103
|
def self?.variants: -> ::Array[OpenAI::Models::Responses::ResponseApplyPatchToolCall::operation]
|
|
119
104
|
end
|
|
105
|
+
|
|
106
|
+
type status = :in_progress | :completed
|
|
107
|
+
|
|
108
|
+
module Status
|
|
109
|
+
extend OpenAI::Internal::Type::Enum
|
|
110
|
+
|
|
111
|
+
IN_PROGRESS: :in_progress
|
|
112
|
+
COMPLETED: :completed
|
|
113
|
+
|
|
114
|
+
def self?.values: -> ::Array[OpenAI::Models::Responses::ResponseApplyPatchToolCall::status]
|
|
115
|
+
end
|
|
120
116
|
end
|
|
121
117
|
end
|
|
122
118
|
end
|
|
@@ -5,10 +5,10 @@ module OpenAI
|
|
|
5
5
|
{
|
|
6
6
|
id: String,
|
|
7
7
|
call_id: String,
|
|
8
|
-
output: String?,
|
|
9
8
|
status: OpenAI::Models::Responses::ResponseApplyPatchToolCallOutput::status,
|
|
10
9
|
type: :apply_patch_call_output,
|
|
11
|
-
created_by: String
|
|
10
|
+
created_by: String,
|
|
11
|
+
output: String?
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
class ResponseApplyPatchToolCallOutput < OpenAI::Internal::Type::BaseModel
|
|
@@ -16,8 +16,6 @@ module OpenAI
|
|
|
16
16
|
|
|
17
17
|
attr_accessor call_id: String
|
|
18
18
|
|
|
19
|
-
attr_accessor output: String?
|
|
20
|
-
|
|
21
19
|
attr_accessor status: OpenAI::Models::Responses::ResponseApplyPatchToolCallOutput::status
|
|
22
20
|
|
|
23
21
|
attr_accessor type: :apply_patch_call_output
|
|
@@ -26,22 +24,24 @@ module OpenAI
|
|
|
26
24
|
|
|
27
25
|
def created_by=: (String) -> String
|
|
28
26
|
|
|
27
|
+
attr_accessor output: String?
|
|
28
|
+
|
|
29
29
|
def initialize: (
|
|
30
30
|
id: String,
|
|
31
31
|
call_id: String,
|
|
32
|
-
output: String?,
|
|
33
32
|
status: OpenAI::Models::Responses::ResponseApplyPatchToolCallOutput::status,
|
|
34
33
|
?created_by: String,
|
|
34
|
+
?output: String?,
|
|
35
35
|
?type: :apply_patch_call_output
|
|
36
36
|
) -> void
|
|
37
37
|
|
|
38
38
|
def to_hash: -> {
|
|
39
39
|
id: String,
|
|
40
40
|
call_id: String,
|
|
41
|
-
output: String?,
|
|
42
41
|
status: OpenAI::Models::Responses::ResponseApplyPatchToolCallOutput::status,
|
|
43
42
|
type: :apply_patch_call_output,
|
|
44
|
-
created_by: String
|
|
43
|
+
created_by: String,
|
|
44
|
+
output: String?
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
type status = :completed | :failed
|
|
@@ -645,7 +645,7 @@ module OpenAI
|
|
|
645
645
|
status: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::status,
|
|
646
646
|
type: :apply_patch_call_output,
|
|
647
647
|
id: String?,
|
|
648
|
-
output: String
|
|
648
|
+
output: String?
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
class ApplyPatchCallOutput < OpenAI::Internal::Type::BaseModel
|
|
@@ -657,15 +657,13 @@ module OpenAI
|
|
|
657
657
|
|
|
658
658
|
attr_accessor id: String?
|
|
659
659
|
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
def output=: (String) -> String
|
|
660
|
+
attr_accessor output: String?
|
|
663
661
|
|
|
664
662
|
def initialize: (
|
|
665
663
|
call_id: String,
|
|
666
664
|
status: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::status,
|
|
667
665
|
?id: String?,
|
|
668
|
-
?output: String
|
|
666
|
+
?output: String?,
|
|
669
667
|
?type: :apply_patch_call_output
|
|
670
668
|
) -> void
|
|
671
669
|
|
|
@@ -674,7 +672,7 @@ module OpenAI
|
|
|
674
672
|
status: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::status,
|
|
675
673
|
type: :apply_patch_call_output,
|
|
676
674
|
id: String?,
|
|
677
|
-
output: String
|
|
675
|
+
output: String?
|
|
678
676
|
}
|
|
679
677
|
|
|
680
678
|
type status = :completed | :failed
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.36.
|
|
4
|
+
version: 0.36.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAI
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|