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,134 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Agents
|
|
5
|
+
class AutomationInvocation = Automations::AutomationInvocation
|
|
6
|
+
|
|
7
|
+
module Automations
|
|
8
|
+
type automation_invocation =
|
|
9
|
+
{
|
|
10
|
+
id: String,
|
|
11
|
+
automation_id: String,
|
|
12
|
+
created_at: Integer,
|
|
13
|
+
error: OpenAI::Beta::Agents::Automations::AutomationInvocation::Error?,
|
|
14
|
+
?object: :"agent.automation.invocation",
|
|
15
|
+
scheduled_at: Integer?,
|
|
16
|
+
session_id: String?,
|
|
17
|
+
?skip_reason: :pending_delivery?,
|
|
18
|
+
source: OpenAI::Models::Beta::Agents::Automations::automation_invocation_source,
|
|
19
|
+
status: OpenAI::Models::Beta::Agents::Automations::AutomationInvocation::status
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
class AutomationInvocation < OpenAI::Internal::Type::BaseModel
|
|
23
|
+
# The invocation ID.
|
|
24
|
+
attr_accessor id: String
|
|
25
|
+
|
|
26
|
+
# The automation that owns the invocation.
|
|
27
|
+
attr_accessor automation_id: String
|
|
28
|
+
|
|
29
|
+
# The creation time as a Unix timestamp in seconds.
|
|
30
|
+
attr_accessor created_at: Integer
|
|
31
|
+
|
|
32
|
+
# The permanent delivery failure, or null when no failure occurred.
|
|
33
|
+
attr_accessor error: OpenAI::Beta::Agents::Automations::AutomationInvocation::Error?
|
|
34
|
+
|
|
35
|
+
# Always `agent.automation.invocation`.
|
|
36
|
+
attr_accessor object: :"agent.automation.invocation"
|
|
37
|
+
|
|
38
|
+
# The intended occurrence as a Unix timestamp in seconds, or null for manual runs.
|
|
39
|
+
attr_accessor scheduled_at: Integer?
|
|
40
|
+
|
|
41
|
+
# The target or newly created session ID, or null before one is available.
|
|
42
|
+
attr_accessor session_id: String?
|
|
43
|
+
|
|
44
|
+
# Why an occurrence was skipped, or null when it was not skipped.
|
|
45
|
+
attr_accessor skip_reason: :pending_delivery?
|
|
46
|
+
|
|
47
|
+
# Whether the invocation was manual or scheduled.
|
|
48
|
+
attr_accessor source: OpenAI::Models::Beta::Agents::Automations::automation_invocation_source
|
|
49
|
+
|
|
50
|
+
# Delivery status; completed does not mean the agent's work has finished.
|
|
51
|
+
attr_accessor status: OpenAI::Models::Beta::Agents::Automations::AutomationInvocation::status
|
|
52
|
+
|
|
53
|
+
# @param id
|
|
54
|
+
# The invocation ID.
|
|
55
|
+
# @param automation_id
|
|
56
|
+
# The automation that owns the invocation.
|
|
57
|
+
# @param created_at
|
|
58
|
+
# The creation time as a Unix timestamp in seconds.
|
|
59
|
+
# @param error
|
|
60
|
+
# The permanent delivery failure, or null when no failure occurred.
|
|
61
|
+
# @param scheduled_at
|
|
62
|
+
# The intended occurrence as a Unix timestamp in seconds, or null for manual runs.
|
|
63
|
+
# @param session_id
|
|
64
|
+
# The target or newly created session ID, or null before one is available.
|
|
65
|
+
# @param source
|
|
66
|
+
# Whether the invocation was manual or scheduled.
|
|
67
|
+
# @param status
|
|
68
|
+
# Delivery status; completed does not mean the agent's work has finished.
|
|
69
|
+
# @param object
|
|
70
|
+
# Always `agent.automation.invocation`.
|
|
71
|
+
# @param skip_reason
|
|
72
|
+
# Why an occurrence was skipped, or null when it was not skipped.
|
|
73
|
+
def initialize: (
|
|
74
|
+
id: String,
|
|
75
|
+
automation_id: String,
|
|
76
|
+
created_at: Integer,
|
|
77
|
+
error: OpenAI::Beta::Agents::Automations::AutomationInvocation::Error?,
|
|
78
|
+
scheduled_at: Integer?,
|
|
79
|
+
session_id: String?,
|
|
80
|
+
source: OpenAI::Models::Beta::Agents::Automations::automation_invocation_source,
|
|
81
|
+
status: OpenAI::Models::Beta::Agents::Automations::AutomationInvocation::status,
|
|
82
|
+
?object: :"agent.automation.invocation",
|
|
83
|
+
?skip_reason: :pending_delivery?
|
|
84
|
+
) -> void
|
|
85
|
+
|
|
86
|
+
def to_hash: -> {
|
|
87
|
+
id: String,
|
|
88
|
+
automation_id: String,
|
|
89
|
+
created_at: Integer,
|
|
90
|
+
error: OpenAI::Beta::Agents::Automations::AutomationInvocation::Error?,
|
|
91
|
+
?object: :"agent.automation.invocation",
|
|
92
|
+
scheduled_at: Integer?,
|
|
93
|
+
session_id: String?,
|
|
94
|
+
?skip_reason: :pending_delivery?,
|
|
95
|
+
source: OpenAI::Models::Beta::Agents::Automations::automation_invocation_source,
|
|
96
|
+
status: OpenAI::Models::Beta::Agents::Automations::AutomationInvocation::status
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
type error = { code: String, message: String }
|
|
100
|
+
|
|
101
|
+
class Error < OpenAI::Internal::Type::BaseModel
|
|
102
|
+
# A machine-readable error code.
|
|
103
|
+
attr_accessor code: String
|
|
104
|
+
|
|
105
|
+
# A public explanation of the delivery failure.
|
|
106
|
+
attr_accessor message: String
|
|
107
|
+
|
|
108
|
+
# @param code
|
|
109
|
+
# A machine-readable error code.
|
|
110
|
+
# @param message
|
|
111
|
+
# A public explanation of the delivery failure.
|
|
112
|
+
def initialize: (code: String, message: String) -> void
|
|
113
|
+
|
|
114
|
+
def to_hash: -> { code: String, message: String }
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
type status = :queued | :completed | :failed | :skipped
|
|
118
|
+
|
|
119
|
+
module Status
|
|
120
|
+
extend OpenAI::Internal::Type::Enum
|
|
121
|
+
|
|
122
|
+
QUEUED: :queued
|
|
123
|
+
COMPLETED: :completed
|
|
124
|
+
FAILED: :failed
|
|
125
|
+
SKIPPED: :skipped
|
|
126
|
+
|
|
127
|
+
def self?.values: -> ::Array[OpenAI::Models::Beta::Agents::Automations::AutomationInvocation::status]
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Agents
|
|
5
|
+
module AutomationInvocationSource = Automations::AutomationInvocationSource
|
|
6
|
+
|
|
7
|
+
module Automations
|
|
8
|
+
type automation_invocation_source =
|
|
9
|
+
OpenAI::Beta::Agents::Automations::AutomationInvocationSource::Manual
|
|
10
|
+
| OpenAI::Beta::Agents::Automations::AutomationInvocationSource::Automation
|
|
11
|
+
|
|
12
|
+
module AutomationInvocationSource
|
|
13
|
+
extend OpenAI::Internal::Type::Union
|
|
14
|
+
|
|
15
|
+
type manual = { ?type: :manual }
|
|
16
|
+
|
|
17
|
+
class Manual < OpenAI::Internal::Type::BaseModel
|
|
18
|
+
# The type of the object. Always `manual`.
|
|
19
|
+
attr_accessor type: :manual
|
|
20
|
+
|
|
21
|
+
# @param type
|
|
22
|
+
# The type of the object. Always `manual`.
|
|
23
|
+
def initialize: (?type: :manual) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> { ?type: :manual }
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
type automation =
|
|
29
|
+
{
|
|
30
|
+
automation: OpenAI::Models::Beta::Agents::automation,
|
|
31
|
+
?type: :automation
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
class Automation < OpenAI::Internal::Type::BaseModel
|
|
35
|
+
# The automation snapshot for this occurrence, excluding confidential values.
|
|
36
|
+
attr_accessor automation: OpenAI::Models::Beta::Agents::automation
|
|
37
|
+
|
|
38
|
+
# The type of the object. Always `automation`.
|
|
39
|
+
attr_accessor type: :automation
|
|
40
|
+
|
|
41
|
+
# @param automation
|
|
42
|
+
# The automation snapshot for this occurrence, excluding confidential values.
|
|
43
|
+
# @param type
|
|
44
|
+
# The type of the object. Always `automation`.
|
|
45
|
+
def initialize: (
|
|
46
|
+
automation: OpenAI::Models::Beta::Agents::automation,
|
|
47
|
+
?type: :automation
|
|
48
|
+
) -> void
|
|
49
|
+
|
|
50
|
+
def to_hash: -> {
|
|
51
|
+
automation: OpenAI::Models::Beta::Agents::automation,
|
|
52
|
+
?type: :automation
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def self?.variants: -> ::Array[OpenAI::Models::Beta::Agents::Automations::automation_invocation_source]
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Agents
|
|
5
|
+
module Automations
|
|
6
|
+
type invocation_create_params =
|
|
7
|
+
{ automation_id: String, ?request_options: OpenAI::request_opts }
|
|
8
|
+
|
|
9
|
+
class InvocationCreateParams < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
attr_accessor automation_id: String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
automation_id: String,
|
|
17
|
+
?request_options: OpenAI::request_opts
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
automation_id: String,
|
|
22
|
+
?request_options: OpenAI::RequestOptions
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Agents
|
|
5
|
+
module Automations
|
|
6
|
+
type invocation_list_params =
|
|
7
|
+
{
|
|
8
|
+
automation_id: String,
|
|
9
|
+
?after: String,
|
|
10
|
+
?limit: Integer,
|
|
11
|
+
?order: OpenAI::Models::Beta::Agents::Automations::InvocationListParams::order,
|
|
12
|
+
?request_options: OpenAI::request_opts
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class InvocationListParams < OpenAI::Internal::Type::BaseModel
|
|
16
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
17
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
18
|
+
|
|
19
|
+
attr_accessor automation_id: String
|
|
20
|
+
|
|
21
|
+
# Return resources after this resource ID in the selected order.
|
|
22
|
+
attr_reader after: String?
|
|
23
|
+
|
|
24
|
+
# Return resources after this resource ID in the selected order.
|
|
25
|
+
def after=: (String) -> String
|
|
26
|
+
|
|
27
|
+
# The maximum number of resources to return, between 1 and 100. Defaults to 20.
|
|
28
|
+
attr_reader limit: Integer?
|
|
29
|
+
|
|
30
|
+
# The maximum number of resources to return, between 1 and 100. Defaults to 20.
|
|
31
|
+
def limit=: (Integer) -> Integer
|
|
32
|
+
|
|
33
|
+
# The order in which resources are returned. Defaults to `desc`.
|
|
34
|
+
attr_reader order: OpenAI::Models::Beta::Agents::Automations::InvocationListParams::order?
|
|
35
|
+
|
|
36
|
+
# The order in which resources are returned. Defaults to `desc`.
|
|
37
|
+
def order=: (
|
|
38
|
+
OpenAI::Models::Beta::Agents::Automations::InvocationListParams::order
|
|
39
|
+
) -> OpenAI::Models::Beta::Agents::Automations::InvocationListParams::order
|
|
40
|
+
|
|
41
|
+
# @param after
|
|
42
|
+
# Return resources after this resource ID in the selected order.
|
|
43
|
+
# @param limit
|
|
44
|
+
# The maximum number of resources to return, between 1 and 100. Defaults to 20.
|
|
45
|
+
# @param order
|
|
46
|
+
# The order in which resources are returned. Defaults to `desc`.
|
|
47
|
+
def initialize: (
|
|
48
|
+
automation_id: String,
|
|
49
|
+
?after: String,
|
|
50
|
+
?limit: Integer,
|
|
51
|
+
?order: OpenAI::Models::Beta::Agents::Automations::InvocationListParams::order,
|
|
52
|
+
?request_options: OpenAI::request_opts
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
automation_id: String,
|
|
57
|
+
?after: String,
|
|
58
|
+
?limit: Integer,
|
|
59
|
+
?order: OpenAI::Models::Beta::Agents::Automations::InvocationListParams::order,
|
|
60
|
+
?request_options: OpenAI::RequestOptions
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
type order = :asc | :desc
|
|
64
|
+
|
|
65
|
+
module Order
|
|
66
|
+
extend OpenAI::Internal::Type::Enum
|
|
67
|
+
|
|
68
|
+
# Returns resources in ascending order.
|
|
69
|
+
ASC: :asc
|
|
70
|
+
|
|
71
|
+
# Returns resources in descending order.
|
|
72
|
+
DESC: :desc
|
|
73
|
+
|
|
74
|
+
def self?.values: -> ::Array[OpenAI::Models::Beta::Agents::Automations::InvocationListParams::order]
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Agents
|
|
5
|
+
module Automations
|
|
6
|
+
type invocation_retrieve_params =
|
|
7
|
+
{
|
|
8
|
+
automation_id: String,
|
|
9
|
+
invocation_id: String,
|
|
10
|
+
?request_options: OpenAI::request_opts
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class InvocationRetrieveParams < OpenAI::Internal::Type::BaseModel
|
|
14
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor automation_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor invocation_id: String
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
automation_id: String,
|
|
23
|
+
invocation_id: String,
|
|
24
|
+
?request_options: OpenAI::request_opts
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
automation_id: String,
|
|
29
|
+
invocation_id: String,
|
|
30
|
+
?request_options: OpenAI::RequestOptions
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -4,7 +4,11 @@ module OpenAI
|
|
|
4
4
|
module Agents
|
|
5
5
|
module Environments
|
|
6
6
|
type file_create_params =
|
|
7
|
-
{
|
|
7
|
+
{
|
|
8
|
+
environment_id: String,
|
|
9
|
+
hosted_environment_file_param: OpenAI::Models::Beta::hosted_environment_file_param,
|
|
10
|
+
?request_options: OpenAI::request_opts
|
|
11
|
+
}
|
|
8
12
|
|
|
9
13
|
class FileCreateParams < OpenAI::Internal::Type::BaseModel
|
|
10
14
|
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
@@ -12,13 +16,20 @@ module OpenAI
|
|
|
12
16
|
|
|
13
17
|
attr_accessor environment_id: String
|
|
14
18
|
|
|
19
|
+
# A file materialized in an OpenAI-hosted execution environment.
|
|
20
|
+
attr_accessor hosted_environment_file_param: OpenAI::Models::Beta::hosted_environment_file_param
|
|
21
|
+
|
|
22
|
+
# @param hosted_environment_file_param
|
|
23
|
+
# A file materialized in an OpenAI-hosted execution environment.
|
|
15
24
|
def initialize: (
|
|
16
25
|
environment_id: String,
|
|
26
|
+
hosted_environment_file_param: OpenAI::Models::Beta::hosted_environment_file_param,
|
|
17
27
|
?request_options: OpenAI::request_opts
|
|
18
28
|
) -> void
|
|
19
29
|
|
|
20
30
|
def to_hash: -> {
|
|
21
31
|
environment_id: String,
|
|
32
|
+
hosted_environment_file_param: OpenAI::Models::Beta::hosted_environment_file_param,
|
|
22
33
|
?request_options: OpenAI::RequestOptions
|
|
23
34
|
}
|
|
24
35
|
end
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Agents
|
|
5
|
+
type one_time_automation =
|
|
6
|
+
{
|
|
7
|
+
id: String,
|
|
8
|
+
created_at: Integer,
|
|
9
|
+
created_by: OpenAI::Models::Beta::Agents::automation_created_by,
|
|
10
|
+
metadata: ::Hash[Symbol, String],
|
|
11
|
+
name: String,
|
|
12
|
+
?object: :"agent.automation",
|
|
13
|
+
run_at: Integer,
|
|
14
|
+
status: OpenAI::Models::Beta::Agents::OneTimeAutomation::status,
|
|
15
|
+
target: OpenAI::Models::Beta::Agents::automation_target,
|
|
16
|
+
?type: :once
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class OneTimeAutomation < OpenAI::Internal::Type::BaseModel
|
|
20
|
+
# The automation ID.
|
|
21
|
+
attr_accessor id: String
|
|
22
|
+
|
|
23
|
+
# The creation time as a Unix timestamp in seconds.
|
|
24
|
+
attr_accessor created_at: Integer
|
|
25
|
+
|
|
26
|
+
# Service-recorded provenance; callers cannot supply this field.
|
|
27
|
+
attr_accessor created_by: OpenAI::Models::Beta::Agents::automation_created_by
|
|
28
|
+
|
|
29
|
+
# Custom string key-value pairs attached to the automation.
|
|
30
|
+
attr_accessor metadata: ::Hash[Symbol, String]
|
|
31
|
+
|
|
32
|
+
# The automation's display name.
|
|
33
|
+
attr_accessor name: String
|
|
34
|
+
|
|
35
|
+
# Always `agent.automation`.
|
|
36
|
+
attr_accessor object: :"agent.automation"
|
|
37
|
+
|
|
38
|
+
# The Unix timestamp, in seconds, of the scheduled occurrence.
|
|
39
|
+
attr_accessor run_at: Integer
|
|
40
|
+
|
|
41
|
+
# Completion means the schedule has finished, not the agent's work.
|
|
42
|
+
attr_accessor status: OpenAI::Models::Beta::Agents::OneTimeAutomation::status
|
|
43
|
+
|
|
44
|
+
# The session configuration or existing session receiving invocations.
|
|
45
|
+
attr_accessor target: OpenAI::Models::Beta::Agents::automation_target
|
|
46
|
+
|
|
47
|
+
# The type of the object. Always `once`.
|
|
48
|
+
attr_accessor type: :once
|
|
49
|
+
|
|
50
|
+
# @param id
|
|
51
|
+
# The automation ID.
|
|
52
|
+
# @param created_at
|
|
53
|
+
# The creation time as a Unix timestamp in seconds.
|
|
54
|
+
# @param created_by
|
|
55
|
+
# Service-recorded provenance; callers cannot supply this field.
|
|
56
|
+
# @param metadata
|
|
57
|
+
# Custom string key-value pairs attached to the automation.
|
|
58
|
+
# @param name
|
|
59
|
+
# The automation's display name.
|
|
60
|
+
# @param run_at
|
|
61
|
+
# The Unix timestamp, in seconds, of the scheduled occurrence.
|
|
62
|
+
# @param status
|
|
63
|
+
# Completion means the schedule has finished, not the agent's work.
|
|
64
|
+
# @param target
|
|
65
|
+
# The session configuration or existing session receiving invocations.
|
|
66
|
+
# @param object
|
|
67
|
+
# Always `agent.automation`.
|
|
68
|
+
# @param type
|
|
69
|
+
# The type of the object. Always `once`.
|
|
70
|
+
def initialize: (
|
|
71
|
+
id: String,
|
|
72
|
+
created_at: Integer,
|
|
73
|
+
created_by: OpenAI::Models::Beta::Agents::automation_created_by,
|
|
74
|
+
metadata: ::Hash[Symbol, String],
|
|
75
|
+
name: String,
|
|
76
|
+
run_at: Integer,
|
|
77
|
+
status: OpenAI::Models::Beta::Agents::OneTimeAutomation::status,
|
|
78
|
+
target: OpenAI::Models::Beta::Agents::automation_target,
|
|
79
|
+
?object: :"agent.automation",
|
|
80
|
+
?type: :once
|
|
81
|
+
) -> void
|
|
82
|
+
|
|
83
|
+
def to_hash: -> {
|
|
84
|
+
id: String,
|
|
85
|
+
created_at: Integer,
|
|
86
|
+
created_by: OpenAI::Models::Beta::Agents::automation_created_by,
|
|
87
|
+
metadata: ::Hash[Symbol, String],
|
|
88
|
+
name: String,
|
|
89
|
+
?object: :"agent.automation",
|
|
90
|
+
run_at: Integer,
|
|
91
|
+
status: OpenAI::Models::Beta::Agents::OneTimeAutomation::status,
|
|
92
|
+
target: OpenAI::Models::Beta::Agents::automation_target,
|
|
93
|
+
?type: :once
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
type status = :active | :paused | :completed
|
|
97
|
+
|
|
98
|
+
module Status
|
|
99
|
+
extend OpenAI::Internal::Type::Enum
|
|
100
|
+
|
|
101
|
+
ACTIVE: :active
|
|
102
|
+
PAUSED: :paused
|
|
103
|
+
COMPLETED: :completed
|
|
104
|
+
|
|
105
|
+
def self?.values: -> ::Array[OpenAI::Models::Beta::Agents::OneTimeAutomation::status]
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Agents
|
|
5
|
+
type periodic_automation =
|
|
6
|
+
{
|
|
7
|
+
id: String,
|
|
8
|
+
created_at: Integer,
|
|
9
|
+
created_by: OpenAI::Models::Beta::Agents::automation_created_by,
|
|
10
|
+
expression: String,
|
|
11
|
+
metadata: ::Hash[Symbol, String],
|
|
12
|
+
name: String,
|
|
13
|
+
?object: :"agent.automation",
|
|
14
|
+
status: OpenAI::Models::Beta::Agents::PeriodicAutomation::status,
|
|
15
|
+
target: OpenAI::Models::Beta::Agents::automation_target,
|
|
16
|
+
timezone: String,
|
|
17
|
+
?type: :periodic
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
class PeriodicAutomation < OpenAI::Internal::Type::BaseModel
|
|
21
|
+
# The automation ID.
|
|
22
|
+
attr_accessor id: String
|
|
23
|
+
|
|
24
|
+
# The creation time as a Unix timestamp in seconds.
|
|
25
|
+
attr_accessor created_at: Integer
|
|
26
|
+
|
|
27
|
+
# Service-recorded provenance; callers cannot supply this field.
|
|
28
|
+
attr_accessor created_by: OpenAI::Models::Beta::Agents::automation_created_by
|
|
29
|
+
|
|
30
|
+
# The cron expression determining scheduled occurrences.
|
|
31
|
+
attr_accessor expression: String
|
|
32
|
+
|
|
33
|
+
# Custom string key-value pairs attached to the automation.
|
|
34
|
+
attr_accessor metadata: ::Hash[Symbol, String]
|
|
35
|
+
|
|
36
|
+
# The automation's display name.
|
|
37
|
+
attr_accessor name: String
|
|
38
|
+
|
|
39
|
+
# Always `agent.automation`.
|
|
40
|
+
attr_accessor object: :"agent.automation"
|
|
41
|
+
|
|
42
|
+
# Whether scheduled delivery is active or paused.
|
|
43
|
+
attr_accessor status: OpenAI::Models::Beta::Agents::PeriodicAutomation::status
|
|
44
|
+
|
|
45
|
+
# The session configuration or existing session receiving invocations.
|
|
46
|
+
attr_accessor target: OpenAI::Models::Beta::Agents::automation_target
|
|
47
|
+
|
|
48
|
+
# The timezone used to interpret the expression.
|
|
49
|
+
attr_accessor timezone: String
|
|
50
|
+
|
|
51
|
+
# The type of the object. Always `periodic`.
|
|
52
|
+
attr_accessor type: :periodic
|
|
53
|
+
|
|
54
|
+
# @param id
|
|
55
|
+
# The automation ID.
|
|
56
|
+
# @param created_at
|
|
57
|
+
# The creation time as a Unix timestamp in seconds.
|
|
58
|
+
# @param created_by
|
|
59
|
+
# Service-recorded provenance; callers cannot supply this field.
|
|
60
|
+
# @param expression
|
|
61
|
+
# The cron expression determining scheduled occurrences.
|
|
62
|
+
# @param metadata
|
|
63
|
+
# Custom string key-value pairs attached to the automation.
|
|
64
|
+
# @param name
|
|
65
|
+
# The automation's display name.
|
|
66
|
+
# @param status
|
|
67
|
+
# Whether scheduled delivery is active or paused.
|
|
68
|
+
# @param target
|
|
69
|
+
# The session configuration or existing session receiving invocations.
|
|
70
|
+
# @param timezone
|
|
71
|
+
# The timezone used to interpret the expression.
|
|
72
|
+
# @param object
|
|
73
|
+
# Always `agent.automation`.
|
|
74
|
+
# @param type
|
|
75
|
+
# The type of the object. Always `periodic`.
|
|
76
|
+
def initialize: (
|
|
77
|
+
id: String,
|
|
78
|
+
created_at: Integer,
|
|
79
|
+
created_by: OpenAI::Models::Beta::Agents::automation_created_by,
|
|
80
|
+
expression: String,
|
|
81
|
+
metadata: ::Hash[Symbol, String],
|
|
82
|
+
name: String,
|
|
83
|
+
status: OpenAI::Models::Beta::Agents::PeriodicAutomation::status,
|
|
84
|
+
target: OpenAI::Models::Beta::Agents::automation_target,
|
|
85
|
+
timezone: String,
|
|
86
|
+
?object: :"agent.automation",
|
|
87
|
+
?type: :periodic
|
|
88
|
+
) -> void
|
|
89
|
+
|
|
90
|
+
def to_hash: -> {
|
|
91
|
+
id: String,
|
|
92
|
+
created_at: Integer,
|
|
93
|
+
created_by: OpenAI::Models::Beta::Agents::automation_created_by,
|
|
94
|
+
expression: String,
|
|
95
|
+
metadata: ::Hash[Symbol, String],
|
|
96
|
+
name: String,
|
|
97
|
+
?object: :"agent.automation",
|
|
98
|
+
status: OpenAI::Models::Beta::Agents::PeriodicAutomation::status,
|
|
99
|
+
target: OpenAI::Models::Beta::Agents::automation_target,
|
|
100
|
+
timezone: String,
|
|
101
|
+
?type: :periodic
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
type status = :active | :paused
|
|
105
|
+
|
|
106
|
+
module Status
|
|
107
|
+
extend OpenAI::Internal::Type::Enum
|
|
108
|
+
|
|
109
|
+
ACTIVE: :active
|
|
110
|
+
PAUSED: :paused
|
|
111
|
+
|
|
112
|
+
def self?.values: -> ::Array[OpenAI::Models::Beta::Agents::PeriodicAutomation::status]
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
@@ -845,6 +845,7 @@ module OpenAI
|
|
|
845
845
|
| :"gpt-daybreak-blue-latest"
|
|
846
846
|
| :"gpt-daybreak-red-latest"
|
|
847
847
|
| :"gpt-5.6-cyber"
|
|
848
|
+
| :"gpt-6-cyber"
|
|
848
849
|
| :"gpt-rosalind-research"
|
|
849
850
|
| String
|
|
850
851
|
|
|
@@ -962,6 +963,7 @@ module OpenAI
|
|
|
962
963
|
GPT_DAYBREAK_BLUE_LATEST: :"gpt-daybreak-blue-latest"
|
|
963
964
|
GPT_DAYBREAK_RED_LATEST: :"gpt-daybreak-red-latest"
|
|
964
965
|
GPT_5_6_CYBER: :"gpt-5.6-cyber"
|
|
966
|
+
GPT_6_CYBER: :"gpt-6-cyber"
|
|
965
967
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
966
968
|
end
|
|
967
969
|
|
|
@@ -1007,7 +1007,9 @@ module OpenAI
|
|
|
1007
1007
|
| :"gpt-daybreak-blue-latest"
|
|
1008
1008
|
| :"gpt-daybreak-red-latest"
|
|
1009
1009
|
| :"gpt-5.6-cyber"
|
|
1010
|
+
| :"gpt-6-cyber"
|
|
1010
1011
|
| :"gpt-rosalind-research"
|
|
1012
|
+
| :"gpt-6-rosalind"
|
|
1011
1013
|
| String
|
|
1012
1014
|
|
|
1013
1015
|
module Model
|
|
@@ -1124,7 +1126,9 @@ module OpenAI
|
|
|
1124
1126
|
GPT_DAYBREAK_BLUE_LATEST: :"gpt-daybreak-blue-latest"
|
|
1125
1127
|
GPT_DAYBREAK_RED_LATEST: :"gpt-daybreak-red-latest"
|
|
1126
1128
|
GPT_5_6_CYBER: :"gpt-5.6-cyber"
|
|
1129
|
+
GPT_6_CYBER: :"gpt-6-cyber"
|
|
1127
1130
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
1131
|
+
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
1128
1132
|
end
|
|
1129
1133
|
|
|
1130
1134
|
type moderation =
|
|
@@ -280,7 +280,9 @@ module OpenAI
|
|
|
280
280
|
| :"gpt-daybreak-blue-latest"
|
|
281
281
|
| :"gpt-daybreak-red-latest"
|
|
282
282
|
| :"gpt-5.6-cyber"
|
|
283
|
+
| :"gpt-6-cyber"
|
|
283
284
|
| :"gpt-rosalind-research"
|
|
285
|
+
| :"gpt-6-rosalind"
|
|
284
286
|
| String
|
|
285
287
|
|
|
286
288
|
module Model
|
|
@@ -397,7 +399,9 @@ module OpenAI
|
|
|
397
399
|
GPT_DAYBREAK_BLUE_LATEST: :"gpt-daybreak-blue-latest"
|
|
398
400
|
GPT_DAYBREAK_RED_LATEST: :"gpt-daybreak-red-latest"
|
|
399
401
|
GPT_5_6_CYBER: :"gpt-5.6-cyber"
|
|
402
|
+
GPT_6_CYBER: :"gpt-6-cyber"
|
|
400
403
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
404
|
+
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
401
405
|
end
|
|
402
406
|
|
|
403
407
|
type image =
|
|
@@ -947,7 +947,9 @@ module OpenAI
|
|
|
947
947
|
| :"gpt-daybreak-blue-latest"
|
|
948
948
|
| :"gpt-daybreak-red-latest"
|
|
949
949
|
| :"gpt-5.6-cyber"
|
|
950
|
+
| :"gpt-6-cyber"
|
|
950
951
|
| :"gpt-rosalind-research"
|
|
952
|
+
| :"gpt-6-rosalind"
|
|
951
953
|
| String
|
|
952
954
|
|
|
953
955
|
module Model
|
|
@@ -1064,7 +1066,9 @@ module OpenAI
|
|
|
1064
1066
|
GPT_DAYBREAK_BLUE_LATEST: :"gpt-daybreak-blue-latest"
|
|
1065
1067
|
GPT_DAYBREAK_RED_LATEST: :"gpt-daybreak-red-latest"
|
|
1066
1068
|
GPT_5_6_CYBER: :"gpt-5.6-cyber"
|
|
1069
|
+
GPT_6_CYBER: :"gpt-6-cyber"
|
|
1067
1070
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
1071
|
+
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
1068
1072
|
end
|
|
1069
1073
|
|
|
1070
1074
|
type moderation =
|