ConversationContext

public class ConversationContext

A ConversationContext provides continuity between nodes in the prompt graph by giving the developer access to the subject of the conversation and getClassById generic map for storing values that are shared between all Prompt invocations.

Constructors

Link copied to clipboard
public void ConversationContext(Plugin plugin, Conversable forWhom, Map<Object, Object> initialSessionData)

Properties

Link copied to clipboard
public final Conversable forWhom
Link copied to clipboard
public final Plugin plugin

Functions

Link copied to clipboard
Gets the entire sessionData map.
Link copied to clipboard
Gets the subject of the conversation.
Link copied to clipboard
public Plugin getPlugin()
Gets the plugin that owns this conversation.
Link copied to clipboard
Gets session data shared between all Prompt invocations.
Link copied to clipboard
public void setSessionData(Object key, Object value)
Sets session data shared between all Prompt invocations.