Class: AgUiProtocol::Core::Capabilities::ReasoningCapabilities

Inherits:
Types::Model
  • Object
show all
Defined in:
lib/ag_ui_protocol/core/capabilities.rb

Overview

Reasoning and thinking capabilities.

Enable these when your agent exposes its internal thought process (e.g., chain-of-thought, extended thinking).

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Types::Model

#as_json, #to_json

Constructor Details

#initialize(supported: nil, streaming: nil, encrypted: nil) ⇒ ReasoningCapabilities

Returns a new instance of ReasoningCapabilities.



379
380
381
382
383
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 379

def initialize(supported: nil, streaming: nil, encrypted: nil)
  @supported = supported
  @streaming = streaming
  @encrypted = encrypted
end

Instance Attribute Details

#encryptedObject (readonly)

Returns the value of attribute encrypted.



367
368
369
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 367

def encrypted
  @encrypted
end

#streamingObject (readonly)

Returns the value of attribute streaming.



364
365
366
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 364

def streaming
  @streaming
end

#supportedObject (readonly)

Returns the value of attribute supported.



361
362
363
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 361

def supported
  @supported
end

Instance Method Details

#to_hObject



386
387
388
389
390
391
392
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 386

def to_h
  {
    supported: @supported,
    streaming: @streaming,
    encrypted: @encrypted
  }
end