Class: TencentCloud::Ccc::V20200210::ServerPushText

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

Overview

服务端控制AI对话机器人播报指定文本

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text = nil, interrupt = nil, stopafterplay = nil, audio = nil, dropmode = nil, priority = nil, addhistory = nil) ⇒ ServerPushText

Returns a new instance of ServerPushText.



6361
6362
6363
6364
6365
6366
6367
6368
6369
# File 'lib/v20200210/models.rb', line 6361

def initialize(text=nil, interrupt=nil, stopafterplay=nil, audio=nil, dropmode=nil, priority=nil, addhistory=nil)
  @Text = text
  @Interrupt = interrupt
  @StopAfterPlay = stopafterplay
  @Audio = audio
  @DropMode = dropmode
  @Priority = priority
  @AddHistory = addhistory
end

Instance Attribute Details

#AddHistoryObject

注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。例子:

  • Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断

  • Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断

Parameters:

  • Priority:

    ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。

  • AddHistory:

    是否将文本加入到llm历史上下文中



6359
6360
6361
# File 'lib/v20200210/models.rb', line 6359

def AddHistory
  @AddHistory
end

#AudioObject

注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。例子:

  • Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断

  • Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断

Parameters:

  • Priority:

    ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。

  • AddHistory:

    是否将文本加入到llm历史上下文中



6359
6360
6361
# File 'lib/v20200210/models.rb', line 6359

def Audio
  @Audio
end

#DropModeObject

注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。例子:

  • Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断

  • Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断

Parameters:

  • Priority:

    ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。

  • AddHistory:

    是否将文本加入到llm历史上下文中



6359
6360
6361
# File 'lib/v20200210/models.rb', line 6359

def DropMode
  @DropMode
end

#InterruptObject

注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。例子:

  • Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断

  • Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断

Parameters:

  • Priority:

    ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。

  • AddHistory:

    是否将文本加入到llm历史上下文中



6359
6360
6361
# File 'lib/v20200210/models.rb', line 6359

def Interrupt
  @Interrupt
end

#PriorityObject

注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。例子:

  • Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断

  • Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断

Parameters:

  • Priority:

    ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。

  • AddHistory:

    是否将文本加入到llm历史上下文中



6359
6360
6361
# File 'lib/v20200210/models.rb', line 6359

def Priority
  @Priority
end

#StopAfterPlayObject

注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。例子:

  • Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断

  • Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断

Parameters:

  • Priority:

    ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。

  • AddHistory:

    是否将文本加入到llm历史上下文中



6359
6360
6361
# File 'lib/v20200210/models.rb', line 6359

def StopAfterPlay
  @StopAfterPlay
end

#TextObject

注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。例子:

  • Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断

  • Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断

Parameters:

  • Priority:

    ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。

  • AddHistory:

    是否将文本加入到llm历史上下文中



6359
6360
6361
# File 'lib/v20200210/models.rb', line 6359

def Text
  @Text
end

Instance Method Details

#deserialize(params) ⇒ Object



6371
6372
6373
6374
6375
6376
6377
6378
6379
# File 'lib/v20200210/models.rb', line 6371

def deserialize(params)
  @Text = params['Text']
  @Interrupt = params['Interrupt']
  @StopAfterPlay = params['StopAfterPlay']
  @Audio = params['Audio']
  @DropMode = params['DropMode']
  @Priority = params['Priority']
  @AddHistory = params['AddHistory']
end