Class: AgUiProtocol::Core::Events::ReasoningEncryptedValueEvent
- Inherits:
-
BaseEvent
- Object
- Types::Model
- BaseEvent
- AgUiProtocol::Core::Events::ReasoningEncryptedValueEvent
- 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
-
#encrypted_value ⇒ Object
readonly
Returns the value of attribute encrypted_value.
-
#entity_id ⇒ Object
readonly
Returns the value of attribute entity_id.
-
#subtype ⇒ Object
readonly
Returns the value of attribute subtype.
Attributes inherited from BaseEvent
Instance Method Summary collapse
-
#initialize(subtype:, entity_id:, encrypted_value:, timestamp: nil, raw_event: nil) ⇒ ReasoningEncryptedValueEvent
constructor
A new instance of ReasoningEncryptedValueEvent.
- #to_h ⇒ Object
Methods inherited from Types::Model
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: , raw_event: raw_event) @subtype = subtype @entity_id = entity_id @encrypted_value = encrypted_value end |
Instance Attribute Details
#encrypted_value ⇒ Object (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_id ⇒ Object (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 |
#subtype ⇒ Object (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_h ⇒ Object
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 |