Class: Cadenya::Types::WorkspaceInfo
- Inherits:
-
Object
- Object
- Cadenya::Types::WorkspaceInfo
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#total_agent_variations ⇒ Object
readonly
Returns the value of attribute total_agent_variations.
-
#total_agents ⇒ Object
readonly
Returns the value of attribute total_agents.
-
#total_available_tools ⇒ Object
readonly
Returns the value of attribute total_available_tools.
-
#total_memory_entries ⇒ Object
readonly
Returns the value of attribute total_memory_entries.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(total_available_tools: nil, total_memory_entries: nil, total_agents: nil, total_agent_variations: nil) ⇒ WorkspaceInfo
constructor
A new instance of WorkspaceInfo.
- #to_h ⇒ Object
Constructor Details
#initialize(total_available_tools: nil, total_memory_entries: nil, total_agents: nil, total_agent_variations: nil) ⇒ WorkspaceInfo
Returns a new instance of WorkspaceInfo.
7526 7527 7528 7529 7530 7531 |
# File 'lib/cadenya/types.rb', line 7526 def initialize(total_available_tools: nil, total_memory_entries: nil, total_agents: nil, total_agent_variations: nil) @total_available_tools = total_available_tools @total_memory_entries = total_memory_entries @total_agents = total_agents @total_agent_variations = total_agent_variations end |
Instance Attribute Details
#total_agent_variations ⇒ Object (readonly)
Returns the value of attribute total_agent_variations.
7524 7525 7526 |
# File 'lib/cadenya/types.rb', line 7524 def total_agent_variations @total_agent_variations end |
#total_agents ⇒ Object (readonly)
Returns the value of attribute total_agents.
7524 7525 7526 |
# File 'lib/cadenya/types.rb', line 7524 def total_agents @total_agents end |
#total_available_tools ⇒ Object (readonly)
Returns the value of attribute total_available_tools.
7524 7525 7526 |
# File 'lib/cadenya/types.rb', line 7524 def total_available_tools @total_available_tools end |
#total_memory_entries ⇒ Object (readonly)
Returns the value of attribute total_memory_entries.
7524 7525 7526 |
# File 'lib/cadenya/types.rb', line 7524 def total_memory_entries @total_memory_entries end |
Class Method Details
.from_json(data) ⇒ Object
7533 7534 7535 7536 7537 7538 7539 7540 |
# File 'lib/cadenya/types.rb', line 7533 def self.from_json(data) new( total_available_tools: data["totalAvailableTools"], total_memory_entries: data["totalMemoryEntries"], total_agents: data["totalAgents"], total_agent_variations: data["totalAgentVariations"], ) end |
Instance Method Details
#to_h ⇒ Object
7542 7543 7544 7545 7546 7547 7548 7549 |
# File 'lib/cadenya/types.rb', line 7542 def to_h { total_available_tools: Util.plain(@total_available_tools), total_memory_entries: Util.plain(@total_memory_entries), total_agents: Util.plain(@total_agents), total_agent_variations: Util.plain(@total_agent_variations), }.reject { |_k, v| v.nil? } end |