Class: TencentCloud::Es::V20250101::Tool
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Es::V20250101::Tool
- Defined in:
- lib/v20250101/models.rb
Overview
用户指定模型使用的工具
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, function = nil) ⇒ Tool
constructor
A new instance of Tool.
Constructor Details
#initialize(type = nil, function = nil) ⇒ Tool
Returns a new instance of Tool.
1116 1117 1118 1119 |
# File 'lib/v20250101/models.rb', line 1116 def initialize(type=nil, function=nil) @Type = type @Function = function end |
Instance Attribute Details
#Function ⇒ Object
1114 1115 1116 |
# File 'lib/v20250101/models.rb', line 1114 def Function @Function end |
#Type ⇒ Object
1114 1115 1116 |
# File 'lib/v20250101/models.rb', line 1114 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
1121 1122 1123 1124 1125 1126 1127 |
# File 'lib/v20250101/models.rb', line 1121 def deserialize(params) @Type = params['Type'] unless params['Function'].nil? @Function = ToolFunction.new @Function.deserialize(params['Function']) end end |