openai 0.120.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.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/openai/models/beta/agents/automation.rb +27 -0
  5. data/lib/openai/models/beta/agents/automation_agent_config.rb +142 -0
  6. data/lib/openai/models/beta/agents/automation_create_params.rb +27 -0
  7. data/lib/openai/models/beta/agents/automation_created_by.rb +65 -0
  8. data/lib/openai/models/beta/agents/automation_delete_params.rb +24 -0
  9. data/lib/openai/models/beta/agents/automation_deleted.rb +40 -0
  10. data/lib/openai/models/beta/agents/automation_environment.rb +484 -0
  11. data/lib/openai/models/beta/agents/automation_list_params.rb +68 -0
  12. data/lib/openai/models/beta/agents/automation_pause_params.rb +24 -0
  13. data/lib/openai/models/beta/agents/automation_resume_params.rb +24 -0
  14. data/lib/openai/models/beta/agents/automation_retrieve_params.rb +24 -0
  15. data/lib/openai/models/beta/agents/automation_schedule_param.rb +124 -0
  16. data/lib/openai/models/beta/agents/automation_target.rb +153 -0
  17. data/lib/openai/models/beta/agents/automation_target_param.rb +312 -0
  18. data/lib/openai/models/beta/agents/automation_update_params.rb +79 -0
  19. data/lib/openai/models/beta/agents/automations/automation_invocation.rb +148 -0
  20. data/lib/openai/models/beta/agents/automations/automation_invocation_source.rb +59 -0
  21. data/lib/openai/models/beta/agents/automations/invocation_create_params.rb +26 -0
  22. data/lib/openai/models/beta/agents/automations/invocation_list_params.rb +68 -0
  23. data/lib/openai/models/beta/agents/automations/invocation_retrieve_params.rb +32 -0
  24. data/lib/openai/models/beta/agents/environments/file_create_params.rb +11 -1
  25. data/lib/openai/models/beta/agents/one_time_automation.rb +118 -0
  26. data/lib/openai/models/beta/agents/periodic_automation.rb +126 -0
  27. data/lib/openai/models/beta/beta_responses_client_event.rb +3 -0
  28. data/lib/openai/models/beta/response_compact_params.rb +3 -0
  29. data/lib/openai/models/beta/response_create_params.rb +3 -0
  30. data/lib/openai/resources/beta/agents/automations/invocations.rb +103 -0
  31. data/lib/openai/resources/beta/agents/automations.rb +211 -0
  32. data/lib/openai/resources/beta/agents.rb +4 -0
  33. data/lib/openai/version.rb +1 -1
  34. data/lib/openai.rb +24 -0
  35. data/rbi/openai/models/beta/agents/automation.rbi +32 -0
  36. data/rbi/openai/models/beta/agents/automation_agent_config.rbi +255 -0
  37. data/rbi/openai/models/beta/agents/automation_create_params.rbi +75 -0
  38. data/rbi/openai/models/beta/agents/automation_created_by.rbi +124 -0
  39. data/rbi/openai/models/beta/agents/automation_delete_params.rbi +57 -0
  40. data/rbi/openai/models/beta/agents/automation_deleted.rbi +71 -0
  41. data/rbi/openai/models/beta/agents/automation_environment.rbi +795 -0
  42. data/rbi/openai/models/beta/agents/automation_list_params.rbi +122 -0
  43. data/rbi/openai/models/beta/agents/automation_pause_params.rbi +57 -0
  44. data/rbi/openai/models/beta/agents/automation_resume_params.rbi +57 -0
  45. data/rbi/openai/models/beta/agents/automation_retrieve_params.rbi +57 -0
  46. data/rbi/openai/models/beta/agents/automation_schedule_param.rbi +228 -0
  47. data/rbi/openai/models/beta/agents/automation_target.rbi +250 -0
  48. data/rbi/openai/models/beta/agents/automation_target_param.rbi +564 -0
  49. data/rbi/openai/models/beta/agents/automation_update_params.rbi +161 -0
  50. data/rbi/openai/models/beta/agents/automations/automation_invocation.rbi +233 -0
  51. data/rbi/openai/models/beta/agents/automations/automation_invocation_source.rbi +123 -0
  52. data/rbi/openai/models/beta/agents/automations/invocation_create_params.rbi +61 -0
  53. data/rbi/openai/models/beta/agents/automations/invocation_list_params.rbi +125 -0
  54. data/rbi/openai/models/beta/agents/automations/invocation_retrieve_params.rbi +68 -0
  55. data/rbi/openai/models/beta/agents/environments/file_create_params.rbi +27 -1
  56. data/rbi/openai/models/beta/agents/one_time_automation.rbi +168 -0
  57. data/rbi/openai/models/beta/agents/periodic_automation.rbi +177 -0
  58. data/rbi/openai/models/beta/beta_responses_client_event.rbi +4 -0
  59. data/rbi/openai/models/beta/response_compact_params.rbi +1 -0
  60. data/rbi/openai/models/beta/response_create_params.rbi +1 -0
  61. data/rbi/openai/resources/beta/agents/automations/invocations.rbi +67 -0
  62. data/rbi/openai/resources/beta/agents/automations.rbi +141 -0
  63. data/rbi/openai/resources/beta/agents.rbi +3 -0
  64. data/sig/openai/models/beta/agent_session_turn_reasoning_summary_part_done_event.rbs +1 -4
  65. data/sig/openai/models/beta/agents/automation.rbs +17 -0
  66. data/sig/openai/models/beta/agents/automation_agent_config.rbs +143 -0
  67. data/sig/openai/models/beta/agents/automation_create_params.rbs +33 -0
  68. data/sig/openai/models/beta/agents/automation_created_by.rbs +62 -0
  69. data/sig/openai/models/beta/agents/automation_delete_params.rbs +27 -0
  70. data/sig/openai/models/beta/agents/automation_deleted.rbs +39 -0
  71. data/sig/openai/models/beta/agents/automation_environment.rbs +428 -0
  72. data/sig/openai/models/beta/agents/automation_list_params.rbs +85 -0
  73. data/sig/openai/models/beta/agents/automation_pause_params.rbs +27 -0
  74. data/sig/openai/models/beta/agents/automation_resume_params.rbs +27 -0
  75. data/sig/openai/models/beta/agents/automation_retrieve_params.rbs +27 -0
  76. data/sig/openai/models/beta/agents/automation_schedule_param.rbs +127 -0
  77. data/sig/openai/models/beta/agents/automation_target.rbs +157 -0
  78. data/sig/openai/models/beta/agents/automation_target_param.rbs +299 -0
  79. data/sig/openai/models/beta/agents/automation_update_params.rbs +97 -0
  80. data/sig/openai/models/beta/agents/automations/automation_invocation.rbs +134 -0
  81. data/sig/openai/models/beta/agents/automations/automation_invocation_source.rbs +62 -0
  82. data/sig/openai/models/beta/agents/automations/invocation_create_params.rbs +29 -0
  83. data/sig/openai/models/beta/agents/automations/invocation_list_params.rbs +81 -0
  84. data/sig/openai/models/beta/agents/automations/invocation_retrieve_params.rbs +37 -0
  85. data/sig/openai/models/beta/agents/environments/file_create_params.rbs +12 -1
  86. data/sig/openai/models/beta/agents/one_time_automation.rbs +111 -0
  87. data/sig/openai/models/beta/agents/periodic_automation.rbs +118 -0
  88. data/sig/openai/models/beta/beta_responses_client_event.rbs +2 -0
  89. data/sig/openai/models/beta/response_compact_params.rbs +2 -0
  90. data/sig/openai/models/beta/response_create_params.rbs +2 -0
  91. data/sig/openai/resources/beta/agents/automations/invocations.rbs +32 -0
  92. data/sig/openai/resources/beta/agents/automations.rbs +57 -0
  93. data/sig/openai/resources/beta/agents.rbs +2 -0
  94. 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
