Module: OpenAI::Models::Beta::Agents::SessionCreateParams::Input

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/beta/agents/session_create_params.rb,
sig/openai/models/beta/agents/session_create_params.rbs

Overview

Initial input to submit when the session is created. A string is shorthand for a single user message. Required when environment.type is none, or when stream is true for an environment that is not self_hosted; optional for self-hosted and non-streaming execution environments.

Constant Summary collapse

AgentSessionInputMessageParamArray =
OpenAI::Internal::Type::ArrayOf[
  -> { OpenAI::Beta::AgentSessionInputMessageParam }
]

Class Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

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

Class Method Details

.variants ⇒ Array(String, Array<OpenAI::Models::Beta::AgentSessionInputMessageParam>)

Returns:



# File 'lib/openai/models/beta/agents/session_create_params.rb', line 325