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

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

Defined Under Namespace

Modules: Content Classes: Agent

Instance Attribute Summary collapse

Class Method 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

#initialize(encrypted_content:, type: :encrypted_content) ⇒ Object

Opaque encrypted content that Responses API decrypts inside trusted model execution.

Parameters:

  • encrypted_content (String)

    Opaque encrypted content.

  • type (Symbol, :encrypted_content) (defaults to: :encrypted_content)

    The type of the input item. Always encrypted_content.



# File 'lib/openai/models/beta/beta_response_input_item.rb', line 570

Instance Attribute Details

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

The agent that produced this item.



568
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 568

optional :agent, -> { OpenAI::Beta::BetaResponseInputItem::AgentMessage::Agent }, nil?: true

#authorString

The sending agent identity.

Returns:

  • (String)


537
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 537

required :author, String

#contentArray<OpenAI::Models::Beta::BetaResponseInputTextContent, OpenAI::Models::Beta::BetaResponseInputImageContent, OpenAI::Models::Beta::BetaResponseInputItem::AgentMessage::Content::EncryptedContent>

Plaintext, image, or encrypted content sent between agents.



543
544
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 543

required :content,
-> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::BetaResponseInputItem::AgentMessage::Content] }

#idString?

The unique ID of this agent message item.

Returns:

  • (String, nil)


562
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 562

optional :id, String, nil?: true

#recipientString

The destination agent identity.

Returns:

  • (String)


550
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 550

required :recipient, String

#typeSymbol, :agent_message

The item type. Always agent_message.

Returns:

  • (Symbol, :agent_message)


556
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 556

required :type, const: :agent_message