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

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 ⇒ Object

Parameters:

  • id —

    The unique ID of the agent message.

  • author —

    The sending agent identity.

  • content —

    Encrypted content sent between agents.

  • recipient —

    The destination agent identity.

  • agent —

    The agent that produced this item.

  • type —

    The type of the item. Always agent_message.



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

def initialize: (

Instance Attribute Details

#agent ⇒ OpenAI::Beta::BetaResponseOutputItem::AgentMessage::Agent? (readonly)

The agent that produced this item.

Returns:

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


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

def agent
  @agent
end

#author ⇒ String

The sending agent identity.

Returns:

  • (String)


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

def author
  @author
end

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

Encrypted content sent between agents.

Returns:

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


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

def content
  @content
end

#id ⇒ String

The unique ID of the agent message.

Returns:

  • (String)


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

def id
  @id
end

#recipient ⇒ String

The destination agent identity.

Returns:

  • (String)


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

def recipient
  @recipient
end

#type ⇒ :agent_message

The type of the item. Always agent_message.

Returns:

  • (:agent_message)


66
67
68
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 66

def type
  @type
end

Instance Method Details

#agent= ⇒ Object (readonly)

The agent that produced this item.



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

def agent=: (

#to_hash ⇒ {

Returns:

  • ({)


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

def to_hash: -> {