Class: Cadenya::Types::SearchToolsOrToolSetsResponse
- Inherits:
-
Object
- Object
- Cadenya::Types::SearchToolsOrToolSetsResponse
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#agents ⇒ Object
readonly
Returns the value of attribute agents.
-
#tool_sets ⇒ Object
readonly
Returns the value of attribute tool_sets.
-
#tools ⇒ Object
readonly
Returns the value of attribute tools.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tools: nil, tool_sets: nil, agents: nil) ⇒ SearchToolsOrToolSetsResponse
constructor
A new instance of SearchToolsOrToolSetsResponse.
- #to_h ⇒ Object
Constructor Details
#initialize(tools: nil, tool_sets: nil, agents: nil) ⇒ SearchToolsOrToolSetsResponse
Returns a new instance of SearchToolsOrToolSetsResponse.
5027 5028 5029 5030 5031 |
# File 'lib/cadenya/types.rb', line 5027 def initialize(tools: nil, tool_sets: nil, agents: nil) @tools = tools @tool_sets = tool_sets @agents = agents end |
Instance Attribute Details
#agents ⇒ Object (readonly)
Returns the value of attribute agents.
5025 5026 5027 |
# File 'lib/cadenya/types.rb', line 5025 def agents @agents end |
#tool_sets ⇒ Object (readonly)
Returns the value of attribute tool_sets.
5025 5026 5027 |
# File 'lib/cadenya/types.rb', line 5025 def tool_sets @tool_sets end |
#tools ⇒ Object (readonly)
Returns the value of attribute tools.
5025 5026 5027 |
# File 'lib/cadenya/types.rb', line 5025 def tools @tools end |
Class Method Details
.from_json(data) ⇒ Object
5033 5034 5035 5036 5037 5038 5039 |
# File 'lib/cadenya/types.rb', line 5033 def self.from_json(data) new( tools: data["tools"].nil? ? nil : (data["tools"]).map { |item| Types::Tool.from_json(item) }, tool_sets: data["toolSets"].nil? ? nil : (data["toolSets"]).map { |item| Types::ToolSet.from_json(item) }, agents: data["agents"].nil? ? nil : (data["agents"]).map { |item| Types::Agent.from_json(item) }, ) end |