openai 0.100.0 → 0.101.0
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 +7 -0
- data/README.md +1 -1
- data/lib/openai/client.rb +4 -0
- data/lib/openai/models/beta/beta_response_tool_search_output_item_param.rb +1166 -3
- data/lib/openai/models/beta/beta_tool_search_output_namespace_tool.rb +176 -0
- data/lib/openai/models/decision.rb +313 -0
- data/lib/openai/models/decision_create_params.rb +233 -0
- data/lib/openai/models/decision_input_image.rb +53 -0
- data/lib/openai/models/decision_input_message.rb +60 -0
- data/lib/openai/models/decision_input_part.rb +20 -0
- data/lib/openai/models/decision_input_text.rb +21 -0
- data/lib/openai/models/responses/response_tool_search_output_item_param.rb +1166 -3
- data/lib/openai/models/responses/tool_search_output_namespace_tool.rb +174 -0
- data/lib/openai/models.rb +12 -0
- data/lib/openai/resources/decisions.rb +59 -0
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +9 -0
- data/rbi/openai/client.rbi +3 -0
- data/rbi/openai/models/beta/beta_response_tool_search_output_item_param.rbi +1893 -18
- data/rbi/openai/models/beta/beta_tool_search_output_namespace_tool.rbi +272 -0
- data/rbi/openai/models/decision.rbi +586 -0
- data/rbi/openai/models/decision_create_params.rbi +435 -0
- data/rbi/openai/models/decision_input_image.rbi +81 -0
- data/rbi/openai/models/decision_input_message.rbi +96 -0
- data/rbi/openai/models/decision_input_part.rbi +24 -0
- data/rbi/openai/models/decision_input_text.rbi +49 -0
- data/rbi/openai/models/responses/response_tool_search_output_item_param.rbi +1901 -18
- data/rbi/openai/models/responses/tool_search_output_namespace_tool.rbi +272 -0
- data/rbi/openai/models.rbi +12 -0
- data/rbi/openai/resources/decisions.rbi +57 -0
- data/sig/openai/client.rbs +2 -0
- data/sig/openai/models/beta/beta_response_tool_search_output_item_param.rbs +993 -4
- data/sig/openai/models/beta/beta_tool_search_output_namespace_tool.rbs +162 -0
- data/sig/openai/models/decision.rbs +296 -0
- data/sig/openai/models/decision_create_params.rbs +227 -0
- data/sig/openai/models/decision_input_image.rbs +51 -0
- data/sig/openai/models/decision_input_message.rbs +57 -0
- data/sig/openai/models/decision_input_part.rbs +12 -0
- data/sig/openai/models/decision_input_text.rbs +15 -0
- data/sig/openai/models/responses/response_tool_search_output_item_param.rbs +993 -4
- data/sig/openai/models/responses/tool_search_output_namespace_tool.rbs +160 -0
- data/sig/openai/models.rbs +12 -0
- data/sig/openai/resources/decisions.rbs +15 -0
- metadata +28 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
type decision_input_image =
|
|
4
|
+
{
|
|
5
|
+
image_url: String,
|
|
6
|
+
?type: :input_image,
|
|
7
|
+
?detail: OpenAI::Models::DecisionInputImage::detail?
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class DecisionInputImage < OpenAI::Internal::Type::BaseModel
|
|
11
|
+
# A base64-encoded image in a data URL.
|
|
12
|
+
attr_accessor image_url: String
|
|
13
|
+
|
|
14
|
+
attr_accessor type: :input_image
|
|
15
|
+
|
|
16
|
+
# The image detail level, using the selected model's image profile. Defaults to
|
|
17
|
+
# auto.
|
|
18
|
+
attr_accessor detail: OpenAI::Models::DecisionInputImage::detail?
|
|
19
|
+
|
|
20
|
+
# @param image_url
|
|
21
|
+
# A base64-encoded image in a data URL.
|
|
22
|
+
# @param detail
|
|
23
|
+
# The image detail level, using the selected model's image profile. Defaults to
|
|
24
|
+
# auto.
|
|
25
|
+
def initialize: (
|
|
26
|
+
image_url: String,
|
|
27
|
+
?detail: OpenAI::Models::DecisionInputImage::detail?,
|
|
28
|
+
?type: :input_image
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
image_url: String,
|
|
33
|
+
?type: :input_image,
|
|
34
|
+
?detail: OpenAI::Models::DecisionInputImage::detail?
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type detail = :low | :high | :auto | :original
|
|
38
|
+
|
|
39
|
+
module Detail
|
|
40
|
+
extend OpenAI::Internal::Type::Enum
|
|
41
|
+
|
|
42
|
+
LOW: :low
|
|
43
|
+
HIGH: :high
|
|
44
|
+
AUTO: :auto
|
|
45
|
+
ORIGINAL: :original
|
|
46
|
+
|
|
47
|
+
def self?.values: -> ::Array[OpenAI::Models::DecisionInputImage::detail]
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
type decision_input_message =
|
|
4
|
+
{
|
|
5
|
+
content: OpenAI::Models::DecisionInputMessage::content,
|
|
6
|
+
?role: :user,
|
|
7
|
+
?type: OpenAI::Models::DecisionInputMessage::type_
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class DecisionInputMessage < OpenAI::Internal::Type::BaseModel
|
|
11
|
+
# Text evidence or an ordered list of text and inline image parts.
|
|
12
|
+
attr_accessor content: OpenAI::Models::DecisionInputMessage::content
|
|
13
|
+
|
|
14
|
+
attr_accessor role: :user
|
|
15
|
+
|
|
16
|
+
attr_reader type: OpenAI::Models::DecisionInputMessage::type_?
|
|
17
|
+
|
|
18
|
+
def type=: (
|
|
19
|
+
OpenAI::Models::DecisionInputMessage::type_
|
|
20
|
+
) -> OpenAI::Models::DecisionInputMessage::type_
|
|
21
|
+
|
|
22
|
+
# @param content
|
|
23
|
+
# Text evidence or an ordered list of text and inline image parts.
|
|
24
|
+
def initialize: (
|
|
25
|
+
content: OpenAI::Models::DecisionInputMessage::content,
|
|
26
|
+
?type: OpenAI::Models::DecisionInputMessage::type_,
|
|
27
|
+
?role: :user
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
content: OpenAI::Models::DecisionInputMessage::content,
|
|
32
|
+
?role: :user,
|
|
33
|
+
?type: OpenAI::Models::DecisionInputMessage::type_
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
type content = String | ::Array[OpenAI::Models::decision_input_part]
|
|
37
|
+
|
|
38
|
+
module Content
|
|
39
|
+
extend OpenAI::Internal::Type::Union
|
|
40
|
+
|
|
41
|
+
def self?.variants: -> ::Array[OpenAI::Models::DecisionInputMessage::content]
|
|
42
|
+
|
|
43
|
+
DecisionInputPartArray: OpenAI::Internal::Type::Converter
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
type type_ = :message
|
|
47
|
+
|
|
48
|
+
module Type
|
|
49
|
+
extend OpenAI::Internal::Type::Enum
|
|
50
|
+
|
|
51
|
+
MESSAGE: :message
|
|
52
|
+
|
|
53
|
+
def self?.values: -> ::Array[OpenAI::Models::DecisionInputMessage::type_]
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
type decision_input_part =
|
|
4
|
+
OpenAI::DecisionInputText | OpenAI::DecisionInputImage
|
|
5
|
+
|
|
6
|
+
module DecisionInputPart
|
|
7
|
+
extend OpenAI::Internal::Type::Union
|
|
8
|
+
|
|
9
|
+
def self?.variants: -> ::Array[OpenAI::Models::decision_input_part]
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
type decision_input_text = { text: String, ?type: :input_text }
|
|
4
|
+
|
|
5
|
+
class DecisionInputText < OpenAI::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor text: String
|
|
7
|
+
|
|
8
|
+
attr_accessor type: :input_text
|
|
9
|
+
|
|
10
|
+
def initialize: (text: String, ?type: :input_text) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { text: String, ?type: :input_text }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|