Class: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::MultiAgent

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

Overview

See Also:

  • OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate#multi_agent

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

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 ⇒ MultiAgent

Returns a new instance of MultiAgent.

Parameters:

  • enabled —

    Whether to enable server-hosted multi-agent execution for this response.

  • max_concurrent_subagents —

    max_concurrent_subagents sets the maximum number of subagents that can be active simultaneously across the entire agent tree. It includes all descendants—children, grandchildren, and deeper subagents—but excludes the root agent. The API does not impose a fixed upper bound on this setting. The default is 3, which is recommended for most workloads. Multi-agent runs also have no fixed limit on tree depth or the total number of subagents created during a run.

  • enabled: (Boolean)
  • max_concurrent_subagents: (Integer)


1363
1364
1365
1366
# File 'sig/openai/models/beta/beta_responses_client_event.rbs', line 1363

def initialize: (
  enabled: bool,
  ?max_concurrent_subagents: Integer
) -> void

Instance Attribute Details

#enabled ⇒ Boolean

Whether to enable server-hosted multi-agent execution for this response.

Returns:



1959
# File 'lib/openai/models/beta/beta_responses_client_event.rb', line 1959

required :enabled, OpenAI::Internal::Type::Boolean

#max_concurrent_subagents ⇒ Integer?

max_concurrent_subagents sets the maximum number of subagents that can be active simultaneously across the entire agent tree. It includes all descendants—children, grandchildren, and deeper subagents—but excludes the root agent. The API does not impose a fixed upper bound on this setting. The default is 3, which is recommended for most workloads. Multi-agent runs also have no fixed limit on tree depth or the total number of subagents created during a run.

Returns:

  • (Integer, nil)


1970
# File 'lib/openai/models/beta/beta_responses_client_event.rb', line 1970

optional :max_concurrent_subagents, Integer

Instance Method Details

#to_hash ⇒ { enabled: bool, ?max_concurrent_subagents: Integer }

Returns:

  • ({ enabled: bool, ?max_concurrent_subagents: Integer })


1368
1369
1370
1371
# File 'sig/openai/models/beta/beta_responses_client_event.rbs', line 1368

def to_hash: -> {
  enabled: bool,
  ?max_concurrent_subagents: Integer
}