Class: OpenAI::Models::Responses::ResponseSteerInput::ResponseSteerInputItemList::Message

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

Defined Under Namespace

Modules: Content

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_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, 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(content:, id: nil, status: nil, role: :user, type: :message) ⇒ Object

Parameters:



# File 'lib/openai/models/responses/response_steer_input.rb', line 72

Instance Attribute Details

#contentArray<OpenAI::Models::Responses::ResponseInputTextContent, OpenAI::Models::Responses::ResponseInputImageContent, OpenAI::Models::Responses::ResponseInputFileContent>, String

The message content, as an array of content parts.

Parameters:

  • value (OpenAI::Models::Responses::ResponseSteerInput::ResponseSteerInputItemList::Message::content)

Returns:



43
44
45
46
# File 'lib/openai/models/responses/response_steer_input.rb', line 43

required(
  :content,
  union: -> { OpenAI::Responses::ResponseSteerInput::ResponseSteerInputItemList::Message::Content }
)

#idString?

The unique ID of this message item.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


64
# File 'lib/openai/models/responses/response_steer_input.rb', line 64

optional :id, String, nil?: true

#roleSymbol, :user

The message role. Always user.

Parameters:

  • value (:user)

Returns:

  • (Symbol, :user)


52
# File 'lib/openai/models/responses/response_steer_input.rb', line 52

required :role, const: :user

#statusString?

The status of the message item.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


70
# File 'lib/openai/models/responses/response_steer_input.rb', line 70

optional :status, String, nil?: true

#typeSymbol, :message

The item type. Always message.

Parameters:

  • value (:message)

Returns:

  • (Symbol, :message)


58
# File 'lib/openai/models/responses/response_steer_input.rb', line 58

required :type, const: :message

Instance Method Details

#to_hash{

Returns:

  • ({)


46
# File 'sig/openai/models/responses/response_steer_input.rbs', line 46

def to_hash: -> {