Class: OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::Message

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/beta_response_steer_input.rb

Defined Under Namespace

Modules: Content Classes: 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_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, agent: nil, status: nil, role: :user, type: :message) ⇒ Object

Parameters:



# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 82

Instance Attribute Details

#agentOpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::Message::Agent?

The agent that produced this item.



70
71
72
73
74
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 70

optional(
  :agent,
  -> { OpenAI::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::Message::Agent },
  nil?: true
)

#contentArray<OpenAI::Models::Beta::BetaResponseInputTextContent, OpenAI::Models::Beta::BetaResponseInputImageContent, OpenAI::Models::Beta::BetaResponseInputFileContent>, String

The message content, as an array of content parts.



43
44
45
46
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 43

required(
  :content,
  union: -> { OpenAI::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::Message::Content }
)

#idString?

The unique ID of this message item.

Returns:

  • (String, nil)


64
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 64

optional :id, String, nil?: true

#roleSymbol, :user

The message role. Always user.

Returns:

  • (Symbol, :user)


52
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 52

required :role, const: :user

#statusString?

The status of the message item.

Returns:

  • (String, nil)


80
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 80

optional :status, String, nil?: true

#typeSymbol, :message

The item type. Always message.

Returns:

  • (Symbol, :message)


58
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 58

required :type, const: :message