Class: OpenAI::Models::Beta::Agents::AutomationAgentConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/agents/automation_agent_config.rb,
sig/openai/models/beta/agents/automation_agent_config.rbs

Defined Under Namespace

Modules: ServiceTier Classes: Compaction, Experimental

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

Instance Method Summary collapse

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(async:) ⇒ AutomationAgentConfig

Returns a new instance of AutomationAgentConfig.

Parameters:

  • instructions —

    Custom instructions, or null when absent.

  • model —

    The requested model name.

  • multi_agent —

    The configuration for creating and coordinating subagents.

  • reasoning —

    The configured reasoning policy.

  • service_tier —

    The configured service-tier policy.

  • text —

    The configured output format and verbosity.

  • tools —

    Configured tools, excluding confidential credentials.

  • compaction —

    The effective context compaction settings.

  • experimental —

    The effective experimental settings for the agent.

  • instructions: (String, nil)
  • model: (String)
  • multi_agent: (OpenAI::Beta::MultiAgentConfig)
  • reasoning: (OpenAI::Beta::AgentReasoning)
  • service_tier: (OpenAI::Models::Beta::Agents::AutomationAgentConfig::service_tier)
  • text: (OpenAI::Beta::AgentText)
  • tools: (::Array[OpenAI::Models::Beta::agent_tool])
  • compaction: (OpenAI::Beta::Agents::AutomationAgentConfig::Compaction)
  • experimental: (OpenAI::Beta::Agents::AutomationAgentConfig::Experimental)


# File 'lib/openai/models/beta/agents/automation_agent_config.rb', line 62

Instance Attribute Details

#compaction ⇒ OpenAI::Beta::Agents::AutomationAgentConfig::Compaction?

The effective context compaction settings.

Returns:

  • (OpenAI::Beta::Agents::AutomationAgentConfig::Compaction, nil)


54
# File 'lib/openai/models/beta/agents/automation_agent_config.rb', line 54

optional :compaction, -> { OpenAI::Beta::Agents::AutomationAgentConfig::Compaction }

#experimental ⇒ OpenAI::Beta::Agents::AutomationAgentConfig::Experimental?

The effective experimental settings for the agent.

Returns:

  • (OpenAI::Beta::Agents::AutomationAgentConfig::Experimental, nil)


60
# File 'lib/openai/models/beta/agents/automation_agent_config.rb', line 60

optional :experimental, -> { OpenAI::Beta::Agents::AutomationAgentConfig::Experimental }

#instructions ⇒ String?

Custom instructions, or null when absent.

Returns:

  • (String, nil)


12
# File 'lib/openai/models/beta/agents/automation_agent_config.rb', line 12

required :instructions, String, nil?: true

#model ⇒ String

The requested model name.

Returns:

  • (String)


18
# File 'lib/openai/models/beta/agents/automation_agent_config.rb', line 18

required :model, String

#multi_agent ⇒ OpenAI::Beta::MultiAgentConfig

The configuration for creating and coordinating subagents.

Returns:

  • (OpenAI::Beta::MultiAgentConfig)


24
# File 'lib/openai/models/beta/agents/automation_agent_config.rb', line 24

required :multi_agent, -> { OpenAI::Beta::MultiAgentConfig }

#reasoning ⇒ OpenAI::Beta::AgentReasoning

The configured reasoning policy.

Returns:

  • (OpenAI::Beta::AgentReasoning)


30
# File 'lib/openai/models/beta/agents/automation_agent_config.rb', line 30

required :reasoning, -> { OpenAI::Beta::AgentReasoning }

#service_tier ⇒ OpenAI::Models::Beta::Agents::AutomationAgentConfig::service_tier

The configured service-tier policy.

Returns:

  • (OpenAI::Models::Beta::Agents::AutomationAgentConfig::service_tier)


36
# File 'lib/openai/models/beta/agents/automation_agent_config.rb', line 36

required :service_tier, enum: -> { OpenAI::Beta::Agents::AutomationAgentConfig::ServiceTier }

#text ⇒ OpenAI::Beta::AgentText

The configured output format and verbosity.

Returns:

  • (OpenAI::Beta::AgentText)


42
# File 'lib/openai/models/beta/agents/automation_agent_config.rb', line 42

required :text, -> { OpenAI::Beta::AgentText }

#tools ⇒ ::Array[OpenAI::Models::Beta::agent_tool]

Configured tools, excluding confidential credentials.

Returns:

  • (::Array[OpenAI::Models::Beta::agent_tool])


48
# File 'lib/openai/models/beta/agents/automation_agent_config.rb', line 48

required :tools, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::AgentTool] }

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/beta/agents/automation_agent_config.rb', line 105

Instance Method Details

#to_hash ⇒ { instructions: String?, model: String, multi_agent: OpenAI::Beta::MultiAgentConfig, reasoning: OpenAI::Beta::AgentReasoning, service_tier: OpenAI::Models::Beta::Agents::AutomationAgentConfig::service_tier, text: OpenAI::Beta::AgentText, tools: ::Array[OpenAI::Models::Beta::agent_tool], ?compaction: OpenAI::Beta::Agents::AutomationAgentConfig::Compaction, ?experimental: OpenAI::Beta::Agents::AutomationAgentConfig::Experimental }

Returns:

  • ({ instructions: String?, model: String, multi_agent: OpenAI::Beta::MultiAgentConfig, reasoning: OpenAI::Beta::AgentReasoning, service_tier: OpenAI::Models::Beta::Agents::AutomationAgentConfig::service_tier, text: OpenAI::Beta::AgentText, tools: ::Array[OpenAI::Models::Beta::agent_tool], ?compaction: OpenAI::Beta::Agents::AutomationAgentConfig::Compaction, ?experimental: OpenAI::Beta::Agents::AutomationAgentConfig::Experimental })


86
87
88
89
90
91
92
93
94
95
96
# File 'sig/openai/models/beta/agents/automation_agent_config.rbs', line 86

def to_hash: -> {
  instructions: String?,
  model: String,
  multi_agent: OpenAI::Beta::MultiAgentConfig,
  reasoning: OpenAI::Beta::AgentReasoning,
  service_tier: OpenAI::Models::Beta::Agents::AutomationAgentConfig::service_tier,
  text: OpenAI::Beta::AgentText,
  tools: ::Array[OpenAI::Models::Beta::agent_tool],
  ?compaction: OpenAI::Beta::Agents::AutomationAgentConfig::Compaction,
  ?experimental: OpenAI::Beta::Agents::AutomationAgentConfig::Experimental
}