* Add unit tests for validating dialogs

* fix a bunch of schema errors
* fix a bunch of dialog errors
* move compnent schema to using botframework-sdk/component.schema
* get rid of sdk.schema, schema comes from SDK assemblies not from sdk.schema
* create tests.schema which is active schema for unit tests
* create testbot.schema which is active schema for testbot
This commit is contained in:
Tom Laird-McConnell 2020-04-17 11:33:49 -07:00
Родитель bfd80ad57c
Коммит 9fddf2ec64
498 изменённых файлов: 4181 добавлений и 2333 удалений

Просмотреть файл

@ -101,16 +101,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
BotBuilder-DotNet.ruleset = BotBuilder-DotNet.ruleset
CodeCoverage.runsettings = CodeCoverage.runsettings
Directory.Build.props = Directory.Build.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Schemas", "Schemas", "{EE56F2B6-4995-4E8F-ACFF-310AF0A4DA0F}"
ProjectSection(SolutionItems) = preProject
schemas\baseComponent.schema = schemas\baseComponent.schema
schemas\component.schema = schemas\component.schema
schemas\readme.md = schemas\readme.md
schemas\sdk.schema = schemas\sdk.schema
schemas\update.cmd = schemas\update.cmd
schemas\updateBranch.cmd = schemas\updateBranch.cmd
tests\tests.schema = tests\tests.schema
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Bot.Builder.TestBot.Json", "tests\Microsoft.Bot.Builder.TestBot.Json\Microsoft.Bot.Builder.TestBot.Json.csproj", "{2454BBCD-77BC-4E3D-B5A6-3562BED898D6}"

Просмотреть файл

@ -1,55 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/{branch}/schemas/component.schema",
"title": "JSON Schema definition for dialog schemas.",
"description": "In order to create a component for Bot Framework .dialog files you need to create a schema file describing your configuration that meets this definition. This extends http://json-schema.org/draft-07/schema#.",
"definitions": {
"role": {
"title": "$role",
"description": "Defines the role played in the dialog schema [expression|union|union(Kind)].",
"type": "string",
"pattern": "^((expression)|(interface)|(implements\\([a-zA-Z][a-zA-Z0-9.]*\\)))$"
},
"id": {
"title": "$id",
"description": "Inline id for reuse of an inline definition",
"type": "string",
"pattern": "^([a-zA-Z][a-zA-Z0-9.]*)$"
},
"copy": {
"title": "$copy",
"description": "Copy the definition by id from a .dialog file.",
"type": "string",
"pattern": "^(([a-zA-Z][a-zA-Z0-9.]*)?(#[a-zA-Z][a-zA-Z0-9.]*)?)$"
},
"kind": {
"title": "$kind",
"description": "Defines the valid properties for the component you are configuring (from a dialog .schema file)",
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9.]*$"
},
"designer": {
"title": "$designer",
"type": "object",
"description": "Extra information for the Bot Framework Designer."
}
},
"properties": {
"$role": {
"oneOf": [
{
"$ref": "#/definitions/role"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/role"
}
}
]
},
"$kind": {
"$ref": "#/definitions/kind"
}
}
}

Просмотреть файл

