Copyright | (c) 2016 Micxjo Funkcio |
---|---|
License | BSD3 |
Maintainer | micxjo@fastmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
- query :: Credentials -> Text -> IO (Either LUISError Response)
- queryExc :: Credentials -> Text -> IO Response
- data Credentials = Credentials {
- applicationId :: !Text
- subscriptionKey :: !Text
- data Response
- responseQuery :: Lens' Response Text
- responseIntents :: Lens' Response (Vector Intent)
- responseEntities :: Lens' Response (Vector Entity)
- data Intent
- intentType :: Lens' Intent Text
- intentScore :: Lens' Intent Double
- intentActions :: Lens' Intent (Maybe (Vector Action))
- data Action
- actionName :: Lens' Action Text
- actionTriggered :: Lens' Action Bool
- actionParams :: Lens' Action (Vector Param)
- data Param
- paramName :: Lens' Param Text
- paramRequired :: Lens' Param Bool
- paramValues :: Lens' Param (Maybe (Vector ParamValue))
- data ParamValue
- paramValueEntity :: Lens' ParamValue Text
- paramValueType :: Lens' ParamValue Text
- paramValueScore :: Lens' ParamValue Double
- data Entity
- entityType :: Lens' Entity Text
- entityScore :: Lens' Entity Double
- entityText :: Lens' Entity Text
- entityStartIndex :: Lens' Entity Int
- entityEndIndex :: Lens' Entity Int
- data LUISError
Querying
queryExc :: Credentials -> Text -> IO Response Source
Query a LUIS model. An HttpException
or JSONError
may be thrown.
data Credentials Source
Application credentials for a LUIS model.
Credentials | |
|
Response Type
Intent Type
paramValues :: Lens' Param (Maybe (Vector ParamValue)) Source
data ParamValue Source