public class ServerPushText extends AbstractModel
header, skipSign
Constructor and Description |
---|
ServerPushText() |
ServerPushText(ServerPushText source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getAddHistory()
Get Specifies whether the text is added to the llm history context.
|
String |
getAudio()
Get Specifies the server push broadcast audio.
|
Long |
getDropMode()
Get Defaults to 0.
|
Boolean |
getInterrupt()
Get Whether to allow the text to interrupt the robot's speaking.
|
Long |
getPriority()
Get Message priority of ServerPushText.
|
Boolean |
getStopAfterPlay()
Get Specifies whether to automatically close the dialogue task after broadcasting the text.
|
String |
getText()
Get Specifies the server push broadcast text.
|
void |
setAddHistory(Boolean AddHistory)
Set Specifies whether the text is added to the llm history context.
|
void |
setAudio(String Audio)
Set Specifies the server push broadcast audio.
|
void |
setDropMode(Long DropMode)
Set Defaults to 0.
|
void |
setInterrupt(Boolean Interrupt)
Set Whether to allow the text to interrupt the robot's speaking.
|
void |
setPriority(Long Priority)
Set Message priority of ServerPushText.
|
void |
setStopAfterPlay(Boolean StopAfterPlay)
Set Specifies whether to automatically close the dialogue task after broadcasting the text.
|
void |
setText(String Text)
Set Specifies the server push broadcast text.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ServerPushText()
public ServerPushText(ServerPushText source)
public String getText()
public void setText(String Text)
Text
- Specifies the server push broadcast text.public Boolean getInterrupt()
public void setInterrupt(Boolean Interrupt)
Interrupt
- Whether to allow the text to interrupt the robot's speaking.public Boolean getStopAfterPlay()
public void setStopAfterPlay(Boolean StopAfterPlay)
StopAfterPlay
- Specifies whether to automatically close the dialogue task after broadcasting the text.public String getAudio()
public void setAudio(String Audio)
Audio
- Specifies the server push broadcast audio.
Format description: audio must be mono, sampling rate should be consistent with the corresponding TTS, and coded as a Base64 string.
Input rules: when the Audio field is provided, the system will not accept input in the Text field. the system will play the Audio content in the Audio field directly.public Long getDropMode()
public void setDropMode(Long DropMode)
DropMode
- Defaults to 0. valid only when Interrupt is false.
-0 indicates that messages with Interrupt set to false will be dropped when there is an interaction.
-Indicates that when there is an interaction in progress, messages with Interrupt set to false will not be dropped but cached and processed after the current interaction is completed.
Note: when DropMode is 1, the cache allows multiple messages. if an interruption occurs subsequently, cached messages will be cleared.public Long getPriority()
public void setPriority(Long Priority)
Priority
- Message priority of ServerPushText. 0 means interruptible. 1 means not interruptible.
Note: after receiving a message with Priority=1, any other messages will be ignored (including messages with Priority=1) until the message processing of Priority=1 is complete. this field can be used together with the Interrupt and DropMode fields.
Example.
-Priority=1, Interrupt=true. specifies to Interrupt existing interaction and broadcast immediately. the broadcast will not be interrupted during the process.
-Priority=1, Interrupt=false, DropMode=1. waits for the current interaction to complete before broadcasting. the broadcast will not be interrupted during the process.public Boolean getAddHistory()
public void setAddHistory(Boolean AddHistory)
AddHistory
- Specifies whether the text is added to the llm history context.Copyright © 2025. All rights reserved.