@ -1,292 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"title": "JSON Schema definition for dialog schemas.",
"definitions": {
"schemaArray": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#"
}
},
"nonNegativeInteger": {
"type": "integer",
"minimum": 0
},
"nonNegativeIntegerDefault0": {
"allOf": [
{
"$ref": "#/definitions/nonNegativeInteger"
},
{
"default": 0
}
]
},
"simpleTypes": {
"enum": [
"array",
"boolean",
"integer",
"null",
"number",
"object",
"string"
]
},
"stringArray": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true,
"default": []
},
"role": {
"title": "$role",
"description": "Defines the role played in the dialog schema [expression|union|union(Kind)].",
"type": "string",
"pattern": "^((expression)|(interface)|(implements\\([a-zA-Z][a-zA-Z0-9.]*\\)))$"
},
"id": {
"title": "$id",
"description": "Inline id for reuse of an inline definition",
"type": "string",
"pattern": "^([a-zA-Z][a-zA-Z0-9.]*)$"
},
"copy": {
"title": "$copy",
"description": "Copy the definition by id from a .dialog file.",
"type": "string",
"pattern": "^(([a-zA-Z][a-zA-Z0-9.]*)?(#[a-zA-Z][a-zA-Z0-9.]*)?)$"
},
"kind": {
"title": "$kind",
"description": "Defines the valid properties for the component you are configuring (from a dialog .schema file)",
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9.]*$"
},
"designer": {
"title": "$designer",
"type": "object",
"description": "Extra information for the Bot Framework Designer."
}
},
"type": [
"object",
"boolean"
],
"properties": {
"$id": {
"type": "string",
"format": "uri-reference"
},
"$schema": {
"type": "string",
"format": "uri"
},
"$ref": {
"type": "string",
"format": "uri-reference"
},
"$comment": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"default": true,
"readOnly": {
"type": "boolean",
"default": false
},
"writeOnly": {
"type": "boolean",
"default": false
},
"examples": {
"type": "array",
"items": true
},
"multipleOf": {
"type": "number",
"exclusiveMinimum": 0
},
"maximum": {
"type": "number"
},
"exclusiveMaximum": {
"type": "number"
},
"minimum": {
"type": "number"
},
"exclusiveMinimum": {
"type": "number"
},
"maxLength": {
"$ref": "#/definitions/nonNegativeInteger"
},
"minLength": {
"$ref": "#/definitions/nonNegativeIntegerDefault0"
},
"pattern": {
"type": "string",
"format": "regex"
},
"additionalItems": {
"$ref": "#"
},
"items": {
"anyOf": [
{
"$ref": "#"
},
{
"$ref": "#/definitions/schemaArray"
}
],
"default": true
},
"maxItems": {
"$ref": "#/definitions/nonNegativeInteger"
},
"minItems": {
"$ref": "#/definitions/nonNegativeIntegerDefault0"
},
"uniqueItems": {
"type": "boolean",
"default": false
},
"contains": {
"$ref": "#"
},
"maxProperties": {
"$ref": "#/definitions/nonNegativeInteger"
},
"minProperties": {
"$ref": "#/definitions/nonNegativeIntegerDefault0"
},
"required": {
"$ref": "#/definitions/stringArray"
},
"additionalProperties": {
"$ref": "#"
},
"definitions": {
"type": "object",
"additionalProperties": {
"$ref": "#"
},
"default": {}
},
"properties": {
"type": "object",
"additionalProperties": {
"$ref": "#"
},
"default": {}
},
"patternProperties": {
"type": "object",
"additionalProperties": {
"$ref": "#"
},
"propertyNames": {
"format": "regex"
},
"default": {}
},
"dependencies": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"$ref": "#"
},
{
"$ref": "#/definitions/stringArray"
}
]
}
},
"propertyNames": {
"$ref": "#"
},
"const": true,
"enum": {
"type": "array",
"items": true,
"minItems": 1,
"uniqueItems": true
},
"type": {
"anyOf": [
{
"$ref": "#/definitions/simpleTypes"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/simpleTypes"
},
"minItems": 1,
"uniqueItems": true
}
]
},
"format": {
"type": "string"
},
"contentMediaType": {
"type": "string"
},
"contentEncoding": {
"type": "string"
},
"if": {
"$ref": "#"
},
"then": {
"$ref": "#"
},
"else": {
"$ref": "#"
},
"allOf": {
"$ref": "#/definitions/schemaArray"
},
"anyOf": {
"$ref": "#/definitions/schemaArray"
},
"oneOf": {
"$ref": "#/definitions/schemaArray"
},
"not": {
"$ref": "#"
},
"$role": {
"oneOf": [
{
"$ref": "#/definitions/role"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/role"
}
}
]
},
"$kind": {
"$ref": "#/definitions/kind"
}
},
"default": true,
"description": "In order to create a component for Bot Framework .dialog files you need to create a schema file describing your configuration that meets this definition. This extends http://json-schema.org/draft-07/schema#.",
"$comment": "File generated by: 'bf dialog:merge -u -b master'."
}

Просмотреть файл

@ -126,7 +126,7 @@ namespace AdaptiveExpressions
/// allow a string to be implicitly assigned to an expression property.
/// </summary>
/// <param name="expression">string expression.</param>
public static implicit operator Expression(string expression) => Expression.Parse(expression);
public static implicit operator Expression(string expression) => Expression.Parse(expression?.TrimStart('='));
/// <summary>
/// Parse an expression string into an expression object.
@ -134,7 +134,7 @@ namespace AdaptiveExpressions
/// <param name="expression">expression string.</param>
/// <param name="lookup">Optional function lookup when parsing the expression. Default is Expression.Lookup which uses Expression.Functions table.</param>
/// <returns>expression object.</returns>
public static Expression Parse(string expression, EvaluatorLookup lookup = null) => new ExpressionParser(lookup ?? Expression.Lookup).Parse(expression);
public static Expression Parse(string expression, EvaluatorLookup lookup = null) => new ExpressionParser(lookup ?? Expression.Lookup).Parse(expression?.TrimStart('='));
/// <summary>
/// Lookup a ExpressionEvaluator (function) by name.

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Assert Condition",
"description": "Assert condition is true.",

