Class: OpenAI::Models::BetaResponseOutputItem::Beta::BetaResponseOutputItem::AgentMessage

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

Defined Under Namespace

Modules: Content Classes: Agent

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #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



69
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 69

def initialize: (

Instance Attribute Details

#agentOpenAI::Beta::BetaResponseOutputItem::AgentMessage::Agent? (readonly)

Returns the value of attribute agent.

Returns:

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


63
64
65
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 63

def agent
  @agent
end

#authorString

Returns the value of attribute author.

Returns:

  • (String)


55
56
57
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 55

def author
  @author
end

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

Returns the value of attribute content.

Returns:

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


57
58
59
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 57

def content
  @content
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


53
54
55
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 53

def id
  @id
end

#recipientString

Returns the value of attribute recipient.

Returns:

  • (String)


59
60
61
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 59

def recipient
  @recipient
end

#type:agent_message

Returns the value of attribute type.

Returns:

  • (:agent_message)


61
62
63
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 61

def type
  @type
end

Instance Method Details

#agent=Object (readonly)



65
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 65

def agent=: (

#to_hash{

Returns:

  • ({)


78
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 78

def to_hash: -> {