NCRequest

trait NCRequest

Descriptor for the input user request. User request descriptor can be obtained via NCContext.getRequest method.

See also:
Source:
NCRequest.scala
class Object
trait Matchable
class Any

Value members

Abstract methods

Gets UTC/GMT timestamp in milliseconds when user input was received.

Gets UTC/GMT timestamp in milliseconds when user input was received.

Returns:

UTC/GMT timestamp in milliseconds when user input was received.

Source:
NCRequest.scala

Gets optional data associated with this user request.

Gets optional data associated with this user request.

Returns:

Optional user request data, can be empty but never null.

Source:
NCRequest.scala

Gets globally unique ID of the current request.

Gets globally unique ID of the current request.

A request is defined as a processing of a one user input request. Note that the model can be accessed multiple times during processing of a single user request and therefore multiple instances of this interface can return the same request ID. In fact, users of this interfaces can use this fact by using this ID, for example, as a map key for a session scoped storage.

Returns:

Request ID.

Source:
NCRequest.scala

Gets the original input text of this request.

Gets the original input text of this request.

Returns:

Input text of this request.

Source:
NCRequest.scala

Gets ID of the user on behalf of which this request was submitted. User ID is used by NLPCraft to manage the conversation state. It can be any value as long as it is stable and globally unique for the given user.

Gets ID of the user on behalf of which this request was submitted. User ID is used by NLPCraft to manage the conversation state. It can be any value as long as it is stable and globally unique for the given user.

Returns:

User ID.

Source:
NCRequest.scala