Просмотреть файл

@ -1,12 +1,9 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.Test.ITestAction)",
"title": "Assert Reply",
"description": "Asserts that a reply text is valid.",
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.Test.ITestAction)",
"title": "Assert Reply Activity",
"description": "Asserts that a reply activity is valid.",

Просмотреть файл

@ -1,12 +1,9 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.Test.ITestAction)",
"title": "Assert Reply OneOf",
"description": "Asserts that a reply text is one of multiple optional responses.",
"type": "object",
"required": [
"replies"
],
"properties": {
"text": {
"type": "array",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"title": "Microsoft Test ITestAction",
"description": "Components which derive from TestAction class",
"$role": "interface"

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"title": "Test Script",
"description": "Defines a sequence of test actions to perform to validate the behavior of dialogs.",
"type": "object",
@ -36,6 +36,6 @@
},
"required": [
"dialog",
"testActions"
"script"
]
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.Test.ITestAction)",
"title": "Send Activity",
"description": "Sends activity to the bot.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.Test.ITestAction)",
"title": "Send ConversationUpdate",
"description": "Sends ConversationUpdate activity to the bot.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.Test.ITestAction)",
"title": "Delay Execution",
"description": "Delays text script for time period.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.Test.ITestAction)",
"title": "User Text",
"description": "Sends text to the bot from the user.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.Test.ITestAction)",
"title": "Send Typing",
"description": "Sends typing activity to the bot.",

Просмотреть файл

@ -157,9 +157,11 @@ namespace Microsoft.Bot.Builder.Dialogs.Adaptive.Actions
return await dc.EndDialogAsync(cancellationToken: cancellationToken).ConfigureAwait(false);
}
var changeType = ChangeType.GetValue(dc.State);
if (this.ItemsProperty == null)
{
throw new Exception($"EditArray: \"{ChangeType}\" operation couldn't be performed because the arrayProperty wasn't specified.");
throw new Exception($"EditArray: \"{changeType}\" operation couldn't be performed because the {nameof(ItemsProperty)} wasn't specified.");
}
var property = this.ItemsProperty.GetValue(dc.State);
@ -168,13 +170,14 @@ namespace Microsoft.Bot.Builder.Dialogs.Adaptive.Actions
object item = null;
object result = null;
switch (ChangeType.GetValue(dc.State))
switch (changeType)
{
case ArrayChangeType.Pop:
item = array[array.Count - 1];
array.RemoveAt(array.Count - 1);
result = item;
break;
case ArrayChangeType.Push:
EnsureValue();
var (itemResult, error) = this.Value.TryGetValue(dc.State);
@ -184,6 +187,7 @@ namespace Microsoft.Bot.Builder.Dialogs.Adaptive.Actions
}
break;
case ArrayChangeType.Take:
if (array.Count == 0)
{
@ -194,6 +198,7 @@ namespace Microsoft.Bot.Builder.Dialogs.Adaptive.Actions
array.RemoveAt(0);
result = item;
break;
case ArrayChangeType.Remove:
EnsureValue();
(itemResult, error) = this.Value.TryGetValue(dc.State);
@ -212,6 +217,7 @@ namespace Microsoft.Bot.Builder.Dialogs.Adaptive.Actions
}
break;
case ArrayChangeType.Clear:
result = array.Count > 0;
array.Clear();

Просмотреть файл

@ -150,13 +150,13 @@ namespace Microsoft.Bot.Builder.Dialogs.Adaptive
// x.dialog.schema => resourceType=dialog resourceId=x.dialog $kind=x
var resourceId = Path.GetFileNameWithoutExtension(schema.Id);
var resourceType = Path.GetExtension(resourceId).TrimStart('.').ToLowerInvariant();
var kind = Path.GetFileNameWithoutExtension(resourceId);
// load dynamic dialogs
switch (resourceType)
{
case "dialog":
yield return new DeclarativeType<DynamicBeginDialog>(kind) { CustomDeserializer = new DynamicBeginDialogDeserializer(resourceExplorer, resourceId) };
// register foo.dialog as $kind
yield return new DeclarativeType<DynamicBeginDialog>(resourceId) { CustomDeserializer = new DynamicBeginDialogDeserializer(resourceExplorer, resourceId) };
break;
}
}

