Class: OpenAI::Models::Beta::AgentUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::AgentUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/openai/models/beta/agent_update_params.rb,
sig/openai/models/beta/agent_update_params.rbs
Overview
Defined Under Namespace
Modules: ServiceTier Classes: Compaction, Experimental
Instance Attribute Summary collapse
- #agent_id ⇒ String
-
#compaction ⇒ OpenAI::Beta::AgentUpdateParams::Compaction?
Context compaction settings.
-
#experimental ⇒ OpenAI::Beta::AgentUpdateParams::Experimental?
Experimental settings to merge by key.
-
#instructions ⇒ String?
Additional instructions appended to the agent's default base instructions.
-
#metadata ⇒ ::Hash[Symbol, String]?
Replaces all metadata.
-
#model ⇒ String?
The model to use for the agent.
-
#multi_agent ⇒ OpenAI::Beta::MultiAgentConfigParam?
Configuration for creating and coordinating subagents.
-
#name ⇒ String?
A replacement name.
-
#reasoning ⇒ OpenAI::Beta::AgentReasoningParam?
Configuration for model reasoning.
-
#service_tier ⇒ OpenAI::Models::Beta::AgentUpdateParams::service_tier?
The service tier used for model requests.
-
#text ⇒ OpenAI::Beta::AgentTextParam?
Configuration for text generated by the agent.
-
#tools ⇒ ::Array[OpenAI::Models::Beta::persisted_agent_tool_param]?
Replaces the tool list.
Attributes included from Internal::Type::RequestParameters
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(time_awareness: nil) ⇒ AgentUpdateParams
constructor
A new instance of AgentUpdateParams.
- #to_hash ⇒ { agent_id: String, ?compaction: OpenAI::Beta::AgentUpdateParams::Compaction?, ?experimental: OpenAI::Beta::AgentUpdateParams::Experimental, ?instructions: String?, ?metadata: ::Hash[Symbol, String]?, ?model: String, ?multi_agent: OpenAI::Beta::MultiAgentConfigParam?, ?name: String?, ?reasoning: OpenAI::Beta::AgentReasoningParam?, ?service_tier: OpenAI::Models::Beta::AgentUpdateParams::service_tier?, ?text: OpenAI::Beta::AgentTextParam?, ?tools: ::Array[OpenAI::Models::Beta::persisted_agent_tool_param]?, ?request_options: OpenAI::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(time_awareness: nil) ⇒ AgentUpdateParams
Returns a new instance of AgentUpdateParams.
|
|
# File 'lib/openai/models/beta/agent_update_params.rb', line 147
|
Instance Attribute Details
#agent_id ⇒ String
14 |
# File 'lib/openai/models/beta/agent_update_params.rb', line 14 required :agent_id, String |
#compaction ⇒ OpenAI::Beta::AgentUpdateParams::Compaction?
Context compaction settings. Omit to keep the current settings. A supplied object replaces the settings; null or an empty object uses blocking compaction.
21 |
# File 'lib/openai/models/beta/agent_update_params.rb', line 21 optional :compaction, -> { OpenAI::Beta::AgentUpdateParams::Compaction }, nil?: true |
#experimental ⇒ OpenAI::Beta::AgentUpdateParams::Experimental?
Experimental settings to merge by key. Omitted settings keep their current values.
28 |
# File 'lib/openai/models/beta/agent_update_params.rb', line 28 optional :experimental, -> { OpenAI::Beta::AgentUpdateParams::Experimental } |
#instructions ⇒ String?
Additional instructions appended to the agent's default base instructions. Omit to leave unchanged.
35 |
# File 'lib/openai/models/beta/agent_update_params.rb', line 35 optional :instructions, String, nil?: true |
#metadata ⇒ ::Hash[Symbol, String]?
Replaces all metadata. Omit to leave unchanged, or pass null or {} to clear it. Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters.
43 |
# File 'lib/openai/models/beta/agent_update_params.rb', line 43 optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true |
#model ⇒ String?
The model to use for the agent. The requested model name is preserved.
49 |
# File 'lib/openai/models/beta/agent_update_params.rb', line 49 optional :model, String |
#multi_agent ⇒ OpenAI::Beta::MultiAgentConfigParam?
Configuration for creating and coordinating subagents.
55 |
# File 'lib/openai/models/beta/agent_update_params.rb', line 55 optional :multi_agent, -> { OpenAI::Beta::MultiAgentConfigParam }, nil?: true |
#name ⇒ String?
A replacement name. Omit to leave unchanged, or pass null to clear it.
61 |
# File 'lib/openai/models/beta/agent_update_params.rb', line 61 optional :name, String, nil?: true |
#reasoning ⇒ OpenAI::Beta::AgentReasoningParam?
Configuration for model reasoning. Omit to keep the current settings; pass
null to reset to the model's default effort.
68 |
# File 'lib/openai/models/beta/agent_update_params.rb', line 68 optional :reasoning, -> { OpenAI::Beta::AgentReasoningParam }, nil?: true |
#service_tier ⇒ OpenAI::Models::Beta::AgentUpdateParams::service_tier?
The service tier used for model requests.
74 |
# File 'lib/openai/models/beta/agent_update_params.rb', line 74 optional :service_tier, enum: -> { OpenAI::Beta::AgentUpdateParams::ServiceTier }, nil?: true |
#text ⇒ OpenAI::Beta::AgentTextParam?
Configuration for text generated by the agent.
80 |
# File 'lib/openai/models/beta/agent_update_params.rb', line 80 optional :text, -> { OpenAI::Beta::AgentTextParam }, nil?: true |
#tools ⇒ ::Array[OpenAI::Models::Beta::persisted_agent_tool_param]?
Replaces the tool list. Omit to leave it unchanged, or pass null to clear it. The replacement must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON.
87 88 89 90 91 |
# File 'lib/openai/models/beta/agent_update_params.rb', line 87 optional( :tools, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::PersistedAgentToolParam] }, nil?: true ) |
Instance Method Details
#to_hash ⇒ { agent_id: String, ?compaction: OpenAI::Beta::AgentUpdateParams::Compaction?, ?experimental: OpenAI::Beta::AgentUpdateParams::Experimental, ?instructions: String?, ?metadata: ::Hash[Symbol, String]?, ?model: String, ?multi_agent: OpenAI::Beta::MultiAgentConfigParam?, ?name: String?, ?reasoning: OpenAI::Beta::AgentReasoningParam?, ?service_tier: OpenAI::Models::Beta::AgentUpdateParams::service_tier?, ?text: OpenAI::Beta::AgentTextParam?, ?tools: ::Array[OpenAI::Models::Beta::persisted_agent_tool_param]?, ?request_options: OpenAI::RequestOptions }
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'sig/openai/models/beta/agent_update_params.rbs', line 121
def to_hash: -> {
agent_id: String,
?compaction: OpenAI::Beta::AgentUpdateParams::Compaction?,
?experimental: OpenAI::Beta::AgentUpdateParams::Experimental,
?instructions: String?,
?metadata: ::Hash[Symbol, String]?,
?model: String,
?multi_agent: OpenAI::Beta::MultiAgentConfigParam?,
?name: String?,
?reasoning: OpenAI::Beta::AgentReasoningParam?,
?service_tier: OpenAI::Models::Beta::AgentUpdateParams::service_tier?,
?text: OpenAI::Beta::AgentTextParam?,
?tools: ::Array[OpenAI::Models::Beta::persisted_agent_tool_param]?,
?request_options: OpenAI::RequestOptions
}
|