Class: Cadenya::Types::ToolSetUsage
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSetUsage
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
readonly
Returns the value of attribute agent.
-
#agent_variation ⇒ Object
readonly
Returns the value of attribute agent_variation.
-
#assigned_at ⇒ Object
readonly
Returns the value of attribute assigned_at.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(agent_variation: nil, agent: nil, model: nil, assigned_at: nil) ⇒ ToolSetUsage
constructor
A new instance of ToolSetUsage.
- #to_h ⇒ Object
Constructor Details
#initialize(agent_variation: nil, agent: nil, model: nil, assigned_at: nil) ⇒ ToolSetUsage
Returns a new instance of ToolSetUsage.
6369 6370 6371 6372 6373 6374 |
# File 'lib/cadenya/types.rb', line 6369 def initialize(agent_variation: nil, agent: nil, model: nil, assigned_at: nil) @agent_variation = agent_variation @agent = agent @model = model @assigned_at = assigned_at end |
Instance Attribute Details
#agent ⇒ Object (readonly)
Returns the value of attribute agent.
6367 6368 6369 |
# File 'lib/cadenya/types.rb', line 6367 def agent @agent end |
#agent_variation ⇒ Object (readonly)
Returns the value of attribute agent_variation.
6367 6368 6369 |
# File 'lib/cadenya/types.rb', line 6367 def agent_variation @agent_variation end |
#assigned_at ⇒ Object (readonly)
Returns the value of attribute assigned_at.
6367 6368 6369 |
# File 'lib/cadenya/types.rb', line 6367 def assigned_at @assigned_at end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
6367 6368 6369 |
# File 'lib/cadenya/types.rb', line 6367 def model @model end |
Class Method Details
.from_json(data) ⇒ Object
6376 6377 6378 6379 6380 6381 6382 6383 |
# File 'lib/cadenya/types.rb', line 6376 def self.from_json(data) new( agent_variation: data["agentVariation"].nil? ? nil : Types::ResourceMetadata.from_json(data["agentVariation"]), agent: data["agent"].nil? ? nil : Types::ResourceMetadata.from_json(data["agent"]), model: data["model"].nil? ? nil : Types::ResourceMetadata.from_json(data["model"]), assigned_at: data["assignedAt"].nil? ? nil : Time.iso8601(data["assignedAt"]), ) end |