Просмотреть файл

@ -5,6 +5,7 @@ using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using AdaptiveExpressions;
using AdaptiveExpressions.Properties;
using Microsoft.Recognizers.Text.DateTime;
using Newtonsoft.Json;
@ -39,10 +40,10 @@ namespace Microsoft.Bot.Builder.Dialogs.Adaptive.Input
/// <summary>
/// Gets or sets the expression to use to format the result.
/// </summary>
/// <remarks>The default output is an array of DateTimeResolutions, if this property is set then the output of the expression is the value returned by the dialog.</remarks>
/// <remarks>The default output is an array of DateTimeResolutions, this property is an expression which is evaluated to determine the output of the dialog.</remarks>
/// <value>an expression.</value>
[JsonProperty("outputFormat")]
public ValueExpression OutputFormat { get; set; }
public Expression OutputFormat { get; set; }
protected override Task<InputState> OnRecognizeInput(DialogContext dc)
{
@ -64,7 +65,7 @@ namespace Microsoft.Bot.Builder.Dialogs.Adaptive.Input
if (OutputFormat != null)
{
var (outputValue, error) = this.OutputFormat.TryGetValue(dc.State);
var (outputValue, error) = this.OutputFormat.TryEvaluate(dc.State);
if (error == null)
{
dc.State.SetValue(VALUE_PROPERTY, outputValue);

Просмотреть файл

@ -31,8 +31,8 @@
<Content Include="**/*.lg" />
<Content Include="**/*.lu" />
<Content Include="**/*.schema" />
<Content Include="**/*.qna"/>
<Content Include="**/*.json"/>
<Content Include="**/*.qna" />
<Content Include="**/*.json" />
</ItemGroup>
<ItemGroup>
@ -66,7 +66,6 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Schemas\Generators\" />
<Folder Include="Schemas\Templates\" />
<Folder Include="Templates\" />
</ItemGroup>

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Begin a dialog",
"description": "Begin another dialog.",
@ -22,7 +22,6 @@
"dialog": {
"$kind": "Microsoft.IDialog",
"$role": "expression",
"type": "object",
"title": "Dialog name",
"description": "Name of the dialog to call.",
"examples": [

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Break Loop",
"description": "Stop executing this loop",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Cancel all dialogs",
"description": "Cancel all active dialogs. All dialogs in the dialog chain will need a trigger to capture the event configured in this action.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Continue Loop",
"description": "Stop executing this template and continue with the next iteration of the loop.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Debugger break",
"description": "If debugger is attached, stop the execution at this point in the conversation.",

Просмотреть файл

@ -1,12 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Delete Activity",
"description": "Delete an activity that was previously sent.",
"type": "object",
"required": [
"property",
"value"
"activityId"
],
"properties": {
"id": {

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Delete Properties",
"description": "Delete multiple properties and any value it holds.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Delete Property",
"description": "Delete a property and any value it holds.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Edit actions.",
"description": "Edit the current list of actions.",

Просмотреть файл

@ -1,11 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Edit array",
"description": "Modify an array in memory",
"type": "object",
"required": [
"changeType",
"itemsProperty"
],
"properties": {
@ -25,7 +24,8 @@
"take",
"remove",
"clear"
]
],
"default":"push"
},
"disabled": {
"$role": "expression",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Emit a custom event",
"description": "Emit an event. Capture this event with a trigger.",
@ -27,19 +27,26 @@
"type": "string",
"title": "Event name",
"description": "Name of the event to emit.",
"enum": [
"beginDialog",
"resumeDialog",
"repromptDialog",
"cancelDialog",
"endDialog",
"activityReceived",
"recognizedIntent",
"unknownIntent",
"actionsStarted",
"actionsSaved",
"actionsEnded",
"actionsResumed"
"oneOf": [
{
"enum": [
"beginDialog",
"resumeDialog",
"repromptDialog",
"cancelDialog",
"endDialog",
"activityReceived",
"recognizedIntent",
"unknownIntent",
"actionsStarted",
"actionsSaved",
"actionsEnded",
"actionsResumed"
]
},
{
"pattern": "^(?!(beginDialog$|resumeDialog$|repromptDialog$|cancelDialog$|endDialog$|activityReceived$|recognizedIntent$|unknownIntent$|actionsStarted$|actionsSaved$|actionsEnded$|actionsResumed)).*"
}
]
},
"eventValue": {
@ -63,4 +70,4 @@
"default": false
}
}
}
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "End dialog",
"description": "End this dialog.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "End turn",
"description": "End the current turn without ending the dialog.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "For each item",
"description": "Execute actions on each item in an a collection.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "For each page",
"description": "Execute actions on each page (collection of items) in an array.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Get Activity Members",
"description": "Get the members who are participating in an activity. (BotFrameworkAdapter only)",
@ -10,11 +10,20 @@
"title": "Id",
"description": "Optional id for the dialog"
},
"property": {
"$role": "expression",
"type": "string",
"title": "Property",
"description": "Property (named location to store information).",
"examples": [
"user.age"
]
},
"activityId": {
"$role": "expression",
"type": "string",
"title": "ActivityId",
"description": "expression to an activityId to get the members. If none is defined then the current activity id will be used.",
"description": "Activity ID or expression to an activityId to use to get the members. If none is defined then the current activity id will be used.",
"examples": [
"$lastActivity"
]
@ -29,4 +38,4 @@
]
}
}
}
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Get Converation Members",
"description": "Get the members who are participating in an conversation. (BotFrameworkAdapter only)",
@ -10,6 +10,15 @@
"title": "Id",
"description": "Optional id for the dialog"
},
"property": {
"$role": "expression",
"type": "string",
"title": "Property",
"description": "Property (named location to store information).",
"examples": [
"user.age"
]
},
"disabled": {
"$role": "expression",
"type": "boolean",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Go to Action",
"description": "Go to an an action by id.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"type": "object",
"title": "HTTP request",
@ -96,10 +96,10 @@
"title": "Response type",
"description": "Defines the type of HTTP response. Automatically calls the 'Send a response' action if set to 'Activity' or 'Activities'.",
"enum": [
"None",
"Json",
"Activity",
"Activities"
"none",
"json",
"activity",
"activities"
],
"default": "Json"
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "If condition",
"description": "Two-way branch the conversation flow based on a condition.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Log to console",
"description": "Log a message to the host application. Send a TraceActivity to Bot Framework Emulator (optional).",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"type": "object",
"title": "Repeat dialog",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"type": "object",
"title": "Replace dialog",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Send an activity",
"description": "Respond with an activity.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Set property",
"description": "Set one or more property values.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Set property",
"description": "Set property to a value.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Sign Out User",
"description": "Sign a user out that was logged in previously using OAuthInput.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Switch condition",
"description": "Execute different actions based on the value of a property.",
@ -64,7 +64,7 @@
},
"required": [
"value",
"case"
"actions"
]
}
},

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Send a TraceActivity",
"description": "Send a trace activity to the transcript logger and/ or Bot Framework Emulator.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Send an activity",
"description": "Respond with an activity.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Send Activity to Ask a question",
"description": "This is an action which sends an activity to the user when a response is expected",
@ -32,11 +32,11 @@
"type": "string",
"title": "Default Operation",
"description": "Sets the default operation that will be used when no operation is recognized in the response to this Ask.",
"examples":[
"examples": [
"add"
]
}
}
}
]
}
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Attachment input dialog",
"description": "Collect information - Ask for a file or image.",
@ -10,13 +10,13 @@
{
"properties": {
"defaultValue": {
"$ref": "#/definitions/attachment",
"$ref": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/protocol/botframework.json#/definitions/Attachment",
"$role": "expression",
"title": "Default value",
"description": "'Property' will be set to the object or the result of this expression when max turn count is exceeded."
},
"value": {
"$ref": "#/definitions/attachment",
"$ref": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/protocol/botframework.json#/definitions/Attachment",
"$role": "expression",
"title": "Value",
"description": "'Property' will be set to the object or the result of this expression unless it evaluates to null."
@ -34,37 +34,5 @@
}
}
}
],
"definitions": {
"attachment": {
"type": "object",
"properties": {
"contentType": {
"type": "string",
"title": "Content Type",
"description": "mimetype/contenttype for the attachment"
},
"contentUrl": {
"type": "string",
"title": "Content Url",
"description": "the url for the content"
},
"content": {
"type": "object",
"title": "Content",
"description": "object content"
},
"name": {
"type": "string",
"title": "name",
"description": "optional name for the attachment"
},
"thumbnailUrl": {
"type": "string",
"title": "Thumenail Url",
"description": "The optional thumbnail url for the content"
}
}
}
}
}
]
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Choice input dialog",
"description": "Collect information - Pick from a list of choices",
@ -80,12 +80,12 @@
"$role": "expression",
"type": "string",
"enum": [
"None",
"Auto",
"Inline",
"List",
"SuggestedAction",
"HeroCard"
"none",
"auto",
"inline",
"list",
"suggestedAction",
"heroCard"
],
"title": "List style",
"description": "Sets the ListStyle to control how choices are rendered.",
@ -158,4 +158,4 @@
}
}
]
}
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Confirm input dialog",
"description": "Collect information - Ask for confirmation (yes or no).",
@ -32,12 +32,12 @@
"title": "List style",
"description": "The style or an expression to the style to use to render choices.",
"enum": [
"None",
"Auto",
"Inline",
"List",
"SuggestedAction",
"HeroCard"
"none",
"auto",
"inline",
"list",
"suggestedAction",
"heroCard"
],
"default": "Auto"
},
@ -75,7 +75,7 @@
},
"defaultValue": {
"$role": "expression",
"type": "boolean",
"type": "boolean",
"title": "Default value",
"description": "'Property' will be set to the value of this expression when max turn count is exceeded.",
"examples": [
@ -85,7 +85,7 @@
},
"value": {
"$role": "expression",
"type": "boolean",
"type": "boolean",
"title": "Value",
"description": "'Property' will be set to the value of this expression unless it evaluates to null.",
"examples": [

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Date/time input dialog",
"description": "Collect information - Ask for date and/ or time",
@ -33,9 +33,8 @@
"outputFormat": {
"$role": "expression",
"type": "string",
"format": "date",
"title": "Output format",
"description": "Expression to use format the datetime output.",
"description": "Expression to use format the output.",
"examples": [
"=this.value[0].Value"
]

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"type": "object",
"properties": {
"id": {

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Number input dialog",
"description": "Collect information - Ask for a number.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "OAuthInput Dialog",
"description": "Collect login information.",
@ -94,7 +94,7 @@
},
"allowInterruptions": {
"$role": "expression",
"type": [ "boolean", "string" ],
"type": "boolean",
"title": "Allow Interruptions",
"description": "A boolean expression that determines whether the parent should be allowed to interrupt the input.",
"default": "true",
@ -104,7 +104,7 @@
},
"alwaysPrompt": {
"$role": "expression",
"type": [ "boolean", "string" ],
"type": "boolean",
"title": "Always prompt",
"description": "Collect information even if the specified 'property' is not empty.",
"default": false,

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "QnAMaker Dialog",
"description": "Dialog which uses QnAMAker knowledge base to answer questions.",
@ -102,9 +102,9 @@
"title": "RankerType",
"description": "Type of Ranker.",
"enum": [
"Default",
"QuestionOnly",
"AutoSuggestQuestion"
"default",
"questionOnly",
"autoSuggestQuestion"
],
"default": "Default"
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Begin a skill dialog",
"description": "Begin a remote skill dialog.",
@ -67,7 +67,7 @@
"https://myskill.contoso.com/api/messages/"
]
},
"activity ": {
"activity": {
"$kind": "Microsoft.IActivityTemplate",
"title": "Activity",
"description": "The activity to send to the skill."

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"type": "object",
"title": "Text input dialog",

Просмотреть файл

@ -0,0 +1,25 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.ILanguageGenerator)",
"title": "Resource Multi-Language Generator",
"description": "MultiLanguage Generator which is bound to resource by resource Id.",
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "Id",
"description": "Optional generator ID."
},
"resourceId": {
"type": "string",
"title": "Resource Id",
"description": "Resource which is the root language generator. Other generaters with the same name and language suffix will be loaded into this generator and used based on the Language Policy.",
"default": "dialog.result"
},
"languagePolicy": {
"type": "object",
"title": "Language Policy",
"description": "Set alternate language policy for this generator. If not set, the global language policy will be used."
}
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.ILanguageGenerator)",
"title": "Template Multi-Language Generator",
"description": "Template Generator which allows only inline evaluation of templates.",
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "Id",
"description": "Optional generator ID."
}
}
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "Adaptive Dialog",
"description": "Flexible, data driven dialog that can adapt to the conversation.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"title": "Microsoft ActivityTemplates",
"description": "Components which are ActivityTemplate",
"$role": "interface",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"title": "Microsoft Dialogs",
"description": "Components which derive from Dialog",
"$role": "interface",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "interface",
"title": "Entity Recognizers",
"description": "Components which derive from EntityRecognizer.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"title": "Microsoft LanguageGenerator",
"description": "Components which dervie from the LanguageGenerator class",
"$role": "interface",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"title": "Microsoft Recognizer",
"description": "Components which derive from Recognizer class",
"$role": "interface",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"title": "Microsoft TextTemplate",
"description": "Components which derive from TextTemplate class",
"$role": "interface",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "interface",
"title": "Microsoft Triggers",
"description": "Components which derive from OnCondition class."

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "interface",
"title": "Selectors",
"description": "Components which derive from TriggerSelector class."

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"title": "Language Policy",
"description": "This represents a policy map for locales lookups to use for language",
"type": "object",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Age Entity Recognizer",
"description": "Recognizer which recognizes age.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Confirmation Entity Recognizer",
"description": "Recognizer which recognizes confirmation choices (yes/no).",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Currency Entity Recognizer",
"description": "Recognizer which recognizes currency.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "DateTime Entity Recognizer",
"description": "Recognizer which recognizes dates and time fragments.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Dimension Entity Recognizer",
"description": "Recognizer which recognizes dimension.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Email Entity Recognizer",
"description": "Recognizer which recognizes email.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Guid Entity Recognizer",
"description": "Recognizer which recognizes guids.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Hashtag Entity Recognizer",
"description": "Recognizer which recognizes Hashtags.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Ip Entity Recognizer",
"description": "Recognizer which recognizes internet IP patterns (like 192.1.1.1).",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Mentions Entity Recognizer",
"description": "Recognizer which recognizes @Mentions",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Number Entity Recognizer",
"description": "Recognizer which recognizes numbers.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "NumberRange Entity Recognizer",
"description": "Recognizer which recognizes ranges of numbers (Example:2 to 5).",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Ordinal Entity Recognizer",
"description": "Recognizer which recognizes ordinals (example: first, second, 3rd).",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Percentage Entity Recognizer",
"description": "Recognizer which recognizes percentages.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Phone Number Entity Recognizer",
"description": "Recognizer which recognizes phone numbers.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Regex Entity Recognizer",
"description": "Recognizer which recognizes patterns of input based on regex.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Temperature Recognizer",
"description": "Recognizer which recognizes temperatures.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Confirmation Url Recognizer",
"description": "Recognizer which recognizes urls.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IRecognizer)",
"title": "Cross-trained Recognizer Set",
"description": "Recognizer for detecting the value response from an Adaptive Card.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IRecognizer)",
"title": "Cross-trained Recognizer Set",
"description": "Recognizer for selecting between cross trained recognizers.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IRecognizer)",
"title": "LUIS Recognizer",
"description": "LUIS recognizer.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IRecognizer)",
"title": "Multi-language recognizer",
"description": "Configure one recognizer per language and the specify the language fallback policy.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IRecognizer)",
"title": "QnAMaker Recognizer",
"description": "Recognizer for generating QnAMatch intents from a KB.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IRecognizer)",
"title": "Recognizer Set",
"description": "Creates the union of the intents and entities of the recognizers in the set.",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IRecognizer)",
"title": "Regex recognizer",
"description": "Use regular expressions to recognize intents and entities from user input.",
@ -38,8 +38,5 @@
"title": "Entity recognizers",
"description": "Collection of entity recognizers to use."
}
},
"required": [
"intents"
]
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.IRecognizer)",
"title": "Value recognizer",
"description": "Recogne activity.Value as intent and entities.",
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "Id",
"description": "Optional unique id using with RecognizerSet. Other recognizers should return 'DeferToRecognizer_{Id}' intent when cross training data for this recognizer."
}
}
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.ITriggerSelector)",
"title": "Condtional Trigger Selector",
"description": "Use a rule selector based on a condition",

Просмотреть файл

@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$schema": "https://raw.githubusercontent.com/microsoft/botframework-sdk/master/schemas/component/component.schema",
"$role": "implements(Microsoft.ITriggerSelector)",
"title": "First Trigger Selector",
"description": "Selector for first true rule",

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше