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

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/beta_response_output_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_output_item.rb', line 140

Instance Attribute Details

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

The agent that produced this item.



138
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 138

optional :agent, -> { OpenAI::Beta::BetaResponseOutputItem::AgentMessage::Agent }

#authorString

The sending agent identity.

Returns:

  • (String)


113
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 113

required :author, String

#contentArray<OpenAI::Models::Beta::BetaResponseInputText, OpenAI::Models::Beta::BetaResponseOutputText, OpenAI::Models::Beta::BetaResponseOutputItem::AgentMessage::Content::Text, OpenAI::Models::Beta::BetaResponseOutputItem::AgentMessage::Content::SummaryText, OpenAI::Models::Beta::BetaResponseOutputItem::AgentMessage::Content::ReasoningText, OpenAI::Models::Beta::BetaResponseOutputRefusal, OpenAI::Models::Beta::BetaResponseInputImage, OpenAI::Models::Beta::BetaResponseOutputItem::AgentMessage::Content::ComputerScreenshot, OpenAI::Models::Beta::BetaResponseInputFile, OpenAI::Models::Beta::BetaResponseOutputItem::AgentMessage::Content::EncryptedContent>

Encrypted content sent between agents.



119
120
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 119

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

#idString

The unique ID of the agent message.

Returns:

  • (String)


107
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 107

required :id, String

#recipientString

The destination agent identity.

Returns:

  • (String)


126
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 126

required :recipient, String

#typeSymbol, :agent_message

The type of the item. Always agent_message.

Returns:

  • (Symbol, :agent_message)


132
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 132

required :type, const: :agent_message