Class: TencentCloud::Hunyuan::V20230901::RunThreadRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Hunyuan::V20230901::RunThreadRequest
- Defined in:
- lib/v20230901/models.rb
Overview
RunThread请求参数结构体
Instance Attribute Summary collapse
- #AdditionalMessages ⇒ Object
- #AssistantID ⇒ Object
- #MaxCompletionTokens ⇒ Object
- #MaxPromptTokens ⇒ Object
- #Model ⇒ Object
- #Stream ⇒ Object
- #Temperature ⇒ Object
- #ThreadID ⇒ Object
- #ToolChoice ⇒ Object
- #Tools ⇒ Object
- #TopP ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(threadid = nil, assistantid = nil, model = nil, additionalmessages = nil, temperature = nil, topp = nil, stream = nil, maxprompttokens = nil, maxcompletiontokens = nil, tools = nil, toolchoice = nil) ⇒ RunThreadRequest
constructor
A new instance of RunThreadRequest.
Constructor Details
#initialize(threadid = nil, assistantid = nil, model = nil, additionalmessages = nil, temperature = nil, topp = nil, stream = nil, maxprompttokens = nil, maxcompletiontokens = nil, tools = nil, toolchoice = nil) ⇒ RunThreadRequest
Returns a new instance of RunThreadRequest.
2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 |
# File 'lib/v20230901/models.rb', line 2241 def initialize(threadid=nil, assistantid=nil, model=nil, =nil, temperature=nil, topp=nil, stream=nil, maxprompttokens=nil, maxcompletiontokens=nil, tools=nil, toolchoice=nil) @ThreadID = threadid @AssistantID = assistantid @Model = model @AdditionalMessages = @Temperature = temperature @TopP = topp @Stream = stream @MaxPromptTokens = maxprompttokens @MaxCompletionTokens = maxcompletiontokens @Tools = tools @ToolChoice = toolchoice end |
Instance Attribute Details
#AdditionalMessages ⇒ Object
2239 2240 2241 |
# File 'lib/v20230901/models.rb', line 2239 def AdditionalMessages @AdditionalMessages end |
#AssistantID ⇒ Object
2239 2240 2241 |
# File 'lib/v20230901/models.rb', line 2239 def AssistantID @AssistantID end |
#MaxCompletionTokens ⇒ Object
2239 2240 2241 |
# File 'lib/v20230901/models.rb', line 2239 def MaxCompletionTokens @MaxCompletionTokens end |
#MaxPromptTokens ⇒ Object
2239 2240 2241 |
# File 'lib/v20230901/models.rb', line 2239 def MaxPromptTokens @MaxPromptTokens end |
#Model ⇒ Object
2239 2240 2241 |
# File 'lib/v20230901/models.rb', line 2239 def Model @Model end |
#Stream ⇒ Object
2239 2240 2241 |
# File 'lib/v20230901/models.rb', line 2239 def Stream @Stream end |
#Temperature ⇒ Object
2239 2240 2241 |
# File 'lib/v20230901/models.rb', line 2239 def Temperature @Temperature end |
#ThreadID ⇒ Object
2239 2240 2241 |
# File 'lib/v20230901/models.rb', line 2239 def ThreadID @ThreadID end |
#ToolChoice ⇒ Object
2239 2240 2241 |
# File 'lib/v20230901/models.rb', line 2239 def ToolChoice @ToolChoice end |
#Tools ⇒ Object
2239 2240 2241 |
# File 'lib/v20230901/models.rb', line 2239 def Tools @Tools end |
#TopP ⇒ Object
2239 2240 2241 |
# File 'lib/v20230901/models.rb', line 2239 def TopP @TopP end |
Instance Method Details
#deserialize(params) ⇒ Object
2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 |
# File 'lib/v20230901/models.rb', line 2255 def deserialize(params) @ThreadID = params['ThreadID'] @AssistantID = params['AssistantID'] @Model = params['Model'] unless params['AdditionalMessages'].nil? @AdditionalMessages = [] params['AdditionalMessages'].each do |i| = ThreadAdditionalMessage.new .deserialize(i) @AdditionalMessages << end end @Temperature = params['Temperature'] @TopP = params['TopP'] @Stream = params['Stream'] @MaxPromptTokens = params['MaxPromptTokens'] @MaxCompletionTokens = params['MaxCompletionTokens'] unless params['Tools'].nil? @Tools = [] params['Tools'].each do |i| tool_tmp = Tool.new tool_tmp.deserialize(i) @Tools << tool_tmp end end @ToolChoice = params['ToolChoice'] end |