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

#initialize ⇒ Object

Parameters:

  • author —

    The sending agent identity.

  • content —

    Plaintext, image, or encrypted content sent between agents.

  • recipient —

    The destination agent identity.

  • id —

    The unique ID of this agent message item.

  • agent —

    The agent that produced this item.

  • type —

    The item type. Always agent_message.



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

def initialize: (

Instance Attribute Details

#agent ⇒ OpenAI::Beta::BetaResponseInputItem::AgentMessage::Agent?

The agent that produced this item.

Returns:

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


477
478
479
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 477

def agent
  @agent
end

#author ⇒ String

The sending agent identity.

Returns:

  • (String)


462
463
464
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 462

def author
  @author
end

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

Plaintext, image, or encrypted content sent between agents.

Returns:

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


465
466
467
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 465

def content
  @content
end

#id ⇒ String?

The unique ID of this agent message item.

Returns:

  • (String, nil)


474
475
476
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 474

def id
  @id
end

#recipient ⇒ String

The destination agent identity.

Returns:

  • (String)


468
469
470
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 468

def recipient
  @recipient
end

#type ⇒ :agent_message

The item type. Always agent_message.

Returns:

  • (:agent_message)


471
472
473
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 471

def type
  @type
end

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


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

def to_hash: -> {