Class: AgUiProtocol::Core::Events::ReasoningEncryptedValueEvent

Inherits:
BaseEvent show all
Defined in:
lib/ag_ui_protocol/core/events.rb

Overview

Event containing an encrypted value within a reasoning block.

“‘ruby event = AgUiProtocol::Core::Events::ReasoningEncryptedValueEvent.new(

subtype: "tool-call",
entity_id: "tc_1",
encrypted_value: "encrypted..."

) “‘

Instance Attribute Summary collapse

Attributes inherited from BaseEvent

#raw_event, #timestamp, #type

Instance Method Summary collapse

Methods inherited from Types::Model

#as_json, #to_json

Constructor Details

#initialize(subtype:, entity_id:, encrypted_value:, timestamp: nil, raw_event: nil) ⇒ ReasoningEncryptedValueEvent

Returns a new instance of ReasoningEncryptedValueEvent.



1366
1367
1368
1369
1370
1371
# File 'lib/ag_ui_protocol/core/events.rb', line 1366

def initialize(subtype:, entity_id:, encrypted_value:, timestamp: nil, raw_event: nil)
  super(type: EventType::REASONING_ENCRYPTED_VALUE, timestamp: timestamp, raw_event: raw_event)
  @subtype = subtype
  @entity_id = entity_id
  @encrypted_value = encrypted_value
end

Instance Attribute Details

#encrypted_valueObject (readonly)

Returns the value of attribute encrypted_value.



1350
1351
1352
# File 'lib/ag_ui_protocol/core/events.rb', line 1350

def encrypted_value
  @encrypted_value
end

#entity_idObject (readonly)

Returns the value of attribute entity_id.



1347
1348
1349
# File 'lib/ag_ui_protocol/core/events.rb', line 1347

def entity_id
  @entity_id
end

#subtypeObject (readonly)

Returns the value of attribute subtype.



1344
1345
1346
# File 'lib/ag_ui_protocol/core/events.rb', line 1344

def subtype
  @subtype
end

Instance Method Details

#to_hObject



1374
1375
1376
# File 'lib/ag_ui_protocol/core/events.rb', line 1374

def to_h
  super.merge(subtype: @subtype, entity_id: @entity_id, encrypted_value: @encrypted_value)
end