Class: OpenAI::Models::BetaResponseInputItem::Beta::BetaResponseInputItem::AgentMessage

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/beta/beta_response_input_item.rbs

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

#initializeObject



367
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 367

def initialize: (

Instance Attribute Details

#agentOpenAI::Beta::BetaResponseInputItem::AgentMessage::Agent?

Returns the value of attribute agent.

Returns:

  • (OpenAI::Beta::BetaResponseInputItem::AgentMessage::Agent, nil)


365
366
367
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 365

def agent
  @agent
end

#authorString

Returns the value of attribute author.

Returns:

  • (String)


355
356
357
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 355

def author
  @author
end

#content::Array[OpenAI::Models::Beta::BetaResponseInputItem::AgentMessage::content]

Returns the value of attribute content.

Returns:

  • (::Array[OpenAI::Models::Beta::BetaResponseInputItem::AgentMessage::content])


357
358
359
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 357

def content
  @content
end

#idString?

Returns the value of attribute id.

Returns:

  • (String, nil)


363
364
365
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 363

def id
  @id
end

#recipientString

Returns the value of attribute recipient.

Returns:

  • (String)


359
360
361
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 359

def recipient
  @recipient
end

#type:agent_message

Returns the value of attribute type.

Returns:

  • (:agent_message)


361
362
363
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 361

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


376
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 376

def to_hash: -> {