Class: OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent
- Defined in:
- lib/openai/models/beta/agents/session_update_params.rb,
sig/openai/models/beta/agents/session_update_params.rbs
Defined Under Namespace
Modules: ServiceTier Classes: Reasoning
Instance Attribute Summary collapse
-
#model ⇒ String?
The model for subsequent turns.
-
#reasoning ⇒ OpenAI::Beta::Agents::SessionUpdateParams::Agent::Reasoning?
Reasoning settings to update.
-
#service_tier ⇒ OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent::service_tier?
Omit to keep the current tier.
-
#tools ⇒ ::Array[OpenAI::Models::Beta::agent_tool_param]?
Replaces the session tools.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(model: nil, reasoning: nil, service_tier: nil, tools: nil) ⇒ Agent
constructor
A new instance of Agent.
- #to_hash ⇒ { ?model: String, ?reasoning: OpenAI::Beta::Agents::SessionUpdateParams::Agent::Reasoning, ?service_tier: OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent::service_tier?, ?tools: ::Array[OpenAI::Models::Beta::agent_tool_param]? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(model: nil, reasoning: nil, service_tier: nil, tools: nil) ⇒ Agent
Returns a new instance of Agent.
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/openai/models/beta/agents/session_update_params.rb', line 98 class Agent < OpenAI::Internal::Type::BaseModel # @!attribute model # The model for subsequent turns. Omit to keep the current model. # # @return [String, nil] optional :model, String # @!attribute reasoning # Reasoning settings to update. Omit to keep the current effort. # # @return [OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent::Reasoning, nil] optional :reasoning, -> { OpenAI::Beta::Agents::SessionUpdateParams::Agent::Reasoning } # @!attribute service_tier # Omit to keep the current tier. Null resets it to auto. # # @return [Symbol, OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent::ServiceTier, nil] optional( :service_tier, enum: -> { OpenAI::Beta::Agents::SessionUpdateParams::Agent::ServiceTier }, nil?: true ) # @!attribute tools # Replaces the session tools. Functions and MCP servers change on the next model # call. Built-in tools change by the next turn. Omit to keep the current tools, or # pass null or an empty array to clear them. # # @return [Array<OpenAI::Models::Beta::AgentToolParam::Function, OpenAI::Models::Beta::AgentToolParam::ToolSearch, OpenAI::Models::Beta::AgentToolParam::ProgrammaticToolCalling, OpenAI::Models::Beta::AgentToolParam::Mcp, OpenAI::Models::Beta::AgentToolParam::WebSearch, OpenAI::Models::Beta::AgentToolParam::ComputerUse, OpenAI::Models::Beta::AgentToolParam::Automations>, nil] optional( :tools, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::AgentToolParam] }, nil?: true ) # @!method initialize(model: nil, reasoning: nil, service_tier: nil, tools: nil) # Agent settings to update on this session. Omitted fields stay unchanged. # # @param model [String] # The model for subsequent turns. Omit to keep the current model. # # @param reasoning [OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent::Reasoning] # Reasoning settings to update. Omit to keep the current effort. # # @param service_tier [Symbol, OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent::ServiceTier, nil] # Omit to keep the current tier. Null resets it to auto. # # @param tools [Array<OpenAI::Models::Beta::AgentToolParam::Function, OpenAI::Models::Beta::AgentToolParam::ToolSearch, OpenAI::Models::Beta::AgentToolParam::ProgrammaticToolCalling, OpenAI::Models::Beta::AgentToolParam::Mcp, OpenAI::Models::Beta::AgentToolParam::WebSearch, OpenAI::Models::Beta::AgentToolParam::ComputerUse, OpenAI::Models::Beta::AgentToolParam::Automations>, nil] # Replaces the session tools. Functions and MCP servers change on the next model # call. Built-in tools change by the next turn. Omit to keep the current tools, or # pass null or an empty array to clear them. # @see OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent#reasoning class Reasoning < OpenAI::Internal::Type::BaseModel # @!attribute effort # Omit to keep the current effort. Null selects the model's default effort. # # @return [Symbol, OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent::Reasoning::Effort, nil] optional( :effort, enum: -> { OpenAI::Beta::Agents::SessionUpdateParams::Agent::Reasoning::Effort }, nil?: true ) # @!method initialize(effort: nil) # Reasoning settings to update. Omit to keep the current effort. # # @param effort [Symbol, OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent::Reasoning::Effort, nil] # Omit to keep the current effort. Null selects the model's default effort. # Omit to keep the current effort. Null selects the model's default effort. # # @see OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent::Reasoning#effort module Effort extend OpenAI::Internal::Type::Enum NONE = :none MINIMAL = :minimal LOW = :low MEDIUM = :medium HIGH = :high XHIGH = :xhigh MAX = :max # @!method self.values # @return [Array<Symbol>] end end # Omit to keep the current tier. Null resets it to auto. # # @see OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent#service_tier module ServiceTier extend OpenAI::Internal::Type::Enum # Selects the service tier automatically. AUTO = :auto # Uses the default service tier. DEFAULT = :default # Uses the flex service tier. FLEX = :flex # Uses the priority service tier. PRIORITY = :priority # Uses the fast service tier. FAST = :fast # Uses the ultrafast service tier. ULTRAFAST = :ultrafast # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#model ⇒ String?
The model for subsequent turns. Omit to keep the current model.
103 |
# File 'lib/openai/models/beta/agents/session_update_params.rb', line 103 optional :model, String |
#reasoning ⇒ OpenAI::Beta::Agents::SessionUpdateParams::Agent::Reasoning?
Reasoning settings to update. Omit to keep the current effort.
109 |
# File 'lib/openai/models/beta/agents/session_update_params.rb', line 109 optional :reasoning, -> { OpenAI::Beta::Agents::SessionUpdateParams::Agent::Reasoning } |
#service_tier ⇒ OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent::service_tier?
Omit to keep the current tier. Null resets it to auto.
115 116 117 118 119 |
# File 'lib/openai/models/beta/agents/session_update_params.rb', line 115 optional( :service_tier, enum: -> { OpenAI::Beta::Agents::SessionUpdateParams::Agent::ServiceTier }, nil?: true ) |
#tools ⇒ ::Array[OpenAI::Models::Beta::agent_tool_param]?
Replaces the session tools. Functions and MCP servers change on the next model call. Built-in tools change by the next turn. Omit to keep the current tools, or pass null or an empty array to clear them.
127 128 129 130 131 132 133 |
# File 'lib/openai/models/beta/agents/session_update_params.rb', line 127 optional( :tools, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::AgentToolParam] }, nil?: true ) |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/beta/agents/session_update_params.rb', line 184
|
Instance Method Details
#to_hash ⇒ { ?model: String, ?reasoning: OpenAI::Beta::Agents::SessionUpdateParams::Agent::Reasoning, ?service_tier: OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent::service_tier?, ?tools: ::Array[OpenAI::Models::Beta::agent_tool_param]? }
146 147 148 149 150 151 |
# File 'sig/openai/models/beta/agents/session_update_params.rbs', line 146
def to_hash: -> {
?model: String,
?reasoning: OpenAI::Beta::Agents::SessionUpdateParams::Agent::Reasoning,
?service_tier: OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent::service_tier?,
?tools: ::Array[OpenAI::Models::Beta::agent_tool_param]?
}
|