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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +1 -1
- 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_responses_client_event.rb +3 -0
- data/lib/openai/models/beta/response_compact_params.rb +3 -0
- data/lib/openai/models/beta/response_create_params.rb +3 -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/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_responses_client_event.rbi +4 -0
- data/rbi/openai/models/beta/response_compact_params.rbi +1 -0
- data/rbi/openai/models/beta/response_create_params.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/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_responses_client_event.rbs +2 -0
- data/sig/openai/models/beta/response_compact_params.rbs +2 -0
- data/sig/openai/models/beta/response_create_params.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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce7067efbf60066bd6974ff82a38884ef04c19d4721f00611d54dc1b1875a4b3
|
|
4
|
+
data.tar.gz: 4068623e1e610b9b5c8ba531082c2a8be68e120a8e40281ab8a712700de55b93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab69834a768a327fdc77f87b33d15842b5d8e1c467cf1c00b5ebdeea655dda7e46b823ad4dfc5dd9ef829445a7fbeec866cbb854c24b8f5cec4ca55473582637
|
|
7
|
+
data.tar.gz: c3da784e892417ca10617d6b590fdecce3657f6dbf0468fef0942a144dda638b7e468c98fd3fdd7b4b0a54fdf1cc9e90e09a665bdb627804eba62fe64161314a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.121.0](https://github.com/openai/openai-ruby/compare/v0.120.0...v0.121.0) (2026-11-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** add agent scheduling APIs ([#1046](https://github.com/openai/openai-ruby/issues/1046)) ([4d0e09c](https://github.com/openai/openai-ruby/commit/4d0e09ce1df41e8f6442ae489c8ee9f1237cfc74))
|
|
9
|
+
* **api:** add gpt-6-rosalind to beta Responses requests ([#1047](https://github.com/openai/openai-ruby/issues/1047)) ([d6461e6](https://github.com/openai/openai-ruby/commit/d6461e646fd8b747848d590a220da3fbbcc95259))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Documentation
|
|
13
|
+
|
|
14
|
+
* consolidate AGENTS.md guidance ([#1044](https://github.com/openai/openai-ruby/issues/1044)) ([7b2dd7a](https://github.com/openai/openai-ruby/commit/7b2dd7ac84585b73d41938d9d9a547b682429c89))
|
|
15
|
+
|
|
3
16
|
## [0.120.0](https://github.com/openai/openai-ruby/compare/v0.119.0...v0.120.0) (2026-11-05)
|
|
4
17
|
|
|
5
18
|
|
data/README.md
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
# A saved automation and its schedule.
|
|
8
|
+
#
|
|
9
|
+
# @see OpenAI::Resources::Beta::Agents::Automations#create
|
|
10
|
+
module Automation
|
|
11
|
+
extend OpenAI::Internal::Type::Union
|
|
12
|
+
|
|
13
|
+
discriminator :type
|
|
14
|
+
|
|
15
|
+
# Fields shared by periodic and one-time automations.
|
|
16
|
+
variant :periodic, -> { OpenAI::Beta::Agents::PeriodicAutomation }
|
|
17
|
+
|
|
18
|
+
# Fields shared by periodic and one-time automations.
|
|
19
|
+
variant :once, -> { OpenAI::Beta::Agents::OneTimeAutomation }
|
|
20
|
+
|
|
21
|
+
# @!method self.variants
|
|
22
|
+
# @return [Array(OpenAI::Models::Beta::Agents::PeriodicAutomation, OpenAI::Models::Beta::Agents::OneTimeAutomation)]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
class AutomationAgentConfig < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute instructions
|
|
9
|
+
# Custom instructions, or null when absent.
|
|
10
|
+
#
|
|
11
|
+
# @return [String, nil]
|
|
12
|
+
required :instructions, String, nil?: true
|
|
13
|
+
|
|
14
|
+
# @!attribute model
|
|
15
|
+
# The requested model name.
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
required :model, String
|
|
19
|
+
|
|
20
|
+
# @!attribute multi_agent
|
|
21
|
+
# The configuration for creating and coordinating subagents.
|
|
22
|
+
#
|
|
23
|
+
# @return [OpenAI::Models::Beta::MultiAgentConfig]
|
|
24
|
+
required :multi_agent, -> { OpenAI::Beta::MultiAgentConfig }
|
|
25
|
+
|
|
26
|
+
# @!attribute reasoning
|
|
27
|
+
# The configured reasoning policy.
|
|
28
|
+
#
|
|
29
|
+
# @return [OpenAI::Models::Beta::AgentReasoning]
|
|
30
|
+
required :reasoning, -> { OpenAI::Beta::AgentReasoning }
|
|
31
|
+
|
|
32
|
+
# @!attribute service_tier
|
|
33
|
+
# The configured service-tier policy.
|
|
34
|
+
#
|
|
35
|
+
# @return [Symbol, OpenAI::Models::Beta::Agents::AutomationAgentConfig::ServiceTier]
|
|
36
|
+
required :service_tier, enum: -> { OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier }
|
|
37
|
+
|
|
38
|
+
# @!attribute text
|
|
39
|
+
# The configured output format and verbosity.
|
|
40
|
+
#
|
|
41
|
+
# @return [OpenAI::Models::Beta::AgentText]
|
|
42
|
+
required :text, -> { OpenAI::Beta::AgentText }
|
|
43
|
+
|
|
44
|
+
# @!attribute tools
|
|
45
|
+
# Configured tools, excluding confidential credentials.
|
|
46
|
+
#
|
|
47
|
+
# @return [Array<OpenAI::Models::Beta::AgentTool::Function, OpenAI::Models::Beta::AgentTool::ProgrammaticToolCalling, OpenAI::Models::Beta::AgentTool::Mcp, OpenAI::Models::Beta::AgentTool::WebSearch, OpenAI::Models::Beta::AgentTool::ComputerUse, OpenAI::Models::Beta::AgentTool::Automations>]
|
|
48
|
+
required :tools, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::AgentTool] }
|
|
49
|
+
|
|
50
|
+
# @!attribute compaction
|
|
51
|
+
# The effective context compaction settings.
|
|
52
|
+
#
|
|
53
|
+
# @return [OpenAI::Models::Beta::Agents::AutomationAgentConfig::Compaction, nil]
|
|
54
|
+
optional :compaction, -> { OpenAI::Beta::Agents::AutomationAgentConfig::Compaction }
|
|
55
|
+
|
|
56
|
+
# @!attribute experimental
|
|
57
|
+
# The effective experimental settings for the agent.
|
|
58
|
+
#
|
|
59
|
+
# @return [OpenAI::Models::Beta::Agents::AutomationAgentConfig::Experimental, nil]
|
|
60
|
+
optional :experimental, -> { OpenAI::Beta::Agents::AutomationAgentConfig::Experimental }
|
|
61
|
+
|
|
62
|
+
# @!method initialize(instructions:, model:, multi_agent:, reasoning:, service_tier:, text:, tools:, compaction: nil, experimental: nil)
|
|
63
|
+
# Inline agent configuration without a generated session-local identity.
|
|
64
|
+
#
|
|
65
|
+
# @param instructions [String, nil]
|
|
66
|
+
# Custom instructions, or null when absent.
|
|
67
|
+
#
|
|
68
|
+
# @param model [String]
|
|
69
|
+
# The requested model name.
|
|
70
|
+
#
|
|
71
|
+
# @param multi_agent [OpenAI::Models::Beta::MultiAgentConfig]
|
|
72
|
+
# The configuration for creating and coordinating subagents.
|
|
73
|
+
#
|
|
74
|
+
# @param reasoning [OpenAI::Models::Beta::AgentReasoning]
|
|
75
|
+
# The configured reasoning policy.
|
|
76
|
+
#
|
|
77
|
+
# @param service_tier [Symbol, OpenAI::Models::Beta::Agents::AutomationAgentConfig::ServiceTier]
|
|
78
|
+
# The configured service-tier policy.
|
|
79
|
+
#
|
|
80
|
+
# @param text [OpenAI::Models::Beta::AgentText]
|
|
81
|
+
# The configured output format and verbosity.
|
|
82
|
+
#
|
|
83
|
+
# @param tools [Array<OpenAI::Models::Beta::AgentTool::Function, OpenAI::Models::Beta::AgentTool::ProgrammaticToolCalling, OpenAI::Models::Beta::AgentTool::Mcp, OpenAI::Models::Beta::AgentTool::WebSearch, OpenAI::Models::Beta::AgentTool::ComputerUse, OpenAI::Models::Beta::AgentTool::Automations>]
|
|
84
|
+
# Configured tools, excluding confidential credentials.
|
|
85
|
+
#
|
|
86
|
+
# @param compaction [OpenAI::Models::Beta::Agents::AutomationAgentConfig::Compaction]
|
|
87
|
+
# The effective context compaction settings.
|
|
88
|
+
#
|
|
89
|
+
# @param experimental [OpenAI::Models::Beta::Agents::AutomationAgentConfig::Experimental]
|
|
90
|
+
# The effective experimental settings for the agent.
|
|
91
|
+
|
|
92
|
+
# The configured service-tier policy.
|
|
93
|
+
#
|
|
94
|
+
# @see OpenAI::Models::Beta::Agents::AutomationAgentConfig#service_tier
|
|
95
|
+
module ServiceTier
|
|
96
|
+
extend OpenAI::Internal::Type::Enum
|
|
97
|
+
|
|
98
|
+
AUTO = :auto
|
|
99
|
+
DEFAULT = :default
|
|
100
|
+
FLEX = :flex
|
|
101
|
+
PRIORITY = :priority
|
|
102
|
+
FAST = :fast
|
|
103
|
+
ULTRAFAST = :ultrafast
|
|
104
|
+
|
|
105
|
+
# @!method self.values
|
|
106
|
+
# @return [Array<Symbol>]
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# @see OpenAI::Models::Beta::Agents::AutomationAgentConfig#compaction
|
|
110
|
+
class Compaction < OpenAI::Internal::Type::BaseModel
|
|
111
|
+
# @!attribute async
|
|
112
|
+
# Whether context is compacted in the background. Defaults to true.
|
|
113
|
+
#
|
|
114
|
+
# @return [Boolean]
|
|
115
|
+
required :async, OpenAI::Internal::Type::Boolean
|
|
116
|
+
|
|
117
|
+
# @!method initialize(async:)
|
|
118
|
+
# The effective context compaction settings.
|
|
119
|
+
#
|
|
120
|
+
# @param async [Boolean]
|
|
121
|
+
# Whether context is compacted in the background. Defaults to true.
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# @see OpenAI::Models::Beta::Agents::AutomationAgentConfig#experimental
|
|
125
|
+
class Experimental < OpenAI::Internal::Type::BaseModel
|
|
126
|
+
# @!attribute time_awareness
|
|
127
|
+
# Whether the model receives periodic current-time reminders.
|
|
128
|
+
#
|
|
129
|
+
# @return [Boolean]
|
|
130
|
+
required :time_awareness, OpenAI::Internal::Type::Boolean
|
|
131
|
+
|
|
132
|
+
# @!method initialize(time_awareness:)
|
|
133
|
+
# The effective experimental settings for the agent.
|
|
134
|
+
#
|
|
135
|
+
# @param time_awareness [Boolean]
|
|
136
|
+
# Whether the model receives periodic current-time reminders.
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
# @see OpenAI::Resources::Beta::Agents::Automations#create
|
|
8
|
+
class AutomationCreateParams < OpenAI::Internal::Type::BaseModel
|
|
9
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute create_automation_params
|
|
13
|
+
# Creates an automation without invoking it immediately.
|
|
14
|
+
#
|
|
15
|
+
# @return [OpenAI::Models::Beta::Agents::AutomationScheduleParam::Periodic, OpenAI::Models::Beta::Agents::AutomationScheduleParam::Once]
|
|
16
|
+
required :create_automation_params, union: -> { OpenAI::Beta::Agents::AutomationScheduleParam }
|
|
17
|
+
|
|
18
|
+
# @!method initialize(create_automation_params:, request_options: {})
|
|
19
|
+
# @param create_automation_params [OpenAI::Models::Beta::Agents::AutomationScheduleParam::Periodic, OpenAI::Models::Beta::Agents::AutomationScheduleParam::Once]
|
|
20
|
+
# Creates an automation without invoking it immediately.
|
|
21
|
+
#
|
|
22
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
# How the automation was created, independently of how an invocation started.
|
|
8
|
+
module AutomationCreatedBy
|
|
9
|
+
extend OpenAI::Internal::Type::Union
|
|
10
|
+
|
|
11
|
+
discriminator :type
|
|
12
|
+
|
|
13
|
+
variant :developer, -> { OpenAI::Beta::Agents::AutomationCreatedBy::Developer }
|
|
14
|
+
|
|
15
|
+
variant :agent, -> { OpenAI::Beta::Agents::AutomationCreatedBy::Agent }
|
|
16
|
+
|
|
17
|
+
class Developer < OpenAI::Internal::Type::BaseModel
|
|
18
|
+
# @!attribute type
|
|
19
|
+
# The type of the object. Always `developer`.
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, :developer]
|
|
22
|
+
required :type, const: :developer
|
|
23
|
+
|
|
24
|
+
# @!method initialize(type: :developer)
|
|
25
|
+
# @param type [Symbol, :developer]
|
|
26
|
+
# The type of the object. Always `developer`.
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
class Agent < OpenAI::Internal::Type::BaseModel
|
|
30
|
+
# @!attribute session_id
|
|
31
|
+
# The creator session, which is also the automation's target.
|
|
32
|
+
#
|
|
33
|
+
# @return [String]
|
|
34
|
+
required :session_id, String
|
|
35
|
+
|
|
36
|
+
# @!attribute tool_call_id
|
|
37
|
+
# The tool call that created the automation.
|
|
38
|
+
#
|
|
39
|
+
# @return [String]
|
|
40
|
+
required :tool_call_id, String
|
|
41
|
+
|
|
42
|
+
# @!attribute type
|
|
43
|
+
# The type of the object. Always `agent`.
|
|
44
|
+
#
|
|
45
|
+
# @return [Symbol, :agent]
|
|
46
|
+
required :type, const: :agent
|
|
47
|
+
|
|
48
|
+
# @!method initialize(session_id:, tool_call_id:, type: :agent)
|
|
49
|
+
# @param session_id [String]
|
|
50
|
+
# The creator session, which is also the automation's target.
|
|
51
|
+
#
|
|
52
|
+
# @param tool_call_id [String]
|
|
53
|
+
# The tool call that created the automation.
|
|
54
|
+
#
|
|
55
|
+
# @param type [Symbol, :agent]
|
|
56
|
+
# The type of the object. Always `agent`.
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# @!method self.variants
|
|
60
|
+
# @return [Array(OpenAI::Models::Beta::Agents::AutomationCreatedBy::Developer, OpenAI::Models::Beta::Agents::AutomationCreatedBy::Agent)]
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
# @see OpenAI::Resources::Beta::Agents::Automations#delete
|
|
8
|
+
class AutomationDeleteParams < OpenAI::Internal::Type::BaseModel
|
|
9
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute automation_id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :automation_id, String
|
|
16
|
+
|
|
17
|
+
# @!method initialize(automation_id:, request_options: {})
|
|
18
|
+
# @param automation_id [String]
|
|
19
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Agents
|
|
7
|
+
# @see OpenAI::Resources::Beta::Agents::Automations#delete
|
|
8
|
+
class AutomationDeleted < OpenAI::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute id
|
|
10
|
+
# The deleted automation ID.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute deleted
|
|
16
|
+
# Always true.
|
|
17
|
+
#
|
|
18
|
+
# @return [Boolean]
|
|
19
|
+
required :deleted, OpenAI::Internal::Type::Boolean
|
|
20
|
+
|
|
21
|
+
# @!attribute object
|
|
22
|
+
# Always `agent.automation.deleted`.
|
|
23
|
+
#
|
|
24
|
+
# @return [Symbol, :"agent.automation.deleted"]
|
|
25
|
+
required :object, const: :"agent.automation.deleted"
|
|
26
|
+
|
|
27
|
+
# @!method initialize(id:, deleted:, object: :"agent.automation.deleted")
|
|
28
|
+
# @param id [String]
|
|
29
|
+
# The deleted automation ID.
|
|
30
|
+
#
|
|
31
|
+
# @param deleted [Boolean]
|
|
32
|
+
# Always true.
|
|
33
|
+
#
|
|
34
|
+
# @param object [Symbol, :"agent.automation.deleted"]
|
|
35
|
+
# Always `agent.automation.deleted`.
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|