openai 0.110.0 → 0.112.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 +20 -0
- data/README.md +1 -1
- data/lib/openai/models/beta/agent.rb +2 -2
- data/lib/openai/models/beta/agent_create_params.rb +2 -2
- data/lib/openai/models/beta/agent_session.rb +2 -2
- data/lib/openai/models/beta/agent_tool.rb +18 -1
- data/lib/openai/models/beta/agent_tool_param.rb +18 -1
- data/lib/openai/models/beta/agent_update_params.rb +2 -2
- data/lib/openai/models/beta/agents/session_create_params.rb +2 -2
- data/lib/openai/models/beta/beta_response_input_file.rb +23 -1
- data/lib/openai/models/beta/beta_response_input_file_content.rb +23 -1
- data/lib/openai/models/beta/beta_response_input_image.rb +23 -1
- data/lib/openai/models/beta/beta_response_input_image_content.rb +23 -1
- data/lib/openai/models/beta/beta_response_input_text.rb +23 -1
- data/lib/openai/models/beta/beta_response_input_text_content.rb +23 -1
- data/lib/openai/models/beta/beta_response_item.rb +28 -1
- data/lib/openai/models/beta/beta_response_output_item.rb +28 -1
- data/lib/openai/models/beta/beta_response_tool_search_output_item_param.rb +26 -15
- data/lib/openai/models/beta/beta_tool.rb +26 -15
- data/lib/openai/models/beta/persisted_agent_tool.rb +18 -1
- data/lib/openai/models/beta/persisted_agent_tool_param.rb +18 -1
- data/lib/openai/models/chat/chat_completion_content_part.rb +23 -1
- data/lib/openai/models/chat/chat_completion_content_part_image.rb +23 -1
- data/lib/openai/models/chat/chat_completion_content_part_input_audio.rb +23 -1
- data/lib/openai/models/chat/chat_completion_content_part_text.rb +23 -1
- data/lib/openai/models/conversations/computer_screenshot_content.rb +23 -1
- data/lib/openai/models/decision_create_params.rb +802 -28
- data/lib/openai/models/decision_input_json.rb +45 -0
- data/lib/openai/models/decision_input_message.rb +304 -48
- data/lib/openai/models/decision_input_part.rb +4 -1
- data/lib/openai/models/decision_question_input_image.rb +54 -0
- data/lib/openai/models/decision_question_input_part.rb +23 -0
- data/lib/openai/models/decision_question_input_text.rb +21 -0
- data/lib/openai/models/image_edit_params.rb +20 -4
- data/lib/openai/models/image_generate_params.rb +23 -7
- data/lib/openai/models/image_model.rb +2 -0
- data/lib/openai/models/live/client_delegation.rb +20 -1
- data/lib/openai/models/live/client_event.rb +4 -4
- data/lib/openai/models/live/commentary_append_event.rb +1 -1
- data/lib/openai/models/live/decision_assistant_message.rb +154 -0
- data/lib/openai/models/live/decision_choice_option.rb +35 -0
- data/lib/openai/models/live/decision_developer_message.rb +70 -0
- data/lib/openai/models/live/decision_input_text.rb +26 -0
- data/lib/openai/models/live/decision_item_create_event.rb +490 -131
- data/lib/openai/models/live/decision_item_created_event.rb +486 -131
- data/lib/openai/models/live/decision_json_object.rb +10 -0
- data/lib/openai/models/live/decision_question.rb +172 -0
- data/lib/openai/models/live/decision_stored_assistant_message.rb +152 -0
- data/lib/openai/models/live/decision_stored_developer_message.rb +68 -0
- data/lib/openai/models/live/decision_stored_system_message.rb +68 -0
- data/lib/openai/models/live/decision_stored_user_message.rb +195 -0
- data/lib/openai/models/live/decision_system_message.rb +70 -0
- data/lib/openai/models/live/decision_trigger.rb +6 -185
- data/lib/openai/models/live/decision_user_message.rb +193 -0
- data/lib/openai/models/live/decisions_delegation_config.rb +5 -177
- data/lib/openai/models/live/decisions_delegation_update_config.rb +5 -184
- data/lib/openai/models/live/fork_client_event.rb +4 -4
- data/lib/openai/models/live/fork_server_event.rb +2 -2
- data/lib/openai/models/live/fork_session_config.rb +20 -1
- data/lib/openai/models/live/input_audio_muted_event.rb +3 -2
- data/lib/openai/models/live/input_audio_unmute_event.rb +2 -1
- data/lib/openai/models/live/input_audio_unmuted_event.rb +3 -2
- data/lib/openai/models/live/instructions_append_event.rb +5 -2
- data/lib/openai/models/live/media_session_config.rb +39 -2
- data/lib/openai/models/live/media_session_fork_config.rb +20 -1
- data/lib/openai/models/live/server_event.rb +2 -2
- data/lib/openai/models/live/session_accept_params.rb +39 -2
- data/lib/openai/models/live/session_config.rb +39 -2
- data/lib/openai/models/live/session_resource.rb +39 -2
- data/lib/openai/models/live/session_update_config.rb +41 -2
- data/lib/openai/models/live/sideband_client_event.rb +4 -4
- data/lib/openai/models/live/sideband_server_event.rb +2 -2
- data/lib/openai/models/live/thinking_append_event.rb +1 -1
- data/lib/openai/models/realtime/conversation_item_input_audio_transcription_delta_event.rb +10 -12
- data/lib/openai/models/realtime/realtime_error_event.rb +1 -1
- data/lib/openai/models/realtime/realtime_server_event.rb +1 -1
- data/lib/openai/models/realtime/realtime_translation_server_event.rb +1 -1
- data/lib/openai/models/responses/response_input_file.rb +23 -1
- data/lib/openai/models/responses/response_input_file_content.rb +23 -1
- data/lib/openai/models/responses/response_input_image.rb +23 -1
- data/lib/openai/models/responses/response_input_image_content.rb +23 -1
- data/lib/openai/models/responses/response_input_text.rb +23 -1
- data/lib/openai/models/responses/response_input_text_content.rb +23 -1
- data/lib/openai/models/responses/response_tool_search_output_item_param.rb +26 -15
- data/lib/openai/models/responses/tool.rb +26 -15
- data/lib/openai/models.rb +8 -0
- data/lib/openai/resources/beta/agents.rb +2 -2
- data/lib/openai/resources/beta/responses.rb +2 -2
- data/lib/openai/resources/decisions.rb +5 -6
- data/lib/openai/resources/images.rb +18 -6
- data/lib/openai/resources/live/forks.rb +2 -2
- data/lib/openai/resources/live/sideband.rb +2 -2
- data/lib/openai/resources/live.rb +2 -2
- data/lib/openai/resources/realtime/translations.rb +2 -2
- data/lib/openai/resources/realtime.rb +2 -2
- data/lib/openai/resources/responses.rb +2 -2
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +16 -0
- data/rbi/openai/models/beta/agent.rbi +2 -1
- data/rbi/openai/models/beta/agent_create_params.rbi +6 -3
- data/rbi/openai/models/beta/agent_session.rbi +2 -1
- data/rbi/openai/models/beta/agent_tool.rbi +40 -1
- data/rbi/openai/models/beta/agent_tool_param.rbi +40 -1
- data/rbi/openai/models/beta/agent_update_params.rbi +6 -3
- data/rbi/openai/models/beta/agents/session_create_params.rbi +6 -3
- data/rbi/openai/models/beta/beta_response_input_file.rbi +31 -1
- data/rbi/openai/models/beta/beta_response_input_file_content.rbi +39 -1
- data/rbi/openai/models/beta/beta_response_input_image.rbi +31 -1
- data/rbi/openai/models/beta/beta_response_input_image_content.rbi +39 -1
- data/rbi/openai/models/beta/beta_response_input_text.rbi +31 -1
- data/rbi/openai/models/beta/beta_response_input_text_content.rbi +39 -1
- data/rbi/openai/models/beta/beta_response_item.rbi +58 -1
- data/rbi/openai/models/beta/beta_response_output_item.rbi +58 -1
- data/rbi/openai/models/beta/beta_response_tool_search_output_item_param.rbi +24 -15
- data/rbi/openai/models/beta/beta_tool.rbi +24 -15
- data/rbi/openai/models/beta/persisted_agent_tool.rbi +40 -1
- data/rbi/openai/models/beta/persisted_agent_tool_param.rbi +40 -1
- data/rbi/openai/models/chat/chat_completion_content_part.rbi +43 -1
- data/rbi/openai/models/chat/chat_completion_content_part_image.rbi +41 -1
- data/rbi/openai/models/chat/chat_completion_content_part_input_audio.rbi +46 -1
- data/rbi/openai/models/chat/chat_completion_content_part_text.rbi +39 -1
- data/rbi/openai/models/conversations/computer_screenshot_content.rbi +48 -1
- data/rbi/openai/models/decision_create_params.rbi +1273 -26
- data/rbi/openai/models/decision_input_json.rbi +75 -0
- data/rbi/openai/models/decision_input_message.rbi +455 -52
- data/rbi/openai/models/decision_input_part.rbi +2 -1
- data/rbi/openai/models/decision_question_input_image.rbi +82 -0
- data/rbi/openai/models/decision_question_input_part.rbi +25 -0
- data/rbi/openai/models/decision_question_input_text.rbi +49 -0
- data/rbi/openai/models/image_edit_params.rbi +12 -3
- data/rbi/openai/models/image_generate_params.rbi +15 -6
- data/rbi/openai/models/live/client_delegation.rbi +23 -1
- data/rbi/openai/models/live/commentary_append_event.rbi +1 -1
- data/rbi/openai/models/live/decision_assistant_message.rbi +247 -0
- data/rbi/openai/models/live/decision_choice_option.rbi +67 -0
- data/rbi/openai/models/live/decision_developer_message.rbi +109 -0
- data/rbi/openai/models/live/decision_input_text.rbi +55 -0
- data/rbi/openai/models/live/decision_item_create_event.rbi +765 -184
- data/rbi/openai/models/live/decision_item_created_event.rbi +737 -184
- data/rbi/openai/models/live/decision_json_object.rbi +16 -0
- data/rbi/openai/models/live/decision_question.rbi +300 -0
- data/rbi/openai/models/live/decision_stored_assistant_message.rbi +245 -0
- data/rbi/openai/models/live/decision_stored_developer_message.rbi +107 -0
- data/rbi/openai/models/live/decision_stored_system_message.rbi +107 -0
- data/rbi/openai/models/live/decision_stored_user_message.rbi +333 -0
- data/rbi/openai/models/live/decision_system_message.rbi +109 -0
- data/rbi/openai/models/live/decision_trigger.rbi +11 -320
- data/rbi/openai/models/live/decision_user_message.rbi +320 -0
- data/rbi/openai/models/live/decisions_delegation_config.rbi +10 -321
- data/rbi/openai/models/live/decisions_delegation_update_config.rbi +13 -324
- data/rbi/openai/models/live/fork_session_config.rbi +27 -1
- data/rbi/openai/models/live/input_audio_muted_event.rbi +3 -2
- data/rbi/openai/models/live/input_audio_unmute_event.rbi +2 -1
- data/rbi/openai/models/live/input_audio_unmuted_event.rbi +3 -2
- data/rbi/openai/models/live/instructions_append_event.rbi +5 -2
- data/rbi/openai/models/live/media_session_config.rbi +44 -2
- data/rbi/openai/models/live/media_session_fork_config.rbi +27 -1
- data/rbi/openai/models/live/session_accept_params.rbi +44 -2
- data/rbi/openai/models/live/session_config.rbi +44 -2
- data/rbi/openai/models/live/session_resource.rbi +44 -2
- data/rbi/openai/models/live/session_update_config.rbi +54 -2
- data/rbi/openai/models/live/thinking_append_event.rbi +1 -1
- data/rbi/openai/models/realtime/conversation_item_input_audio_transcription_delta_event.rbi +10 -12
- data/rbi/openai/models/realtime/realtime_error_event.rbi +1 -1
- data/rbi/openai/models/responses/response_input_file.rbi +31 -1
- data/rbi/openai/models/responses/response_input_file_content.rbi +39 -1
- data/rbi/openai/models/responses/response_input_image.rbi +33 -1
- data/rbi/openai/models/responses/response_input_image_content.rbi +41 -1
- data/rbi/openai/models/responses/response_input_text.rbi +31 -1
- data/rbi/openai/models/responses/response_input_text_content.rbi +39 -1
- data/rbi/openai/models/responses/response_tool_search_output_item_param.rbi +24 -15
- data/rbi/openai/models/responses/tool.rbi +24 -15
- data/rbi/openai/models.rbi +8 -0
- data/rbi/openai/resources/beta/agents.rbi +4 -2
- data/rbi/openai/resources/beta/responses.rbi +8 -1
- data/rbi/openai/resources/decisions.rbi +4 -5
- data/rbi/openai/resources/images.rbi +18 -6
- data/rbi/openai/resources/live/forks.rbi +8 -1
- data/rbi/openai/resources/live/sideband.rbi +8 -1
- data/rbi/openai/resources/live.rbi +8 -1
- data/rbi/openai/resources/realtime/translations.rbi +8 -1
- data/rbi/openai/resources/realtime.rbi +8 -1
- data/rbi/openai/resources/responses.rbi +8 -1
- data/sig/openai/models/beta/agent_tool.rbs +14 -0
- data/sig/openai/models/beta/agent_tool_param.rbs +14 -0
- data/sig/openai/models/beta/beta_response_input_file.rbs +34 -3
- data/sig/openai/models/beta/beta_response_input_file_content.rbs +34 -3
- data/sig/openai/models/beta/beta_response_input_image.rbs +34 -3
- data/sig/openai/models/beta/beta_response_input_image_content.rbs +34 -3
- data/sig/openai/models/beta/beta_response_input_text.rbs +34 -3
- data/sig/openai/models/beta/beta_response_input_text_content.rbs +34 -3
- data/sig/openai/models/beta/beta_response_item.rbs +34 -3
- data/sig/openai/models/beta/beta_response_output_item.rbs +34 -3
- data/sig/openai/models/beta/beta_response_tool_search_output_item_param.rbs +24 -15
- data/sig/openai/models/beta/beta_tool.rbs +24 -15
- data/sig/openai/models/beta/persisted_agent_tool.rbs +14 -0
- data/sig/openai/models/beta/persisted_agent_tool_param.rbs +14 -0
- data/sig/openai/models/chat/chat_completion_content_part.rbs +34 -3
- data/sig/openai/models/chat/chat_completion_content_part_image.rbs +34 -3
- data/sig/openai/models/chat/chat_completion_content_part_input_audio.rbs +34 -3
- data/sig/openai/models/chat/chat_completion_content_part_text.rbs +34 -3
- data/sig/openai/models/conversations/computer_screenshot_content.rbs +34 -3
- data/sig/openai/models/decision_create_params.rbs +610 -24
- data/sig/openai/models/decision_input_json.rbs +34 -0
- data/sig/openai/models/decision_input_message.rbs +264 -35
- data/sig/openai/models/decision_input_part.rbs +3 -1
- data/sig/openai/models/decision_question_input_image.rbs +51 -0
- data/sig/openai/models/decision_question_input_part.rbs +14 -0
- data/sig/openai/models/decision_question_input_text.rbs +15 -0
- data/sig/openai/models/image_edit_params.rbs +8 -2
- data/sig/openai/models/image_generate_params.rbs +10 -4
- data/sig/openai/models/live/client_delegation.rbs +30 -3
- data/sig/openai/models/live/decision_assistant_message.rbs +134 -0
- data/sig/openai/models/live/decision_choice_option.rbs +37 -0
- data/sig/openai/models/live/decision_developer_message.rbs +67 -0
- data/sig/openai/models/live/decision_input_text.rbs +20 -0
- data/sig/openai/models/live/decision_item_create_event.rbs +413 -131
- data/sig/openai/models/live/decision_item_created_event.rbs +401 -131
- data/sig/openai/models/live/decision_json_object.rbs +9 -0
- data/sig/openai/models/live/decision_question.rbs +164 -0
- data/sig/openai/models/live/decision_stored_assistant_message.rbs +131 -0
- data/sig/openai/models/live/decision_stored_developer_message.rbs +64 -0
- data/sig/openai/models/live/decision_stored_system_message.rbs +64 -0
- data/sig/openai/models/live/decision_stored_user_message.rbs +177 -0
- data/sig/openai/models/live/decision_system_message.rbs +67 -0
- data/sig/openai/models/live/decision_trigger.rbs +8 -171
- data/sig/openai/models/live/decision_user_message.rbs +180 -0
- data/sig/openai/models/live/decisions_delegation_config.rbs +6 -167
- data/sig/openai/models/live/decisions_delegation_update_config.rbs +8 -169
- data/sig/openai/models/live/fork_session_config.rbs +26 -0
- data/sig/openai/models/live/media_session_config.rbs +53 -4
- data/sig/openai/models/live/media_session_fork_config.rbs +26 -0
- data/sig/openai/models/live/session_accept_params.rbs +53 -4
- data/sig/openai/models/live/session_config.rbs +53 -4
- data/sig/openai/models/live/session_resource.rbs +53 -4
- data/sig/openai/models/live/session_update_config.rbs +52 -0
- data/sig/openai/models/realtime/conversation_item_input_audio_transcription_delta_event.rbs +10 -12
- data/sig/openai/models/responses/response_input_file.rbs +34 -3
- data/sig/openai/models/responses/response_input_file_content.rbs +34 -3
- data/sig/openai/models/responses/response_input_image.rbs +34 -3
- data/sig/openai/models/responses/response_input_image_content.rbs +34 -3
- data/sig/openai/models/responses/response_input_text.rbs +34 -3
- data/sig/openai/models/responses/response_input_text_content.rbs +34 -3
- data/sig/openai/models/responses/response_tool_search_output_item_param.rbs +24 -15
- data/sig/openai/models/responses/tool.rbs +24 -15
- data/sig/openai/models.rbs +9 -1
- data/sig/openai/resources/beta/responses.rbs +2 -1
- data/sig/openai/resources/live/forks.rbs +2 -1
- data/sig/openai/resources/live/sideband.rbs +2 -1
- data/sig/openai/resources/live.rbs +2 -1
- data/sig/openai/resources/realtime/translations.rbs +2 -1
- data/sig/openai/resources/realtime.rbs +2 -1
- data/sig/openai/resources/responses.rbs +2 -1
- metadata +49 -1
|
@@ -33,188 +33,25 @@ module OpenAI
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
type decisions =
|
|
36
|
-
{
|
|
37
|
-
questions: ::Array[OpenAI::Models::Live::DecisionTrigger::Decisions::question]
|
|
38
|
-
}
|
|
36
|
+
{ questions: ::Array[OpenAI::Models::Live::decision_question] }
|
|
39
37
|
|
|
40
38
|
class Decisions < OpenAI::Internal::Type::BaseModel
|
|
39
|
+
type question = ::OpenAI::Models::Live::decision_question
|
|
40
|
+
|
|
41
|
+
module Question = ::OpenAI::Models::Live::DecisionQuestion
|
|
42
|
+
|
|
41
43
|
# Native Decision API questions evaluated together, in order.
|
|
42
|
-
attr_accessor questions: ::Array[OpenAI::Models::Live::
|
|
44
|
+
attr_accessor questions: ::Array[OpenAI::Models::Live::decision_question]
|
|
43
45
|
|
|
44
46
|
# @param questions
|
|
45
47
|
# Native Decision API questions evaluated together, in order.
|
|
46
48
|
def initialize: (
|
|
47
|
-
questions: ::Array[OpenAI::Models::Live::
|
|
49
|
+
questions: ::Array[OpenAI::Models::Live::decision_question]
|
|
48
50
|
) -> void
|
|
49
51
|
|
|
50
52
|
def to_hash: -> {
|
|
51
|
-
questions: ::Array[OpenAI::Models::Live::
|
|
53
|
+
questions: ::Array[OpenAI::Models::Live::decision_question]
|
|
52
54
|
}
|
|
53
|
-
|
|
54
|
-
type question =
|
|
55
|
-
OpenAI::Live::DecisionTrigger::Decisions::Question::Predicate
|
|
56
|
-
| OpenAI::Live::DecisionTrigger::Decisions::Question::Choice
|
|
57
|
-
| OpenAI::Live::DecisionTrigger::Decisions::Question::Score
|
|
58
|
-
|
|
59
|
-
module Question
|
|
60
|
-
extend OpenAI::Internal::Type::Union
|
|
61
|
-
|
|
62
|
-
type predicate =
|
|
63
|
-
{ instructions: String, ?type: :predicate, ?name: String }
|
|
64
|
-
|
|
65
|
-
class Predicate < OpenAI::Internal::Type::BaseModel
|
|
66
|
-
attr_accessor instructions: String
|
|
67
|
-
|
|
68
|
-
# The type of the object. Always `predicate`.
|
|
69
|
-
attr_accessor type: :predicate
|
|
70
|
-
|
|
71
|
-
attr_reader name: String?
|
|
72
|
-
|
|
73
|
-
def name=: (String) -> String
|
|
74
|
-
|
|
75
|
-
# @param type
|
|
76
|
-
# The type of the object. Always `predicate`.
|
|
77
|
-
def initialize: (
|
|
78
|
-
instructions: String,
|
|
79
|
-
?name: String,
|
|
80
|
-
?type: :predicate
|
|
81
|
-
) -> void
|
|
82
|
-
|
|
83
|
-
def to_hash: -> {
|
|
84
|
-
instructions: String,
|
|
85
|
-
?type: :predicate,
|
|
86
|
-
?name: String
|
|
87
|
-
}
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
type choice =
|
|
91
|
-
{
|
|
92
|
-
choices: ::Array[OpenAI::Live::DecisionTrigger::Decisions::Question::Choice::Choice],
|
|
93
|
-
instructions: String,
|
|
94
|
-
?type: :choice,
|
|
95
|
-
?name: String
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
class Choice < OpenAI::Internal::Type::BaseModel
|
|
99
|
-
# Provide between 2 and 255 choices. Each choice must be unique.
|
|
100
|
-
attr_accessor choices: ::Array[OpenAI::Live::DecisionTrigger::Decisions::Question::Choice::Choice]
|
|
101
|
-
|
|
102
|
-
attr_accessor instructions: String
|
|
103
|
-
|
|
104
|
-
# The type of the object. Always `choice`.
|
|
105
|
-
attr_accessor type: :choice
|
|
106
|
-
|
|
107
|
-
attr_reader name: String?
|
|
108
|
-
|
|
109
|
-
def name=: (String) -> String
|
|
110
|
-
|
|
111
|
-
# @param choices
|
|
112
|
-
# Provide between 2 and 255 choices. Each choice must be unique.
|
|
113
|
-
# @param type
|
|
114
|
-
# The type of the object. Always `choice`.
|
|
115
|
-
def initialize: (
|
|
116
|
-
choices: ::Array[OpenAI::Live::DecisionTrigger::Decisions::Question::Choice::Choice],
|
|
117
|
-
instructions: String,
|
|
118
|
-
?name: String,
|
|
119
|
-
?type: :choice
|
|
120
|
-
) -> void
|
|
121
|
-
|
|
122
|
-
def to_hash: -> {
|
|
123
|
-
choices: ::Array[OpenAI::Live::DecisionTrigger::Decisions::Question::Choice::Choice],
|
|
124
|
-
instructions: String,
|
|
125
|
-
?type: :choice,
|
|
126
|
-
?name: String
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
type choice =
|
|
130
|
-
{
|
|
131
|
-
value: OpenAI::Models::Live::DecisionTrigger::Decisions::Question::Choice::Choice::value,
|
|
132
|
-
?description: String
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
class Choice < OpenAI::Internal::Type::BaseModel
|
|
136
|
-
# Choice values are typed: a string and a boolean with the same text are distinct.
|
|
137
|
-
attr_accessor value: OpenAI::Models::Live::DecisionTrigger::Decisions::Question::Choice::Choice::value
|
|
138
|
-
|
|
139
|
-
attr_reader description: String?
|
|
140
|
-
|
|
141
|
-
def description=: (String) -> String
|
|
142
|
-
|
|
143
|
-
# @param value
|
|
144
|
-
# Choice values are typed: a string and a boolean with the same text are distinct.
|
|
145
|
-
def initialize: (
|
|
146
|
-
value: OpenAI::Models::Live::DecisionTrigger::Decisions::Question::Choice::Choice::value,
|
|
147
|
-
?description: String
|
|
148
|
-
) -> void
|
|
149
|
-
|
|
150
|
-
def to_hash: -> {
|
|
151
|
-
value: OpenAI::Models::Live::DecisionTrigger::Decisions::Question::Choice::Choice::value,
|
|
152
|
-
?description: String
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
type value = String | bool
|
|
156
|
-
|
|
157
|
-
module Value
|
|
158
|
-
extend OpenAI::Internal::Type::Union
|
|
159
|
-
|
|
160
|
-
def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionTrigger::Decisions::Question::Choice::Choice::value]
|
|
161
|
-
end
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
type score =
|
|
166
|
-
{
|
|
167
|
-
instructions: String,
|
|
168
|
-
levels: ::Array[OpenAI::Live::DecisionTrigger::Decisions::Question::Score::Level],
|
|
169
|
-
?type: :score,
|
|
170
|
-
?name: String
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
class Score < OpenAI::Internal::Type::BaseModel
|
|
174
|
-
attr_accessor instructions: String
|
|
175
|
-
|
|
176
|
-
attr_accessor levels: ::Array[OpenAI::Live::DecisionTrigger::Decisions::Question::Score::Level]
|
|
177
|
-
|
|
178
|
-
# The type of the object. Always `score`.
|
|
179
|
-
attr_accessor type: :score
|
|
180
|
-
|
|
181
|
-
attr_reader name: String?
|
|
182
|
-
|
|
183
|
-
def name=: (String) -> String
|
|
184
|
-
|
|
185
|
-
# @param type
|
|
186
|
-
# The type of the object. Always `score`.
|
|
187
|
-
def initialize: (
|
|
188
|
-
instructions: String,
|
|
189
|
-
levels: ::Array[OpenAI::Live::DecisionTrigger::Decisions::Question::Score::Level],
|
|
190
|
-
?name: String,
|
|
191
|
-
?type: :score
|
|
192
|
-
) -> void
|
|
193
|
-
|
|
194
|
-
def to_hash: -> {
|
|
195
|
-
instructions: String,
|
|
196
|
-
levels: ::Array[OpenAI::Live::DecisionTrigger::Decisions::Question::Score::Level],
|
|
197
|
-
?type: :score,
|
|
198
|
-
?name: String
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
type level = { label: String, ?description: String }
|
|
202
|
-
|
|
203
|
-
class Level < OpenAI::Internal::Type::BaseModel
|
|
204
|
-
attr_accessor label: String
|
|
205
|
-
|
|
206
|
-
attr_reader description: String?
|
|
207
|
-
|
|
208
|
-
def description=: (String) -> String
|
|
209
|
-
|
|
210
|
-
def initialize: (label: String, ?description: String) -> void
|
|
211
|
-
|
|
212
|
-
def to_hash: -> { label: String, ?description: String }
|
|
213
|
-
end
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionTrigger::Decisions::question]
|
|
217
|
-
end
|
|
218
55
|
end
|
|
219
56
|
|
|
220
57
|
type event_type =
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Live
|
|
4
|
+
type decision_user_message =
|
|
5
|
+
{
|
|
6
|
+
content: OpenAI::Models::Live::DecisionUserMessage::content,
|
|
7
|
+
?role: :user,
|
|
8
|
+
?id: String?,
|
|
9
|
+
?type: OpenAI::Models::Live::DecisionUserMessage::type_
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class DecisionUserMessage < OpenAI::Internal::Type::BaseModel
|
|
13
|
+
# The text input to the model.
|
|
14
|
+
attr_accessor content: OpenAI::Models::Live::DecisionUserMessage::content
|
|
15
|
+
|
|
16
|
+
# The message role. Always `user`.
|
|
17
|
+
attr_accessor role: :user
|
|
18
|
+
|
|
19
|
+
# The unique ID of this message item.
|
|
20
|
+
attr_accessor id: String?
|
|
21
|
+
|
|
22
|
+
attr_reader type: OpenAI::Models::Live::DecisionUserMessage::type_?
|
|
23
|
+
|
|
24
|
+
def type=: (
|
|
25
|
+
OpenAI::Models::Live::DecisionUserMessage::type_
|
|
26
|
+
) -> OpenAI::Models::Live::DecisionUserMessage::type_
|
|
27
|
+
|
|
28
|
+
# @param content
|
|
29
|
+
# The text input to the model.
|
|
30
|
+
# @param id
|
|
31
|
+
# The unique ID of this message item.
|
|
32
|
+
# @param role
|
|
33
|
+
# The message role. Always `user`.
|
|
34
|
+
def initialize: (
|
|
35
|
+
content: OpenAI::Models::Live::DecisionUserMessage::content,
|
|
36
|
+
?id: String?,
|
|
37
|
+
?type: OpenAI::Models::Live::DecisionUserMessage::type_,
|
|
38
|
+
?role: :user
|
|
39
|
+
) -> void
|
|
40
|
+
|
|
41
|
+
def to_hash: -> {
|
|
42
|
+
content: OpenAI::Models::Live::DecisionUserMessage::content,
|
|
43
|
+
?role: :user,
|
|
44
|
+
?id: String?,
|
|
45
|
+
?type: OpenAI::Models::Live::DecisionUserMessage::type_
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
type content =
|
|
49
|
+
String
|
|
50
|
+
| ::Array[OpenAI::Models::Live::DecisionUserMessage::Content::part]
|
|
51
|
+
|
|
52
|
+
module Content
|
|
53
|
+
extend OpenAI::Internal::Type::Union
|
|
54
|
+
|
|
55
|
+
type part =
|
|
56
|
+
OpenAI::Live::DecisionUserMessage::Content::Part::InputText
|
|
57
|
+
| OpenAI::Live::DecisionUserMessage::Content::Part::InputImage
|
|
58
|
+
| OpenAI::Live::DecisionUserMessage::Content::Part::InputJSON
|
|
59
|
+
|
|
60
|
+
module Part
|
|
61
|
+
extend OpenAI::Internal::Type::Union
|
|
62
|
+
|
|
63
|
+
type input_text = { text: String, ?type: :input_text }
|
|
64
|
+
|
|
65
|
+
class InputText < OpenAI::Internal::Type::BaseModel
|
|
66
|
+
# The text input to the model.
|
|
67
|
+
attr_accessor text: String
|
|
68
|
+
|
|
69
|
+
attr_accessor type: :input_text
|
|
70
|
+
|
|
71
|
+
# @param text
|
|
72
|
+
# The text input to the model.
|
|
73
|
+
def initialize: (text: String, ?type: :input_text) -> void
|
|
74
|
+
|
|
75
|
+
def to_hash: -> { text: String, ?type: :input_text }
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
type input_image =
|
|
79
|
+
{
|
|
80
|
+
image_url: String,
|
|
81
|
+
?type: :input_image,
|
|
82
|
+
?detail: OpenAI::Models::Live::DecisionUserMessage::Content::Part::InputImage::detail?
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
class InputImage < OpenAI::Internal::Type::BaseModel
|
|
86
|
+
# A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.
|
|
87
|
+
attr_accessor image_url: String
|
|
88
|
+
|
|
89
|
+
attr_accessor type: :input_image
|
|
90
|
+
|
|
91
|
+
# The detail level of the image to be sent to the model. One of `high`, `low`,
|
|
92
|
+
# `auto`, or `original`. Defaults to `auto`.
|
|
93
|
+
attr_accessor detail: OpenAI::Models::Live::DecisionUserMessage::Content::Part::InputImage::detail?
|
|
94
|
+
|
|
95
|
+
# @param image_url
|
|
96
|
+
# A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.
|
|
97
|
+
# @param detail
|
|
98
|
+
# The detail level of the image to be sent to the model. One of `high`, `low`,
|
|
99
|
+
# `auto`, or `original`. Defaults to `auto`.
|
|
100
|
+
def initialize: (
|
|
101
|
+
image_url: String,
|
|
102
|
+
?detail: OpenAI::Models::Live::DecisionUserMessage::Content::Part::InputImage::detail?,
|
|
103
|
+
?type: :input_image
|
|
104
|
+
) -> void
|
|
105
|
+
|
|
106
|
+
def to_hash: -> {
|
|
107
|
+
image_url: String,
|
|
108
|
+
?type: :input_image,
|
|
109
|
+
?detail: OpenAI::Models::Live::DecisionUserMessage::Content::Part::InputImage::detail?
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
type detail = :low | :high | :auto | :original
|
|
113
|
+
|
|
114
|
+
module Detail
|
|
115
|
+
extend OpenAI::Internal::Type::Enum
|
|
116
|
+
|
|
117
|
+
LOW: :low
|
|
118
|
+
HIGH: :high
|
|
119
|
+
AUTO: :auto
|
|
120
|
+
ORIGINAL: :original
|
|
121
|
+
|
|
122
|
+
def self?.values: -> ::Array[OpenAI::Models::Live::DecisionUserMessage::Content::Part::InputImage::detail]
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
type input_json =
|
|
127
|
+
{
|
|
128
|
+
data: OpenAI::Models::Live::DecisionUserMessage::Content::Part::InputJSON::data,
|
|
129
|
+
?type: :input_json
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
class InputJSON < OpenAI::Internal::Type::BaseModel
|
|
133
|
+
attr_accessor data: OpenAI::Models::Live::DecisionUserMessage::Content::Part::InputJSON::data
|
|
134
|
+
|
|
135
|
+
attr_accessor type: :input_json
|
|
136
|
+
|
|
137
|
+
def initialize: (
|
|
138
|
+
data: OpenAI::Models::Live::DecisionUserMessage::Content::Part::InputJSON::data,
|
|
139
|
+
?type: :input_json
|
|
140
|
+
) -> void
|
|
141
|
+
|
|
142
|
+
def to_hash: -> {
|
|
143
|
+
data: OpenAI::Models::Live::DecisionUserMessage::Content::Part::InputJSON::data,
|
|
144
|
+
?type: :input_json
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
type data =
|
|
148
|
+
OpenAI::Models::Live::decision_json_object
|
|
149
|
+
| ::Array[OpenAI::Models::Live::decision_json_object]
|
|
150
|
+
|
|
151
|
+
module Data
|
|
152
|
+
extend OpenAI::Internal::Type::Union
|
|
153
|
+
|
|
154
|
+
def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionUserMessage::Content::Part::InputJSON::data]
|
|
155
|
+
|
|
156
|
+
DecisionJSONObjectArray: OpenAI::Internal::Type::Converter
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionUserMessage::Content::part]
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionUserMessage::content]
|
|
164
|
+
|
|
165
|
+
PartsArray: OpenAI::Internal::Type::Converter
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
type type_ = :message
|
|
169
|
+
|
|
170
|
+
module Type
|
|
171
|
+
extend OpenAI::Internal::Type::Enum
|
|
172
|
+
|
|
173
|
+
MESSAGE: :message
|
|
174
|
+
|
|
175
|
+
def self?.values: -> ::Array[OpenAI::Models::Live::DecisionUserMessage::type_]
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
end
|
|
@@ -4,191 +4,30 @@ module OpenAI
|
|
|
4
4
|
type decisions_delegation_config =
|
|
5
5
|
{
|
|
6
6
|
model: String,
|
|
7
|
-
questions: ::Array[OpenAI::Models::Live::
|
|
7
|
+
questions: ::Array[OpenAI::Models::Live::decision_question]
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
class DecisionsDelegationConfig < OpenAI::Internal::Type::BaseModel
|
|
11
11
|
attr_accessor model: String
|
|
12
12
|
|
|
13
13
|
# Native Decision API questions evaluated together, in order.
|
|
14
|
-
attr_accessor questions: ::Array[OpenAI::Models::Live::
|
|
14
|
+
attr_accessor questions: ::Array[OpenAI::Models::Live::decision_question]
|
|
15
15
|
|
|
16
16
|
# @param questions
|
|
17
17
|
# Native Decision API questions evaluated together, in order.
|
|
18
18
|
def initialize: (
|
|
19
19
|
model: String,
|
|
20
|
-
questions: ::Array[OpenAI::Models::Live::
|
|
20
|
+
questions: ::Array[OpenAI::Models::Live::decision_question]
|
|
21
21
|
) -> void
|
|
22
22
|
|
|
23
23
|
def to_hash: -> {
|
|
24
24
|
model: String,
|
|
25
|
-
questions: ::Array[OpenAI::Models::Live::
|
|
25
|
+
questions: ::Array[OpenAI::Models::Live::decision_question]
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
type question =
|
|
29
|
-
OpenAI::Live::DecisionsDelegationConfig::Question::Predicate
|
|
30
|
-
| OpenAI::Live::DecisionsDelegationConfig::Question::Choice
|
|
31
|
-
| OpenAI::Live::DecisionsDelegationConfig::Question::Score
|
|
28
|
+
type question = ::OpenAI::Models::Live::decision_question
|
|
32
29
|
|
|
33
|
-
module Question
|
|
34
|
-
extend OpenAI::Internal::Type::Union
|
|
35
|
-
|
|
36
|
-
type predicate =
|
|
37
|
-
{ instructions: String, ?type: :predicate, ?name: String }
|
|
38
|
-
|
|
39
|
-
class Predicate < OpenAI::Internal::Type::BaseModel
|
|
40
|
-
attr_accessor instructions: String
|
|
41
|
-
|
|
42
|
-
# The type of the object. Always `predicate`.
|
|
43
|
-
attr_accessor type: :predicate
|
|
44
|
-
|
|
45
|
-
attr_reader name: String?
|
|
46
|
-
|
|
47
|
-
def name=: (String) -> String
|
|
48
|
-
|
|
49
|
-
# @param type
|
|
50
|
-
# The type of the object. Always `predicate`.
|
|
51
|
-
def initialize: (
|
|
52
|
-
instructions: String,
|
|
53
|
-
?name: String,
|
|
54
|
-
?type: :predicate
|
|
55
|
-
) -> void
|
|
56
|
-
|
|
57
|
-
def to_hash: -> {
|
|
58
|
-
instructions: String,
|
|
59
|
-
?type: :predicate,
|
|
60
|
-
?name: String
|
|
61
|
-
}
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
type choice =
|
|
65
|
-
{
|
|
66
|
-
choices: ::Array[OpenAI::Live::DecisionsDelegationConfig::Question::Choice::Choice],
|
|
67
|
-
instructions: String,
|
|
68
|
-
?type: :choice,
|
|
69
|
-
?name: String
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
class Choice < OpenAI::Internal::Type::BaseModel
|
|
73
|
-
# Provide between 2 and 255 choices. Each choice must be unique.
|
|
74
|
-
attr_accessor choices: ::Array[OpenAI::Live::DecisionsDelegationConfig::Question::Choice::Choice]
|
|
75
|
-
|
|
76
|
-
attr_accessor instructions: String
|
|
77
|
-
|
|
78
|
-
# The type of the object. Always `choice`.
|
|
79
|
-
attr_accessor type: :choice
|
|
80
|
-
|
|
81
|
-
attr_reader name: String?
|
|
82
|
-
|
|
83
|
-
def name=: (String) -> String
|
|
84
|
-
|
|
85
|
-
# @param choices
|
|
86
|
-
# Provide between 2 and 255 choices. Each choice must be unique.
|
|
87
|
-
# @param type
|
|
88
|
-
# The type of the object. Always `choice`.
|
|
89
|
-
def initialize: (
|
|
90
|
-
choices: ::Array[OpenAI::Live::DecisionsDelegationConfig::Question::Choice::Choice],
|
|
91
|
-
instructions: String,
|
|
92
|
-
?name: String,
|
|
93
|
-
?type: :choice
|
|
94
|
-
) -> void
|
|
95
|
-
|
|
96
|
-
def to_hash: -> {
|
|
97
|
-
choices: ::Array[OpenAI::Live::DecisionsDelegationConfig::Question::Choice::Choice],
|
|
98
|
-
instructions: String,
|
|
99
|
-
?type: :choice,
|
|
100
|
-
?name: String
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
type choice =
|
|
104
|
-
{
|
|
105
|
-
value: OpenAI::Models::Live::DecisionsDelegationConfig::Question::Choice::Choice::value,
|
|
106
|
-
?description: String
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
class Choice < OpenAI::Internal::Type::BaseModel
|
|
110
|
-
# Choice values are typed: a string and a boolean with the same text are distinct.
|
|
111
|
-
attr_accessor value: OpenAI::Models::Live::DecisionsDelegationConfig::Question::Choice::Choice::value
|
|
112
|
-
|
|
113
|
-
attr_reader description: String?
|
|
114
|
-
|
|
115
|
-
def description=: (String) -> String
|
|
116
|
-
|
|
117
|
-
# @param value
|
|
118
|
-
# Choice values are typed: a string and a boolean with the same text are distinct.
|
|
119
|
-
def initialize: (
|
|
120
|
-
value: OpenAI::Models::Live::DecisionsDelegationConfig::Question::Choice::Choice::value,
|
|
121
|
-
?description: String
|
|
122
|
-
) -> void
|
|
123
|
-
|
|
124
|
-
def to_hash: -> {
|
|
125
|
-
value: OpenAI::Models::Live::DecisionsDelegationConfig::Question::Choice::Choice::value,
|
|
126
|
-
?description: String
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
type value = String | bool
|
|
130
|
-
|
|
131
|
-
module Value
|
|
132
|
-
extend OpenAI::Internal::Type::Union
|
|
133
|
-
|
|
134
|
-
def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionsDelegationConfig::Question::Choice::Choice::value]
|
|
135
|
-
end
|
|
136
|
-
end
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
type score =
|
|
140
|
-
{
|
|
141
|
-
instructions: String,
|
|
142
|
-
levels: ::Array[OpenAI::Live::DecisionsDelegationConfig::Question::Score::Level],
|
|
143
|
-
?type: :score,
|
|
144
|
-
?name: String
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
class Score < OpenAI::Internal::Type::BaseModel
|
|
148
|
-
attr_accessor instructions: String
|
|
149
|
-
|
|
150
|
-
attr_accessor levels: ::Array[OpenAI::Live::DecisionsDelegationConfig::Question::Score::Level]
|
|
151
|
-
|
|
152
|
-
# The type of the object. Always `score`.
|
|
153
|
-
attr_accessor type: :score
|
|
154
|
-
|
|
155
|
-
attr_reader name: String?
|
|
156
|
-
|
|
157
|
-
def name=: (String) -> String
|
|
158
|
-
|
|
159
|
-
# @param type
|
|
160
|
-
# The type of the object. Always `score`.
|
|
161
|
-
def initialize: (
|
|
162
|
-
instructions: String,
|
|
163
|
-
levels: ::Array[OpenAI::Live::DecisionsDelegationConfig::Question::Score::Level],
|
|
164
|
-
?name: String,
|
|
165
|
-
?type: :score
|
|
166
|
-
) -> void
|
|
167
|
-
|
|
168
|
-
def to_hash: -> {
|
|
169
|
-
instructions: String,
|
|
170
|
-
levels: ::Array[OpenAI::Live::DecisionsDelegationConfig::Question::Score::Level],
|
|
171
|
-
?type: :score,
|
|
172
|
-
?name: String
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
type level = { label: String, ?description: String }
|
|
176
|
-
|
|
177
|
-
class Level < OpenAI::Internal::Type::BaseModel
|
|
178
|
-
attr_accessor label: String
|
|
179
|
-
|
|
180
|
-
attr_reader description: String?
|
|
181
|
-
|
|
182
|
-
def description=: (String) -> String
|
|
183
|
-
|
|
184
|
-
def initialize: (label: String, ?description: String) -> void
|
|
185
|
-
|
|
186
|
-
def to_hash: -> { label: String, ?description: String }
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
def self?.variants: -> ::Array[OpenAI::Models::Live::DecisionsDelegationConfig::question]
|
|
191
|
-
end
|
|
30
|
+
module Question = ::OpenAI::Models::Live::DecisionQuestion
|
|
192
31
|
end
|
|
193
32
|
end
|
|
194
33
|
end
|