Package com.longbridge.agent
Class Agent
- java.lang.Object
-
- com.longbridge.agent.Agent
-
public class Agent extends Object
An Agent in a Workspace
-
-
Constructor Summary
Constructors Constructor Description Agent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCreatedAt()Returns the creation time, Unix timestamp in seconds.StringgetDescription()Returns the Agent description.StringgetIcon()Returns the icon URL.StringgetMode()Returns the Agent mode, e.g.StringgetName()Returns the Agent name.longgetPublishedAt()Returns the publish time, Unix timestamp in seconds;0if unpublished.StringgetUid()Returns the Agent UID, used as the path parameter ofAgentContext.conversation(java.lang.String, java.lang.String, java.lang.String).longgetUpdatedAt()Returns the last updated time, Unix timestamp in seconds.booleanisPublished()Returns whether the Agent is published; only published Agents can start conversations.StringtoString()
-
-
-
Method Detail
-
getUid
public String getUid()
Returns the Agent UID, used as the path parameter ofAgentContext.conversation(java.lang.String, java.lang.String, java.lang.String).- Returns:
- Agent UID
-
getName
public String getName()
Returns the Agent name.- Returns:
- Agent name
-
getDescription
public String getDescription()
Returns the Agent description.- Returns:
- Agent description
-
getMode
public String getMode()
Returns the Agent mode, e.g.chat.- Returns:
- Agent mode
-
getIcon
public String getIcon()
Returns the icon URL.- Returns:
- icon URL
-
isPublished
public boolean isPublished()
Returns whether the Agent is published; only published Agents can start conversations.- Returns:
trueif published
-
getPublishedAt
public long getPublishedAt()
Returns the publish time, Unix timestamp in seconds;0if unpublished.- Returns:
- publish time
-
getCreatedAt
public long getCreatedAt()
Returns the creation time, Unix timestamp in seconds.- Returns:
- creation time
-
getUpdatedAt
public long getUpdatedAt()
Returns the last updated time, Unix timestamp in seconds.- Returns:
- last updated time
-
-