public class SendSentence
extends Action
The most important class Action class.
Could be a simple text, or a complex message using one or more interface ConnectorMessage.
class Action,
interface ConnectorMessagepublic SendSentence(@NotNull
PlayerId playerId,
@NotNull
java.lang.String applicationId,
@NotNull
PlayerId recipientId,
@Nullable
java.lang.CharSequence text,
@NotNull
java.util.List<ai.tock.bot.connector.ConnectorMessage> messages,
@NotNull
org.litote.kmongo.Id<ai.tock.bot.engine.action.Action> id,
@NotNull
java.time.Instant date,
@NotNull
EventState state,
@NotNull
ActionMetadata metadata,
@Nullable
NlpCallStats nlpStats,
@Nullable
ai.tock.nlp.api.client.model.NlpResult precomputedNlp)
The most important class Action class.
Could be a simple text, or a complex message using one or more interface ConnectorMessage.
precomputedNlp - Used by analysed nlp (ie Alexa).class Action,
interface ConnectorMessage@Nullable public java.lang.String getStringText()
@Nullable public ConnectorMessage message(@NotNull ConnectorType type)
public boolean hasMessage(@NotNull
ConnectorType type)
@NotNull public Message toMessage()
@NotNull public Event obfuscate(@NotNull ai.tock.shared.security.StringObfuscatorMode mode, @NotNull PlayerId playerId)
@NotNull public java.lang.String toString()
public boolean hasEmptyText()
@NotNull public SendSentence changeConnectorMessage(@NotNull ConnectorMessage message)
Replace a connectorMessage
@Nullable public java.lang.CharSequence getText()
@NotNull public java.util.List<ai.tock.bot.connector.ConnectorMessage> getMessages()
@Nullable public NlpCallStats getNlpStats()
public void setNlpStats(@Nullable
NlpCallStats p)
@Nullable public ai.tock.nlp.api.client.model.NlpResult getPrecomputedNlp()
Used by analysed nlp
(ie Alexa).