Package com.longbridge.agent
Class WorkflowStartedEvent
- java.lang.Object
-
- com.longbridge.agent.ConversationStreamEvent
-
- com.longbridge.agent.WorkflowStartedEvent
-
public final class WorkflowStartedEvent extends ConversationStreamEvent
Observed right after aChatStartedEventon every run seen so far.
-
-
Constructor Summary
Constructors Constructor Description WorkflowStartedEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowStartedInputsgetInputs()Returns the echoed inputs of the run.longgetStartedAt()Returns the Unix timestamp (in seconds) at which the run started.longgetWorkflowId()Returns the internal workflow run ID.booleanisHitCache()Returns whether this run's answer was served from a cache.StringtoString()
-
-
-
Method Detail
-
isHitCache
public boolean isHitCache()
Returns whether this run's answer was served from a cache.- Returns:
trueif this run's answer was served from a cache
-
getInputs
public WorkflowStartedInputs getInputs()
Returns the echoed inputs of the run.- Returns:
- the echoed inputs of the run
-
getStartedAt
public long getStartedAt()
Returns the Unix timestamp (in seconds) at which the run started.- Returns:
- Unix timestamp (in seconds) at which the run started
-
getWorkflowId
public long getWorkflowId()
Returns the internal workflow run ID.- Returns:
- internal workflow run ID
-
-