Class: TencentCloud::Es::V20250101::Tool

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20250101/models.rb

Overview

用户指定模型使用的工具

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#FunctionObject

Parameters:

  • Type:

    工具类型,当前只支持function

  • Function:

    具体要调用的function



1114
1115
1116
# File 'lib/v20250101/models.rb', line 1114

def Function
  @Function
end

#TypeObject

Parameters:

  • Type:

    工具类型,当前只支持function

  • Function:

    具体要调用的function



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