public class Dialog
A dialog is a conversation between users and bots. Conversation history is split into a list of stories. The dialog has a (current) state.
public Dialog(@NotNull
java.util.Set<ai.tock.bot.engine.user.PlayerId> playerIds,
@NotNull
org.litote.kmongo.Id<ai.tock.bot.engine.dialog.Dialog> id,
@NotNull
DialogState state,
@NotNull
java.util.List<ai.tock.bot.engine.dialog.Story> stories,
@Nullable
java.lang.String groupId)
A dialog is a conversation between users and bots. Conversation history is split into a list of stories. The dialog has a (current) state.
playerIds - The players of the dialog.id - The id of the dialog.state - The state of the dialog.stories - The history of stories in the dialog.groupId - An optional group identifier.@NotNull public java.time.Instant getLastDateUpdate()
The last update date.
@Nullable public Story getCurrentStory()
The current story if any.
@NotNull public java.util.List<ai.tock.bot.engine.action.Action> allActions()
All old actions.
@Nullable public Action getLastAction()
Returns last action.
@Nullable public Action getLastUserAction()
Returns last user action.
@NotNull public java.util.List<ai.tock.bot.engine.dialog.Snapshot> getSnapshots()
The Snapshots of the dialog.
public int getActionsSize()
Current number of actions in dialog history.
@NotNull public java.util.Set<ai.tock.bot.engine.user.PlayerId> getPlayerIds()
The players of the dialog.
@NotNull public org.litote.kmongo.Id<ai.tock.bot.engine.dialog.Dialog> getId()
The id of the dialog.
public void setId(@NotNull
org.litote.kmongo.Id<ai.tock.bot.engine.dialog.Dialog> p)
The id of the dialog.
p - The id of the dialog.@NotNull public DialogState getState()
The state of the dialog.
@NotNull public java.util.List<ai.tock.bot.engine.dialog.Story> getStories()
The history of stories in the dialog.
@Nullable public java.lang.String getGroupId()
An optional group identifier.
@NotNull public java.util.Set<ai.tock.bot.engine.user.PlayerId> component1()
The players of the dialog.
@NotNull public org.litote.kmongo.Id<ai.tock.bot.engine.dialog.Dialog> component2()
The id of the dialog.
@NotNull public DialogState component3()
The state of the dialog.
@NotNull public java.util.List<ai.tock.bot.engine.dialog.Story> component4()
The history of stories in the dialog.
@Nullable public java.lang.String component5()
An optional group identifier.
@NotNull public Dialog copy(@NotNull java.util.Set<ai.tock.bot.engine.user.PlayerId> playerIds, @NotNull org.litote.kmongo.Id<ai.tock.bot.engine.dialog.Dialog> id, @NotNull DialogState state, @NotNull java.util.List<ai.tock.bot.engine.dialog.Story> stories, @Nullable java.lang.String groupId)
A dialog is a conversation between users and bots. Conversation history is split into a list of stories. The dialog has a (current) state.
@NotNull public java.lang.String toString()
A dialog is a conversation between users and bots. Conversation history is split into a list of stories. The dialog has a (current) state.
public int hashCode()
A dialog is a conversation between users and bots. Conversation history is split into a list of stories. The dialog has a (current) state.
public boolean equals(@Nullable
java.lang.Object p)
A dialog is a conversation between users and bots. Conversation history is split into a list of stories. The dialog has a (current) state.