- # @!method initialize(environment_id:, request_options: {})
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
@@ -1361,6 +1361,8 @@ module OpenAI
1361
1361
  }
1362
1362
  )
1363
1363
 
1364
+ variant const: -> { OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_6_ROSALIND }
1365
+
1364
1366
  variant String
1365
1367
 
1366
1368
  # @!method self.variants
@@ -1744,6 +1746,7 @@ module OpenAI
1744
1746
  GPT_5_6_CYBER = :"gpt-5.6-cyber"
1745
1747
  GPT_6_CYBER = :"gpt-6-cyber"
1746
1748
  GPT_ROSALIND_RESEARCH = :"gpt-rosalind-research"
1749
+ GPT_6_ROSALIND = :"gpt-6-rosalind"
1747
1750
 
1748
1751
  # @!endgroup
1749
1752
  end
@@ -411,6 +411,8 @@ module OpenAI
411
411
 
412
412
  variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_ROSALIND_RESEARCH }
413
413
 
414
+ variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_6_ROSALIND }
415
+
414
416
  variant String
415
417
 
416
418
  # @!method self.variants
@@ -792,6 +794,7 @@ module OpenAI
792
794
  GPT_5_6_CYBER = :"gpt-5.6-cyber"
793
795
  GPT_6_CYBER = :"gpt-6-cyber"
794
796
  GPT_ROSALIND_RESEARCH = :"gpt-rosalind-research"
797
+ GPT_6_ROSALIND = :"gpt-6-rosalind"
795
798
 
796
799
  # @!endgroup
797
800
  end
@@ -1030,6 +1030,8 @@ module OpenAI
1030
1030
 
1031
1031
  variant const: -> { OpenAI::Models::Beta::ResponseCreateParams::Model::GPT_ROSALIND_RESEARCH }
1032
1032
 
1033
+ variant const: -> { OpenAI::Models::Beta::ResponseCreateParams::Model::GPT_6_ROSALIND }
1034
+
1033
1035
  variant String
1034
1036
 
1035
1037
  # @!method self.variants
@@ -1411,6 +1413,7 @@ module OpenAI
1411
1413
  GPT_5_6_CYBER = :"gpt-5.6-cyber"
1412
1414
  GPT_6_CYBER = :"gpt-6-cyber"
1413
1415
  GPT_ROSALIND_RESEARCH = :"gpt-rosalind-research"
1416
+ GPT_6_ROSALIND = :"gpt-6-rosalind"
1414
1417
 
1415
1418
  # @!endgroup
1416
1419
  end