Microsoft.Bot.Builder.Luis.Extensions Class Reference

LUIS extension methods. More...

Static Public Member Functions

static Uri BuildUri (this ILuisService service, string text)
 Builds luis uri with text query. More...
 
static DayPart Next (this DayPart part)
 Return the next DayPart. More...
 
static IEnumerable< ResolutionParseResolutions (this IResolutionParser parser, IEnumerable< EntityRecommendation > entities)
 Parse all resolutions from a LUIS result. More...
 
static async Task< LuisResultQueryAsync (this ILuisService service, string text, CancellationToken token)
 Query the LUIS service using this text. More...
 
static bool TryFindEntity (this LuisResult result, string type, out EntityRecommendation entity)
 Try to find an entity within the result. More...
 

Detailed Description

LUIS extension methods.

Definition at line 45 of file Luis/Extensions.cs.

Member Function Documentation

static Uri Microsoft.Bot.Builder.Luis.Extensions.BuildUri ( this ILuisService  service,
string  text 
)
inlinestatic

Builds luis uri with text query.

Parameters
serviceLUIS service.
textThe query text.
Returns
The LUIS request Uri.

Definition at line 263 of file LuisService.cs.

static DayPart Microsoft.Bot.Builder.Luis.Extensions.Next ( this DayPart  part)
inlinestatic

Return the next DayPart.

Parameters
partThe DayPart query.
Returns
The next DayPart after the query.

Definition at line 86 of file Luis/Extensions.cs.

static IEnumerable<Resolution> Microsoft.Bot.Builder.Luis.Extensions.ParseResolutions ( this IResolutionParser  parser,
IEnumerable< EntityRecommendation entities 
)
inlinestatic

Parse all resolutions from a LUIS result.

Parameters
parserThe resolution parser.
entitiesThe LUIS entities.
Returns
The parsed resolutions.

Definition at line 66 of file Luis/Extensions.cs.

static async Task<LuisResult> Microsoft.Bot.Builder.Luis.Extensions.QueryAsync ( this ILuisService  service,
string  text,
CancellationToken  token 
)
inlinestatic

Query the LUIS service using this text.

Parameters
serviceLUIS service.
textThe query text.
tokenThe cancellation token.
Returns
The LUIS result.

Definition at line 251 of file LuisService.cs.

static bool Microsoft.Bot.Builder.Luis.Extensions.TryFindEntity ( this LuisResult  result,
string  type,
out EntityRecommendation  entity 
)
inlinestatic

Try to find an entity within the result.

Parameters
resultThe LUIS result.
typeThe entity type.
entityThe found entity.
Returns
True if the entity was found, false otherwise.

Definition at line 54 of file Luis/Extensions.cs.


The documentation for this class was generated from the following files: