Class: AgUiProtocol::Core::Capabilities::MultiAgentCapabilities

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

Overview

Multi-agent coordination capabilities.

Enable these when your agent can orchestrate or hand off work to other agents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Types::Model

#as_json, #to_json

Constructor Details

#initialize(supported: nil, delegation: nil, handoffs: nil, sub_agents: nil) ⇒ MultiAgentCapabilities

Returns a new instance of MultiAgentCapabilities.



335
336
337
338
339
340
341
342
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 335

def initialize(
  supported: nil, delegation: nil, handoffs: nil, sub_agents: nil
)
  @supported = supported
  @delegation = delegation
  @handoffs = handoffs
  @sub_agents = sub_agents
end

Instance Attribute Details

#delegationObject (readonly)

Returns the value of attribute delegation.



315
316
317
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 315

def delegation
  @delegation
end

#handoffsObject (readonly)

Returns the value of attribute handoffs.



318
319
320
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 318

def handoffs
  @handoffs
end

#sub_agentsObject (readonly)

Returns the value of attribute sub_agents.



321
322
323
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 321

def sub_agents
  @sub_agents
end

#supportedObject (readonly)

Returns the value of attribute supported.



312
313
314
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 312

def supported
  @supported
end

Instance Method Details

#to_hObject



345
346
347
348
349
350
351
352
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 345

def to_h
  {
    supported: @supported,
    delegation: @delegation,
    handoffs: @handoffs,
    sub_agents: @sub_agents
  }
end