Class: RecastAI::Utils

Inherits:
Object
  • Object
show all
Defined in:
lib/recastai/utils.rb,
lib/recastai/apis/connect/utils.rb,
lib/recastai/apis/request/utils.rb

Constant Summary collapse

MAJOR =

Versioning

'4'.freeze
MINOR =
'0'.freeze
PATCH =
'0'.freeze
VERSION =
"#{MAJOR}.#{MINOR}.#{PATCH}".freeze
TRAIN_ENDPOINT =

Endpoints

'https://api.recast.ai/v2/'.freeze
CONNECT_ENDPOINT =
'https://api.recast.ai/connect/v1/'.freeze
HOST_ENDPOINT =
'https://api.recast.ai/host/v1/'.freeze
MONITOR_ENDPOINT =
'https://api.recast.ai/monitor/v1/'.freeze
BUILD_ENDPOINT =
'https://api.recast.ai/build/v1'.freeze
MESSAGE_ENDPOINT =

Endpoints

'https://api.recast.ai/connect/v1/messages/'.freeze
CONVERSATION_ENDPOINT =
'https://api.recast.ai/connect/v1/conversations/'.freeze
REQUEST_ENDPOINT =

Endpoints

'https://api.recast.ai/v2/request/'.freeze
CONVERSE_ENDPOINT =
'https://api.recast.ai/v2/converse/'.freeze
ACT_ASSERT =

Act constants

'assert'.freeze
ACT_COMMAND =
'command'.freeze
ACT_WH_QUERY =
'wh-query'.freeze
ACT_YN_QUERY =
'yn-query'.freeze
TYPE_ABBREVIATION =

Type constants

'abbr:'.freeze
TYPE_ENTITY =
'enty:'.freeze
TYPE_DESCRIPTION =
'desc:'.freeze
TYPE_HUMAN =
'hum:'.freeze
TYPE_LOCATION =
'loc:'.freeze
TYPE_NUMBER =
'num:'.freeze
SENTIMENT_VPOSITIVE =

Sentiment constants

'vpositive'.freeze
SENTIMENT_POSITIVE =
'positive'.freeze
SENTIMENT_NEUTRAL =
'neutral'.freeze
SENTIMENT_NEGATIVE =
'negative'.freeze
SENTIMENT_VNEGATIVE =
'vnegative'.freeze