openai 0.119.0 → 0.121.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 +26 -0
- data/README.md +1 -1
- data/lib/openai/models/all_models.rb +1 -0
- data/lib/openai/models/beta/agents/automation.rb +27 -0
- data/lib/openai/models/beta/agents/automation_agent_config.rb +142 -0
- data/lib/openai/models/beta/agents/automation_create_params.rb +27 -0
- data/lib/openai/models/beta/agents/automation_created_by.rb +65 -0
- data/lib/openai/models/beta/agents/automation_delete_params.rb +24 -0
- data/lib/openai/models/beta/agents/automation_deleted.rb +40 -0
- data/lib/openai/models/beta/agents/automation_environment.rb +484 -0
- data/lib/openai/models/beta/agents/automation_list_params.rb +68 -0
- data/lib/openai/models/beta/agents/automation_pause_params.rb +24 -0
- data/lib/openai/models/beta/agents/automation_resume_params.rb +24 -0
- data/lib/openai/models/beta/agents/automation_retrieve_params.rb +24 -0
- data/lib/openai/models/beta/agents/automation_schedule_param.rb +124 -0
- data/lib/openai/models/beta/agents/automation_target.rb +153 -0
- data/lib/openai/models/beta/agents/automation_target_param.rb +312 -0
- data/lib/openai/models/beta/agents/automation_update_params.rb +79 -0
- data/lib/openai/models/beta/agents/automations/automation_invocation.rb +148 -0
- data/lib/openai/models/beta/agents/automations/automation_invocation_source.rb +59 -0
- data/lib/openai/models/beta/agents/automations/invocation_create_params.rb +26 -0
- data/lib/openai/models/beta/agents/automations/invocation_list_params.rb +68 -0
- data/lib/openai/models/beta/agents/automations/invocation_retrieve_params.rb +32 -0
- data/lib/openai/models/beta/agents/environments/file_create_params.rb +11 -1
- data/lib/openai/models/beta/agents/one_time_automation.rb +118 -0
- data/lib/openai/models/beta/agents/periodic_automation.rb +126 -0
- data/lib/openai/models/beta/beta_response.rb +3 -0
- data/lib/openai/models/beta/beta_responses_client_event.rb +6 -0
- data/lib/openai/models/beta/response_compact_params.rb +6 -0
- data/lib/openai/models/beta/response_create_params.rb +6 -0
- data/lib/openai/models/responses/response_compact_params.rb +3 -0
- data/lib/openai/models/responses_model.rb +1 -0
- data/lib/openai/resources/beta/agents/automations/invocations.rb +103 -0
- data/lib/openai/resources/beta/agents/automations.rb +211 -0
- data/lib/openai/resources/beta/agents.rb +4 -0
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +24 -0
- data/rbi/openai/models/all_models.rbi +1 -0
- data/rbi/openai/models/beta/agents/automation.rbi +32 -0
- data/rbi/openai/models/beta/agents/automation_agent_config.rbi +255 -0
- data/rbi/openai/models/beta/agents/automation_create_params.rbi +75 -0
- data/rbi/openai/models/beta/agents/automation_created_by.rbi +124 -0
- data/rbi/openai/models/beta/agents/automation_delete_params.rbi +57 -0
- data/rbi/openai/models/beta/agents/automation_deleted.rbi +71 -0
- data/rbi/openai/models/beta/agents/automation_environment.rbi +795 -0
- data/rbi/openai/models/beta/agents/automation_list_params.rbi +122 -0
- data/rbi/openai/models/beta/agents/automation_pause_params.rbi +57 -0
- data/rbi/openai/models/beta/agents/automation_resume_params.rbi +57 -0
- data/rbi/openai/models/beta/agents/automation_retrieve_params.rbi +57 -0
- data/rbi/openai/models/beta/agents/automation_schedule_param.rbi +228 -0
- data/rbi/openai/models/beta/agents/automation_target.rbi +250 -0
- data/rbi/openai/models/beta/agents/automation_target_param.rbi +564 -0
- data/rbi/openai/models/beta/agents/automation_update_params.rbi +161 -0
- data/rbi/openai/models/beta/agents/automations/automation_invocation.rbi +233 -0
- data/rbi/openai/models/beta/agents/automations/automation_invocation_source.rbi +123 -0
- data/rbi/openai/models/beta/agents/automations/invocation_create_params.rbi +61 -0
- data/rbi/openai/models/beta/agents/automations/invocation_list_params.rbi +125 -0
- data/rbi/openai/models/beta/agents/automations/invocation_retrieve_params.rbi +68 -0
- data/rbi/openai/models/beta/agents/environments/file_create_params.rbi +27 -1
- data/rbi/openai/models/beta/agents/one_time_automation.rbi +168 -0
- data/rbi/openai/models/beta/agents/periodic_automation.rbi +177 -0
- data/rbi/openai/models/beta/beta_response.rbi +1 -0
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +8 -0
- data/rbi/openai/models/beta/response_compact_params.rbi +2 -0
- data/rbi/openai/models/beta/response_create_params.rbi +2 -0
- data/rbi/openai/models/responses/response_compact_params.rbi +1 -0
- data/rbi/openai/models/responses_model.rbi +1 -0
- data/rbi/openai/resources/beta/agents/automations/invocations.rbi +67 -0
- data/rbi/openai/resources/beta/agents/automations.rbi +141 -0
- data/rbi/openai/resources/beta/agents.rbi +3 -0
- data/sig/openai/models/all_models.rbs +2 -0
- data/sig/openai/models/beta/agent_session_turn_reasoning_summary_part_done_event.rbs +1 -4
- data/sig/openai/models/beta/agents/automation.rbs +17 -0
- data/sig/openai/models/beta/agents/automation_agent_config.rbs +143 -0
- data/sig/openai/models/beta/agents/automation_create_params.rbs +33 -0
- data/sig/openai/models/beta/agents/automation_created_by.rbs +62 -0
- data/sig/openai/models/beta/agents/automation_delete_params.rbs +27 -0
- data/sig/openai/models/beta/agents/automation_deleted.rbs +39 -0
- data/sig/openai/models/beta/agents/automation_environment.rbs +428 -0
- data/sig/openai/models/beta/agents/automation_list_params.rbs +85 -0
- data/sig/openai/models/beta/agents/automation_pause_params.rbs +27 -0
- data/sig/openai/models/beta/agents/automation_resume_params.rbs +27 -0
- data/sig/openai/models/beta/agents/automation_retrieve_params.rbs +27 -0
- data/sig/openai/models/beta/agents/automation_schedule_param.rbs +127 -0
- data/sig/openai/models/beta/agents/automation_target.rbs +157 -0
- data/sig/openai/models/beta/agents/automation_target_param.rbs +299 -0
- data/sig/openai/models/beta/agents/automation_update_params.rbs +97 -0
- data/sig/openai/models/beta/agents/automations/automation_invocation.rbs +134 -0
- data/sig/openai/models/beta/agents/automations/automation_invocation_source.rbs +62 -0
- data/sig/openai/models/beta/agents/automations/invocation_create_params.rbs +29 -0
- data/sig/openai/models/beta/agents/automations/invocation_list_params.rbs +81 -0
- data/sig/openai/models/beta/agents/automations/invocation_retrieve_params.rbs +37 -0
- data/sig/openai/models/beta/agents/environments/file_create_params.rbs +12 -1
- data/sig/openai/models/beta/agents/one_time_automation.rbs +111 -0
- data/sig/openai/models/beta/agents/periodic_automation.rbs +118 -0
- data/sig/openai/models/beta/beta_response.rbs +2 -0
- data/sig/openai/models/beta/beta_responses_client_event.rbs +4 -0
- data/sig/openai/models/beta/response_compact_params.rbs +4 -0
- data/sig/openai/models/beta/response_create_params.rbs +4 -0
- data/sig/openai/models/responses/response_compact_params.rbs +2 -0
- data/sig/openai/models/responses_model.rbs +2 -0
- data/sig/openai/resources/beta/agents/automations/invocations.rbs +32 -0
- data/sig/openai/resources/beta/agents/automations.rbs +57 -0
- data/sig/openai/resources/beta/agents.rbs +2 -0
- metadata +73 -1
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
module Automations
|
|
8
|
+
# @see OpenAI::Resources::Beta::Agents::Automations::Invocations#create
|
|
9
|
+
class AutomationInvocation < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute id
|
|
11
|
+
# The invocation ID.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute automation_id
|
|
17
|
+
# The automation that owns the invocation.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :automation_id, String
|
|
21
|
+
|
|
22
|
+
# @!attribute created_at
|
|
23
|
+
# The creation time as a Unix timestamp in seconds.
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer]
|
|
26
|
+
required :created_at, Integer
|
|
27
|
+
|
|
28
|
+
# @!attribute error
|
|
29
|
+
# The permanent delivery failure, or null when no failure occurred.
|
|
30
|
+
#
|
|
31
|
+
# @return [OpenAI::Models::Beta::Agents::Automations::AutomationInvocation::Error, nil]
|
|
32
|
+
required :error, -> { OpenAI::Beta::Agents::Automations::AutomationInvocation::Error }, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute object
|
|
35
|
+
# Always `agent.automation.invocation`.
|
|
36
|
+
#
|
|
37
|
+
# @return [Symbol, :"agent.automation.invocation"]
|
|
38
|
+
required :object, const: :"agent.automation.invocation"
|
|
39
|
+
|
|
40
|
+
# @!attribute scheduled_at
|
|
41
|
+
# The intended occurrence as a Unix timestamp in seconds, or null for manual runs.
|
|
42
|
+
#
|
|
43
|
+
# @return [Integer, nil]
|
|
44
|
+
required :scheduled_at, Integer, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!attribute session_id
|
|
47
|
+
# The target or newly created session ID, or null before one is available.
|
|
48
|
+
#
|
|
49
|
+
# @return [String, nil]
|
|
50
|
+
required :session_id, String, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!attribute skip_reason
|
|
53
|
+
# Why an occurrence was skipped, or null when it was not skipped.
|
|
54
|
+
#
|
|
55
|
+
# @return [Symbol, :pending_delivery, nil]
|
|
56
|
+
required :skip_reason, const: :pending_delivery, nil?: true
|
|
57
|
+
|
|
58
|
+
# @!attribute source
|
|
59
|
+
# Whether the invocation was manual or scheduled.
|
|
60
|
+
#
|
|
61
|
+
# @return [OpenAI::Models::Beta::Agents::Automations::AutomationInvocationSource::Manual, OpenAI::Models::Beta::Agents::Automations::AutomationInvocationSource::Automation]
|
|
62
|
+
required :source, union: -> { OpenAI::Beta::Agents::Automations::AutomationInvocationSource }
|
|
63
|
+
|
|
64
|
+
# @!attribute status
|
|
65
|
+
# Delivery status; completed does not mean the agent's work has finished.
|
|
66
|
+
#
|
|
67
|
+
# @return [Symbol, OpenAI::Models::Beta::Agents::Automations::AutomationInvocation::Status]
|
|
68
|
+
required :status, enum: -> { OpenAI::Beta::Agents::Automations::AutomationInvocation::Status }
|
|
69
|
+
|
|
70
|
+
# @!method initialize(id:, automation_id:, created_at:, error:, scheduled_at:, session_id:, source:, status:, object: :"agent.automation.invocation", skip_reason: :pending_delivery)
|
|
71
|
+
# One attempted delivery by an automation.
|
|
72
|
+
#
|
|
73
|
+
# @param id [String]
|
|
74
|
+
# The invocation ID.
|
|
75
|
+
#
|
|
76
|
+
# @param automation_id [String]
|
|
77
|
+
# The automation that owns the invocation.
|
|
78
|
+
#
|
|
79
|
+
# @param created_at [Integer]
|
|
80
|
+
# The creation time as a Unix timestamp in seconds.
|
|
81
|
+
#
|
|
82
|
+
# @param error [OpenAI::Models::Beta::Agents::Automations::AutomationInvocation::Error, nil]
|
|
83
|
+
# The permanent delivery failure, or null when no failure occurred.
|
|
84
|
+
#
|
|
85
|
+
# @param scheduled_at [Integer, nil]
|
|
86
|
+
# The intended occurrence as a Unix timestamp in seconds, or null for manual runs.
|
|
87
|
+
#
|
|
88
|
+
# @param session_id [String, nil]
|
|
89
|
+
# The target or newly created session ID, or null before one is available.
|
|
90
|
+
#
|
|
91
|
+
# @param source [OpenAI::Models::Beta::Agents::Automations::AutomationInvocationSource::Manual, OpenAI::Models::Beta::Agents::Automations::AutomationInvocationSource::Automation]
|
|
92
|
+
# Whether the invocation was manual or scheduled.
|
|
93
|
+
#
|
|
94
|
+
# @param status [Symbol, OpenAI::Models::Beta::Agents::Automations::AutomationInvocation::Status]
|
|
95
|
+
# Delivery status; completed does not mean the agent's work has finished.
|
|
96
|
+
#
|
|
97
|
+
# @param object [Symbol, :"agent.automation.invocation"]
|
|
98
|
+
# Always `agent.automation.invocation`.
|
|
99
|
+
#
|
|
100
|
+
# @param skip_reason [Symbol, :pending_delivery, nil]
|
|
101
|
+
# Why an occurrence was skipped, or null when it was not skipped.
|
|
102
|
+
|
|
103
|
+
# @see OpenAI::Models::Beta::Agents::Automations::AutomationInvocation#error
|
|
104
|
+
class Error < OpenAI::Internal::Type::BaseModel
|
|
105
|
+
# @!attribute code
|
|
106
|
+
# A machine-readable error code.
|
|
107
|
+
#
|
|
108
|
+
# @return [String]
|
|
109
|
+
required :code, String
|
|
110
|
+
|
|
111
|
+
# @!attribute message
|
|
112
|
+
# A public explanation of the delivery failure.
|
|
113
|
+
#
|
|
114
|
+
# @return [String]
|
|
115
|
+
required :message, String
|
|
116
|
+
|
|
117
|
+
# @!method initialize(code:, message:)
|
|
118
|
+
# The permanent delivery failure, or null when no failure occurred.
|
|
119
|
+
#
|
|
120
|
+
# @param code [String]
|
|
121
|
+
# A machine-readable error code.
|
|
122
|
+
#
|
|
123
|
+
# @param message [String]
|
|
124
|
+
# A public explanation of the delivery failure.
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Delivery status; completed does not mean the agent's work has finished.
|
|
128
|
+
#
|
|
129
|
+
# @see OpenAI::Models::Beta::Agents::Automations::AutomationInvocation#status
|
|
130
|
+
module Status
|
|
131
|
+
extend OpenAI::Internal::Type::Enum
|
|
132
|
+
|
|
133
|
+
QUEUED = :queued
|
|
134
|
+
COMPLETED = :completed
|
|
135
|
+
FAILED = :failed
|
|
136
|
+
SKIPPED = :skipped
|
|
137
|
+
|
|
138
|
+
# @!method self.values
|
|
139
|
+
# @return [Array<Symbol>]
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
AutomationInvocation = Automations::AutomationInvocation
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
module Automations
|
|
8
|
+
module AutomationInvocationSource
|
|
9
|
+
extend OpenAI::Internal::Type::Union
|
|
10
|
+
|
|
11
|
+
discriminator :type
|
|
12
|
+
|
|
13
|
+
variant :manual, -> { OpenAI::Beta::Agents::Automations::AutomationInvocationSource::Manual }
|
|
14
|
+
|
|
15
|
+
variant :automation, -> { OpenAI::Beta::Agents::Automations::AutomationInvocationSource::Automation }
|
|
16
|
+
|
|
17
|
+
class Manual < OpenAI::Internal::Type::BaseModel
|
|
18
|
+
# @!attribute type
|
|
19
|
+
# The type of the object. Always `manual`.
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, :manual]
|
|
22
|
+
required :type, const: :manual
|
|
23
|
+
|
|
24
|
+
# @!method initialize(type: :manual)
|
|
25
|
+
# @param type [Symbol, :manual]
|
|
26
|
+
# The type of the object. Always `manual`.
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
class Automation < OpenAI::Internal::Type::BaseModel
|
|
30
|
+
# @!attribute automation
|
|
31
|
+
# The automation snapshot for this occurrence, excluding confidential values.
|
|
32
|
+
#
|
|
33
|
+
# @return [OpenAI::Models::Beta::Agents::PeriodicAutomation, OpenAI::Models::Beta::Agents::OneTimeAutomation]
|
|
34
|
+
required :automation, union: -> { OpenAI::Beta::Agents::Automation }
|
|
35
|
+
|
|
36
|
+
# @!attribute type
|
|
37
|
+
# The type of the object. Always `automation`.
|
|
38
|
+
#
|
|
39
|
+
# @return [Symbol, :automation]
|
|
40
|
+
required :type, const: :automation
|
|
41
|
+
|
|
42
|
+
# @!method initialize(automation:, type: :automation)
|
|
43
|
+
# @param automation [OpenAI::Models::Beta::Agents::PeriodicAutomation, OpenAI::Models::Beta::Agents::OneTimeAutomation]
|
|
44
|
+
# The automation snapshot for this occurrence, excluding confidential values.
|
|
45
|
+
#
|
|
46
|
+
# @param type [Symbol, :automation]
|
|
47
|
+
# The type of the object. Always `automation`.
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# @!method self.variants
|
|
51
|
+
# @return [Array(OpenAI::Models::Beta::Agents::Automations::AutomationInvocationSource::Manual, OpenAI::Models::Beta::Agents::Automations::AutomationInvocationSource::Automation)]
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
AutomationInvocationSource = Automations::AutomationInvocationSource
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
module Automations
|
|
8
|
+
# @see OpenAI::Resources::Beta::Agents::Automations::Invocations#create
|
|
9
|
+
class InvocationCreateParams < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute automation_id
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :automation_id, String
|
|
17
|
+
|
|
18
|
+
# @!method initialize(automation_id:, request_options: {})
|
|
19
|
+
# @param automation_id [String]
|
|
20
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
module Automations
|
|
8
|
+
# @see OpenAI::Resources::Beta::Agents::Automations::Invocations#list
|
|
9
|
+
class InvocationListParams < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute automation_id
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :automation_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute after
|
|
19
|
+
# Return resources after this resource ID in the selected order.
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :after, String
|
|
23
|
+
|
|
24
|
+
# @!attribute limit
|
|
25
|
+
# The maximum number of resources to return, between 1 and 100. Defaults to 20.
|
|
26
|
+
#
|
|
27
|
+
# @return [Integer, nil]
|
|
28
|
+
optional :limit, Integer
|
|
29
|
+
|
|
30
|
+
# @!attribute order
|
|
31
|
+
# The order in which resources are returned. Defaults to `desc`.
|
|
32
|
+
#
|
|
33
|
+
# @return [Symbol, OpenAI::Models::Beta::Agents::Automations::InvocationListParams::Order, nil]
|
|
34
|
+
optional :order, enum: -> { OpenAI::Beta::Agents::Automations::InvocationListParams::Order }
|
|
35
|
+
|
|
36
|
+
# @!method initialize(automation_id:, after: nil, limit: nil, order: nil, request_options: {})
|
|
37
|
+
# @param automation_id [String]
|
|
38
|
+
#
|
|
39
|
+
# @param after [String]
|
|
40
|
+
# Return resources after this resource ID in the selected order.
|
|
41
|
+
#
|
|
42
|
+
# @param limit [Integer]
|
|
43
|
+
# The maximum number of resources to return, between 1 and 100. Defaults to 20.
|
|
44
|
+
#
|
|
45
|
+
# @param order [Symbol, OpenAI::Models::Beta::Agents::Automations::InvocationListParams::Order]
|
|
46
|
+
# The order in which resources are returned. Defaults to `desc`.
|
|
47
|
+
#
|
|
48
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
49
|
+
|
|
50
|
+
# The order in which resources are returned. Defaults to `desc`.
|
|
51
|
+
module Order
|
|
52
|
+
extend OpenAI::Internal::Type::Enum
|
|
53
|
+
|
|
54
|
+
# Returns resources in ascending order.
|
|
55
|
+
ASC = :asc
|
|
56
|
+
|
|
57
|
+
# Returns resources in descending order.
|
|
58
|
+
DESC = :desc
|
|
59
|
+
|
|
60
|
+
# @!method self.values
|
|
61
|
+
# @return [Array<Symbol>]
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
module Automations
|
|
8
|
+
# @see OpenAI::Resources::Beta::Agents::Automations::Invocations#retrieve
|
|
9
|
+
class InvocationRetrieveParams < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute automation_id
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :automation_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute invocation_id
|
|
19
|
+
#
|
|
20
|
+
# @return [String]
|
|
21
|
+
required :invocation_id, String
|
|
22
|
+
|
|
23
|
+
# @!method initialize(automation_id:, invocation_id:, request_options: {})
|
|
24
|
+
# @param automation_id [String]
|
|
25
|
+
# @param invocation_id [String]
|
|
26
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -15,8 +15,18 @@ module OpenAI
|
|
|
15
15
|
# @return [String]
|
|
16
16
|
required :environment_id, String
|
|
17
17
|
|
|
18
|
-
# @!
|
|
18
|
+
# @!attribute hosted_environment_file_param
|
|
19
|
+
# A file materialized in an OpenAI-hosted execution environment.
|
|
20
|
+
#
|
|
21
|
+
# @return [OpenAI::Models::Beta::HostedEnvironmentFileParam::FileID, OpenAI::Models::Beta::HostedEnvironmentFileParam::Inline]
|
|
22
|
+
required :hosted_environment_file_param, union: -> { OpenAI::Beta::HostedEnvironmentFileParam }
|
|
23
|
+
|
|
24
|
+
# @!method initialize(environment_id:, hosted_environment_file_param:, request_options: {})
|
|
19
25
|
# @param environment_id [String]
|
|
26
|
+
#
|
|
27
|
+
# @param hosted_environment_file_param [OpenAI::Models::Beta::HostedEnvironmentFileParam::FileID, OpenAI::Models::Beta::HostedEnvironmentFileParam::Inline]
|
|
28
|
+
# A file materialized in an OpenAI-hosted execution environment.
|
|
29
|
+
#
|
|
20
30
|
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
21
31
|
end
|
|
22
32
|
end
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
class OneTimeAutomation < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# The automation ID.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute created_at
|
|
15
|
+
# The creation time as a Unix timestamp in seconds.
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
required :created_at, Integer
|
|
19
|
+
|
|
20
|
+
# @!attribute created_by
|
|
21
|
+
# Service-recorded provenance; callers cannot supply this field.
|
|
22
|
+
#
|
|
23
|
+
# @return [OpenAI::Models::Beta::Agents::AutomationCreatedBy::Developer, OpenAI::Models::Beta::Agents::AutomationCreatedBy::Agent]
|
|
24
|
+
required :created_by, union: -> { OpenAI::Beta::Agents::AutomationCreatedBy }
|
|
25
|
+
|
|
26
|
+
# @!attribute metadata
|
|
27
|
+
# Custom string key-value pairs attached to the automation.
|
|
28
|
+
#
|
|
29
|
+
# @return [Hash{Symbol=>String}]
|
|
30
|
+
required :metadata, OpenAI::Internal::Type::HashOf[String]
|
|
31
|
+
|
|
32
|
+
# @!attribute name
|
|
33
|
+
# The automation's display name.
|
|
34
|
+
#
|
|
35
|
+
# @return [String]
|
|
36
|
+
required :name, String
|
|
37
|
+
|
|
38
|
+
# @!attribute object
|
|
39
|
+
# Always `agent.automation`.
|
|
40
|
+
#
|
|
41
|
+
# @return [Symbol, :"agent.automation"]
|
|
42
|
+
required :object, const: :"agent.automation"
|
|
43
|
+
|
|
44
|
+
# @!attribute run_at
|
|
45
|
+
# The Unix timestamp, in seconds, of the scheduled occurrence.
|
|
46
|
+
#
|
|
47
|
+
# @return [Integer]
|
|
48
|
+
required :run_at, Integer
|
|
49
|
+
|
|
50
|
+
# @!attribute status
|
|
51
|
+
# Completion means the schedule has finished, not the agent's work.
|
|
52
|
+
#
|
|
53
|
+
# @return [Symbol, OpenAI::Models::Beta::Agents::OneTimeAutomation::Status]
|
|
54
|
+
required :status, enum: -> { OpenAI::Beta::Agents::OneTimeAutomation::Status }
|
|
55
|
+
|
|
56
|
+
# @!attribute target
|
|
57
|
+
# The session configuration or existing session receiving invocations.
|
|
58
|
+
#
|
|
59
|
+
# @return [OpenAI::Models::Beta::Agents::AutomationTarget::NewSession, OpenAI::Models::Beta::Agents::AutomationTarget::ExistingSession]
|
|
60
|
+
required :target, union: -> { OpenAI::Beta::Agents::AutomationTarget }
|
|
61
|
+
|
|
62
|
+
# @!attribute type
|
|
63
|
+
# The type of the object. Always `once`.
|
|
64
|
+
#
|
|
65
|
+
# @return [Symbol, :once]
|
|
66
|
+
required :type, const: :once
|
|
67
|
+
|
|
68
|
+
# @!method initialize(id:, created_at:, created_by:, metadata:, name:, run_at:, status:, target:, object: :"agent.automation", type: :once)
|
|
69
|
+
# Fields shared by periodic and one-time automations.
|
|
70
|
+
#
|
|
71
|
+
# @param id [String]
|
|
72
|
+
# The automation ID.
|
|
73
|
+
#
|
|
74
|
+
# @param created_at [Integer]
|
|
75
|
+
# The creation time as a Unix timestamp in seconds.
|
|
76
|
+
#
|
|
77
|
+
# @param created_by [OpenAI::Models::Beta::Agents::AutomationCreatedBy::Developer, OpenAI::Models::Beta::Agents::AutomationCreatedBy::Agent]
|
|
78
|
+
# Service-recorded provenance; callers cannot supply this field.
|
|
79
|
+
#
|
|
80
|
+
# @param metadata [Hash{Symbol=>String}]
|
|
81
|
+
# Custom string key-value pairs attached to the automation.
|
|
82
|
+
#
|
|
83
|
+
# @param name [String]
|
|
84
|
+
# The automation's display name.
|
|
85
|
+
#
|
|
86
|
+
# @param run_at [Integer]
|
|
87
|
+
# The Unix timestamp, in seconds, of the scheduled occurrence.
|
|
88
|
+
#
|
|
89
|
+
# @param status [Symbol, OpenAI::Models::Beta::Agents::OneTimeAutomation::Status]
|
|
90
|
+
# Completion means the schedule has finished, not the agent's work.
|
|
91
|
+
#
|
|
92
|
+
# @param target [OpenAI::Models::Beta::Agents::AutomationTarget::NewSession, OpenAI::Models::Beta::Agents::AutomationTarget::ExistingSession]
|
|
93
|
+
# The session configuration or existing session receiving invocations.
|
|
94
|
+
#
|
|
95
|
+
# @param object [Symbol, :"agent.automation"]
|
|
96
|
+
# Always `agent.automation`.
|
|
97
|
+
#
|
|
98
|
+
# @param type [Symbol, :once]
|
|
99
|
+
# The type of the object. Always `once`.
|
|
100
|
+
|
|
101
|
+
# Completion means the schedule has finished, not the agent's work.
|
|
102
|
+
#
|
|
103
|
+
# @see OpenAI::Models::Beta::Agents::OneTimeAutomation#status
|
|
104
|
+
module Status
|
|
105
|
+
extend OpenAI::Internal::Type::Enum
|
|
106
|
+
|
|
107
|
+
ACTIVE = :active
|
|
108
|
+
PAUSED = :paused
|
|
109
|
+
COMPLETED = :completed
|
|
110
|
+
|
|
111
|
+
# @!method self.values
|
|
112
|
+
# @return [Array<Symbol>]
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
class PeriodicAutomation < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# The automation ID.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute created_at
|
|
15
|
+
# The creation time as a Unix timestamp in seconds.
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
required :created_at, Integer
|
|
19
|
+
|
|
20
|
+
# @!attribute created_by
|
|
21
|
+
# Service-recorded provenance; callers cannot supply this field.
|
|
22
|
+
#
|
|
23
|
+
# @return [OpenAI::Models::Beta::Agents::AutomationCreatedBy::Developer, OpenAI::Models::Beta::Agents::AutomationCreatedBy::Agent]
|
|
24
|
+
required :created_by, union: -> { OpenAI::Beta::Agents::AutomationCreatedBy }
|
|
25
|
+
|
|
26
|
+
# @!attribute expression
|
|
27
|
+
# The cron expression determining scheduled occurrences.
|
|
28
|
+
#
|
|
29
|
+
# @return [String]
|
|
30
|
+
required :expression, String
|
|
31
|
+
|
|
32
|
+
# @!attribute metadata
|
|
33
|
+
# Custom string key-value pairs attached to the automation.
|
|
34
|
+
#
|
|
35
|
+
# @return [Hash{Symbol=>String}]
|
|
36
|
+
required :metadata, OpenAI::Internal::Type::HashOf[String]
|
|
37
|
+
|
|
38
|
+
# @!attribute name
|
|
39
|
+
# The automation's display name.
|
|
40
|
+
#
|
|
41
|
+
# @return [String]
|
|
42
|
+
required :name, String
|
|
43
|
+
|
|
44
|
+
# @!attribute object
|
|
45
|
+
# Always `agent.automation`.
|
|
46
|
+
#
|
|
47
|
+
# @return [Symbol, :"agent.automation"]
|
|
48
|
+
required :object, const: :"agent.automation"
|
|
49
|
+
|
|
50
|
+
# @!attribute status
|
|
51
|
+
# Whether scheduled delivery is active or paused.
|
|
52
|
+
#
|
|
53
|
+
# @return [Symbol, OpenAI::Models::Beta::Agents::PeriodicAutomation::Status]
|
|
54
|
+
required :status, enum: -> { OpenAI::Beta::Agents::PeriodicAutomation::Status }
|
|
55
|
+
|
|
56
|
+
# @!attribute target
|
|
57
|
+
# The session configuration or existing session receiving invocations.
|
|
58
|
+
#
|
|
59
|
+
# @return [OpenAI::Models::Beta::Agents::AutomationTarget::NewSession, OpenAI::Models::Beta::Agents::AutomationTarget::ExistingSession]
|
|
60
|
+
required :target, union: -> { OpenAI::Beta::Agents::AutomationTarget }
|
|
61
|
+
|
|
62
|
+
# @!attribute timezone
|
|
63
|
+
# The timezone used to interpret the expression.
|
|
64
|
+
#
|
|
65
|
+
# @return [String]
|
|
66
|
+
required :timezone, String
|
|
67
|
+
|
|
68
|
+
# @!attribute type
|
|
69
|
+
# The type of the object. Always `periodic`.
|
|
70
|
+
#
|
|
71
|
+
# @return [Symbol, :periodic]
|
|
72
|
+
required :type, const: :periodic
|
|
73
|
+
|
|
74
|
+
# @!method initialize(id:, created_at:, created_by:, expression:, metadata:, name:, status:, target:, timezone:, object: :"agent.automation", type: :periodic)
|
|
75
|
+
# Fields shared by periodic and one-time automations.
|
|
76
|
+
#
|
|
77
|
+
# @param id [String]
|
|
78
|
+
# The automation ID.
|
|
79
|
+
#
|
|
80
|
+
# @param created_at [Integer]
|
|
81
|
+
# The creation time as a Unix timestamp in seconds.
|
|
82
|
+
#
|
|
83
|
+
# @param created_by [OpenAI::Models::Beta::Agents::AutomationCreatedBy::Developer, OpenAI::Models::Beta::Agents::AutomationCreatedBy::Agent]
|
|
84
|
+
# Service-recorded provenance; callers cannot supply this field.
|
|
85
|
+
#
|
|
86
|
+
# @param expression [String]
|
|
87
|
+
# The cron expression determining scheduled occurrences.
|
|
88
|
+
#
|
|
89
|
+
# @param metadata [Hash{Symbol=>String}]
|
|
90
|
+
# Custom string key-value pairs attached to the automation.
|
|
91
|
+
#
|
|
92
|
+
# @param name [String]
|
|
93
|
+
# The automation's display name.
|
|
94
|
+
#
|
|
95
|
+
# @param status [Symbol, OpenAI::Models::Beta::Agents::PeriodicAutomation::Status]
|
|
96
|
+
# Whether scheduled delivery is active or paused.
|
|
97
|
+
#
|
|
98
|
+
# @param target [OpenAI::Models::Beta::Agents::AutomationTarget::NewSession, OpenAI::Models::Beta::Agents::AutomationTarget::ExistingSession]
|
|
99
|
+
# The session configuration or existing session receiving invocations.
|
|
100
|
+
#
|
|
101
|
+
# @param timezone [String]
|
|
102
|
+
# The timezone used to interpret the expression.
|
|
103
|
+
#
|
|
104
|
+
# @param object [Symbol, :"agent.automation"]
|
|
105
|
+
# Always `agent.automation`.
|
|
106
|
+
#
|
|
107
|
+
# @param type [Symbol, :periodic]
|
|
108
|
+
# The type of the object. Always `periodic`.
|
|
109
|
+
|
|
110
|
+
# Whether scheduled delivery is active or paused.
|
|
111
|
+
#
|
|
112
|
+
# @see OpenAI::Models::Beta::Agents::PeriodicAutomation#status
|
|
113
|
+
module Status
|
|
114
|
+
extend OpenAI::Internal::Type::Enum
|
|
115
|
+
|
|
116
|
+
ACTIVE = :active
|
|
117
|
+
PAUSED = :paused
|
|
118
|
+
|
|
119
|
+
# @!method self.values
|
|
120
|
+
# @return [Array<Symbol>]
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
@@ -950,6 +950,8 @@ module OpenAI
|
|
|
950
950
|
|
|
951
951
|
variant const: -> { OpenAI::Models::Beta::BetaResponse::Model::GPT_5_6_CYBER }
|
|
952
952
|
|
|
953
|
+
variant const: -> { OpenAI::Models::Beta::BetaResponse::Model::GPT_6_CYBER }
|
|
954
|
+
|
|
953
955
|
variant const: -> { OpenAI::Models::Beta::BetaResponse::Model::GPT_ROSALIND_RESEARCH }
|
|
954
956
|
|
|
955
957
|
variant String
|
|
@@ -1331,6 +1333,7 @@ module OpenAI
|
|
|
1331
1333
|
GPT_DAYBREAK_BLUE_LATEST = :"gpt-daybreak-blue-latest"
|
|
1332
1334
|
GPT_DAYBREAK_RED_LATEST = :"gpt-daybreak-red-latest"
|
|
1333
1335
|
GPT_5_6_CYBER = :"gpt-5.6-cyber"
|
|
1336
|
+
GPT_6_CYBER = :"gpt-6-cyber"
|
|
1334
1337
|
GPT_ROSALIND_RESEARCH = :"gpt-rosalind-research"
|
|
1335
1338
|
|
|
1336
1339
|
# @!endgroup
|
|
@@ -1353,12 +1353,16 @@ module OpenAI
|
|
|
1353
1353
|
|
|
1354
1354
|
variant const: -> { OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_5_6_CYBER }
|
|
1355
1355
|
|
|
1356
|
+
variant const: -> { OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_6_CYBER }
|
|
1357
|
+
|
|
1356
1358
|
variant(
|
|
1357
1359
|
const: -> {
|
|
1358
1360
|
OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_ROSALIND_RESEARCH
|
|
1359
1361
|
}
|
|
1360
1362
|
)
|
|
1361
1363
|
|
|
1364
|
+
variant const: -> { OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_6_ROSALIND }
|
|
1365
|
+
|
|
1362
1366
|
variant String
|
|
1363
1367
|
|
|
1364
1368
|
# @!method self.variants
|
|
@@ -1740,7 +1744,9 @@ module OpenAI
|
|
|
1740
1744
|
GPT_DAYBREAK_BLUE_LATEST = :"gpt-daybreak-blue-latest"
|
|
1741
1745
|
GPT_DAYBREAK_RED_LATEST = :"gpt-daybreak-red-latest"
|
|
1742
1746
|
GPT_5_6_CYBER = :"gpt-5.6-cyber"
|
|
1747
|
+
GPT_6_CYBER = :"gpt-6-cyber"
|
|
1743
1748
|
GPT_ROSALIND_RESEARCH = :"gpt-rosalind-research"
|
|
1749
|
+
GPT_6_ROSALIND = :"gpt-6-rosalind"
|
|
1744
1750
|
|
|
1745
1751
|
# @!endgroup
|
|
1746
1752
|
end
|
|
@@ -407,8 +407,12 @@ module OpenAI
|
|
|
407
407
|
|
|
408
408
|
variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_5_6_CYBER }
|
|
409
409
|
|
|
410
|
+
variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_6_CYBER }
|
|
411
|
+
|
|
410
412
|
variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_ROSALIND_RESEARCH }
|
|
411
413
|
|
|
414
|
+
variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_6_ROSALIND }
|
|
415
|
+
|
|
412
416
|
variant String
|
|
413
417
|
|
|
414
418
|
# @!method self.variants
|
|
@@ -788,7 +792,9 @@ module OpenAI
|
|
|
788
792
|
GPT_DAYBREAK_BLUE_LATEST = :"gpt-daybreak-blue-latest"
|
|
789
793
|
GPT_DAYBREAK_RED_LATEST = :"gpt-daybreak-red-latest"
|
|
790
794
|
GPT_5_6_CYBER = :"gpt-5.6-cyber"
|
|
795
|
+
GPT_6_CYBER = :"gpt-6-cyber"
|
|
791
796
|
GPT_ROSALIND_RESEARCH = :"gpt-rosalind-research"
|
|
797
|
+
GPT_6_ROSALIND = :"gpt-6-rosalind"
|
|
792
798
|
|
|
793
799
|
# @!endgroup
|
|
794
800
|
end
|