Class: OpenAI::Models::Beta::AgentUpdateParams

Inherits:
Internal::Type::BaseModel show all
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

See Also:

  • OpenAI::Resources::Beta::Agents#update

Defined Under Namespace

Modules: ServiceTier Classes: Compaction, Experimental

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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.

Parameters:

  • compaction —

    Context compaction settings. Omit to keep the current settings. A supplied object replaces the settings; null or an empty object uses blocking compaction.

  • experimental —

    Experimental settings to merge by key. Omitted settings keep their current values.

  • instructions —

    Additional instructions appended to the agent's default base instructions. Omit to leave unchanged.

  • metadata —

    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.

  • model —

    The model to use for the agent. The requested model name is preserved.

  • multi_agent —

    Configuration for creating and coordinating subagents.

  • name —

    A replacement name. Omit to leave unchanged, or pass null to clear it.

  • reasoning —

    Configuration for model reasoning. Omit to keep the current settings; pass null to reset to the model's default effort.

  • service_tier —

    The service tier used for model requests.

  • text —

    Configuration for text generated by the agent.

  • tools —

    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.

  • agent_id: (String)
  • compaction: (OpenAI::Beta::AgentUpdateParams::Compaction, nil)
  • experimental: (OpenAI::Beta::AgentUpdateParams::Experimental)
  • instructions: (String, nil)
  • metadata: (::Hash[Symbol, String], nil)
  • model: (String)
  • multi_agent: (OpenAI::Beta::MultiAgentConfigParam, nil)
  • name: (String, nil)
  • reasoning: (OpenAI::Beta::AgentReasoningParam, nil)
  • service_tier: (OpenAI::Models::Beta::AgentUpdateParams::service_tier, nil)
  • text: (OpenAI::Beta::AgentTextParam, nil)
  • tools: (::Array[OpenAI::Models::Beta::persisted_agent_tool_param], nil)
  • request_options: (OpenAI::request_opts)


# File 'lib/openai/models/beta/agent_update_params.rb', line 147

Instance Attribute Details

#agent_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (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.

Returns:

  • (OpenAI::Beta::AgentUpdateParams::Compaction, nil)


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.

Returns:

  • (OpenAI::Beta::AgentUpdateParams::Experimental, nil)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (::Hash[Symbol, String], nil)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (OpenAI::Beta::MultiAgentConfigParam, nil)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (OpenAI::Beta::AgentReasoningParam, nil)


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.

Returns:

  • (OpenAI::Models::Beta::AgentUpdateParams::service_tier, nil)


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.

Returns:

  • (OpenAI::Beta::AgentTextParam, nil)


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.

Returns:

  • (::Array[OpenAI::Models::Beta::persisted_agent_tool_param], nil)


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 }

Returns:

  • ({ 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
}