Граф коммитов

876 Коммитов

Автор SHA1 Сообщение Дата
tracyboehrer 9d60e67189
Formatting changes (#1076) 2021-03-24 09:39:13 -05:00
Franco Alvarez c01ecdd56d
[SDK] Add bot-applicationinsights package (#1075)
* Create main structure

* Add pom file

* Add main classes

* Add TelemetryInitializerMiddleware in core folder

* Add package-info files

* Add MyBotTelemetryClient class in test folder

* Add unit tests

* Fix issue in WaterfallDialog class

Co-authored-by: Federico Bernal <64086728+FedericoBernal@users.noreply.github.com>
Co-authored-by: Martin Battaglino <martinbatta32@gmail.com>
2021-03-23 16:07:08 -05:00
Franco Alvarez 5c00a74e28
[SDK][Bot-Azure] Add BlobsStorage component (#1066)
* Add azure-storage-blob in pom

* Migrate BlobsStorage and BlobsTranscriptStore

* Add tests for BlobsStorage

* Add statePersistsThroughMultiTurn in StorageBaseTests for parity

* Add TestPocoState model

* Improve precision for timeStamp adding NanoClockHelper

* Add delay of 500ms to separate activities in tests

* Remove double braces in GenerateAnswerUtils

* Migrate ensureActivityHasId method to improve parity

* Apply format changes

* Replace assertEmulator with runIfEmulator

* Apply Tracy feedback

* Rename afterTest to testCleanup

Co-authored-by: Martin Battaglino <martinbatta32@gmail.com>
Co-authored-by: Victor Grycuk <victor.grycuk@southworks.com>
Co-authored-by: Victor <victor@grycuk.net>
2021-03-23 14:56:56 -05:00
Victor Grycuk b7c65cac38
[SDK][Bot-Azure] Add AzureQueueStorage component (#1033)
* Implement AzureQueueStorage

* Add and fix unit tests

* Improve createQueueIfNotExists handling

* Replace assertEmulator with runIfEmulator

* Apply Tracy's feedback

* Update libraries/bot-azure/src/test/java/com/microsoft/bot/azure/AzureQueueTests.java

Co-authored-by: Martin Battaglino <martinbatta32@gmail.com>

Co-authored-by: Martin Battaglino <martinbatta32@gmail.com>

* Remove double brace to standard initialization

Co-authored-by: Martin Battaglino <martinbatta32@gmail.com>
2021-03-23 14:28:25 -05:00
Lee Parrish 2efc030728
Fix bugs around inconsistent locale (#1074)
* DialogContext.getLocale port from C#

* BotAdapter updates for locale.

Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>
2021-03-23 13:42:32 -05:00
Lee Parrish 5d3d1c3cd7
Updates for Issue 1065 (#1071)
* Updates for Issue 1065

* Tweak to kick off new build.
2021-03-22 15:37:31 -05:00
Lee Parrish 3ca313aea3
Code coverage with Jacoco (#1068)
* JaCoCo test coverage

* JaCoCo build target setup

* Updates to support Jacoco code coverage

Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>
2021-03-22 10:15:30 -05:00
Martin Battaglino 8399a7f3aa
[Samples] Add 49.qnamaker-all-features sample (#1063)
* Add main README and pom

* Add deploymentTemplates

* Add resources folder

* Add webapp folder

* Add empty test

* Add botservices

* Add Startup

* Add dialogs

* Add bot

* Add package-info file

* Fix issues of QnAMakerDialog, add default constructor and remove double braces

* Fix issues in sample, update document and set initialDialog name for WaterfallDialog

* Fix disparities between samples

* Fix issues in migrated README
2021-03-18 11:03:29 -05:00
Lee Parrish c24b0e4046
Completed adaptive card sample 07.using-adaptive-cards (#1064)
* Completed adaptive card sample

* Remove commented code line.
2021-03-18 09:46:23 -05:00
Lee Parrish 837dca217f
Move allowed callers and skill conversation factory to SDK (#1062)
* Move allowed callers and skill convo factory

* Update for Application file.

Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>
2021-03-17 11:24:44 -05:00
Lee Parrish 466fd90b80
Fixes for Issue 809 (#1060) 2021-03-17 10:41:03 -05:00
Lee Parrish 3736b2656a
Dialog.run refactor (#1059)
* Refactor for Issue 1046

* Update to push the build again.
2021-03-16 08:24:17 -05:00
tracyboehrer 44969e6b71
Added DeliveryModes.EPHEMERAL (#1058) 2021-03-15 10:53:21 -05:00
tracyboehrer 47777086d5
TranscriptLoggerMiddleware set turnContext.Activity.From.Role (#1057) 2021-03-15 10:15:26 -05:00
tracyboehrer 06c3fdc0ed
Added sendEmulateOAuthCards (#1053)
* Added sendEmulateOAuthCards

* Removed unused imports

Co-authored-by: Lee Parrish <30470292+LeeParrishMSFT@users.noreply.github.com>
2021-03-12 14:35:24 -06:00
Martin Battaglino 2574aa61f5
[Samples] Add 25.message-reaction sample (#1055)
* Add pom for sample

* Add deploymentTemplates

* Add webapp

* Add teamsAppManifest folder

* Add application.properties file

* Add README

* Migrate main code of message reaction sample

* Add empty test

* Remove double braces for createMessageActivity method due to problem of mapping

* Populate empty test
2021-03-12 13:48:15 -06:00
Lee Parrish e5164bf39a
Added missing skills tests, fixed locale issues (#1054) 2021-03-12 11:29:17 -06:00
Lee Parrish 2d4ef624aa
Remove health check feature (#1052)
Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>
2021-03-11 14:35:57 -06:00
Lee Parrish 4dd06e088f
Skills implementation and Samples 80. Bot to Bot and 81. Dialog to Dialog (#1050)
* Push for backup

* One more file.

* SkillDialog complete

* Skills updates to other areas.

* Http Clients

* Unit tests complete

* Root bot and bug fixes

* Corrected token issues for skill to skill

* Skills fixes

* Remove proxy setup.

* Refactor SimpleRootBot

* Refactor EchoSkillBot

* Update readme.md files

* Commit before merge with main.

* Working DialogRootBot

* Fixes for unit tests.

* Initial DialogSkillBot

* Sample 81 and skills fixes.
2021-03-11 13:42:24 -06:00
tracyboehrer 13b647ad8d
Fixed some 15.handling-attachments leaks (#1049) 2021-03-11 11:18:42 -06:00
tracyboehrer b16bdec770
Added sample 15.handling-attachments (#1047)
* Added sample 15.handling-attachments

* Corrected package name in 15.handling-attachments
2021-03-11 10:34:34 -06:00
tracyboehrer 2e577c2383
Core Bot formatting (#1045)
* Core Bot formatting

* Simplified Core Bot Appliation DI
2021-03-10 09:21:38 -06:00
Martin Battaglino 3b23c785a8
[Samples] Add 13-core.bot sample (#1034)
* Add main pom for core-bot sample

* Add deploymentTemplates folder

* Add cognitiveModels folder

* Add main documentation of the sample

* Add dialogs classes

* Add resources folder

* Add webapp folder

* Add bot for sample

* Add BookingDetails model

* Add recognizer for LUIS model

* Add Startup file

* Add package-info

* Add empty test for sample
2021-03-10 08:32:07 -06:00
tracyboehrer e51a84dd1e
Dropped private Sun security imports. Now using pregenerated certs. (#1032) 2021-03-05 09:55:49 -06:00
tracyboehrer 24dc4e99d6
CosmosDB unit tests optional (if emulator is installed). Temporary. (#1026) 2021-03-01 10:32:56 -06:00
Victor Grycuk 5066b5747b
[SDK][Bot-Azure] Add CosmosDbPartitionedStorage component (#1024)
* CosmosDBPartitionedStorage

* Corrected Cosmos DB Emulator status check

* Update CosmosDbPartitionedStorage classes

* Update CosmosDbPartitionStorage tests

* Normalize test names

* Clean imports

* Remove unnecesary dlls

Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>
Co-authored-by: Martin Battaglino <martinbatta32@gmail.com>
2021-02-26 15:39:53 -06:00
tracyboehrer 6e249103d3
Small QnA sample style change (#1025) 2021-02-26 15:29:11 -06:00
Martin Battaglino f84e1da09b
[Samples] Add 11.qnamaker bot sample (#1023)
* Add project structure

* Add deploymentTemplates folder

* Add deploymentTemplates folder

* Fix templates

* Add webapp folder

* Add application.properties

* Add qnabot class

* Add qnabot class

* Add pom

* Add feedback changes

* Remove join() calls

* Add Application class

* Add Application class

* Implement the use of ConfigurationCredentialProvider

* Apply feedback

* Add smartLightFAQ file to project

* Add README

* Fix Application class

* Add qna-ai version to pom + empty class for test

* Changes to QnABot

* Add requested changes

Co-authored-by: MatR <matias.roldan@southworks.com>
Co-authored-by: Federico Bernal <64086728+FedericoBernal@users.noreply.github.com>
2021-02-26 14:55:12 -06:00
Martin Battaglino 349ab351af
[SDK][Bot-Dialogs] Update Recognizers-Text internal library (#1021)
* Update Recognizers-Text Choice library

* Update Recognizers-Text Datetime library

* Update Recognizers-Text Number library

* Update Recognizers-Text NumberWithUnit library

* Update Recognizers-Text Main library

* Add Recognizers-Text Expression library

* Add Recognizers-Text Sequence library

* Remove deprecated workaround as it's fixed in RT
2021-02-25 10:28:05 -06:00
tracyboehrer 0a7c6c1f90
Luis: Now using okhttp3 instead of httpclient (#1019) 2021-02-24 11:15:06 -06:00
tracyboehrer 9c13651965
Updated dependencies and resolved most version conflicts (#1018) 2021-02-24 09:44:40 -06:00
tracyboehrer 94e5eef926
Luis-v3, switched to JUnit 4 to get Maven unit tests running, code formatting (#1017) 2021-02-23 16:08:10 -06:00
tracyboehrer de1867d1a2
Minor QnA test issues and formatting (#1016)
* Some tests weren't passing, just on some machines.

* Standardized Okhttp3 version across modules

* Okhttp3 dependencies in parent pom

* Code reformatting (no logic changes)

* Corrected a few CompletableFuture exceptional return results.
2021-02-23 13:45:41 -06:00
Martin Battaglino 7b2d3a47c1
[SDK] Add bot-ai-qna library (#907)
* Add Utils folder

* Copy schemas

* Add icon from C#

* Add Models folder

* Add Dialogs folder

* Add root files

* Add README document

* Add mock Test folder

* Apply requested feedback, fix checkstyle and build issues

* Delete QnAMakerComponentRegistration class

* Delete schema folder

* Fix ref to AdaptiveExpressions in QnAMakerDialog

* Fix ref adaptiveExpressions in QnAMakerRecognizer

* Apply internal feedback

* Add dialogs library, fix references

* Fix PMD and checkstyles errors

* Add description in javadocs for IOException

* Apply internal feedback

* Add QnA unit tests

* Add files into the TestData folder

* Add QnAMakerTraceInfoTests

* Add MyTurnContext class

* Change tests location

* Add MyTurnContext class

* Add returns in set and get Locale methods

* Fix consistency multi-line methods

* Add default inputHint

Co-authored-by: Martin Battaglino <martinbatta32@gmail.com>

* Add QnAMakerCardEqualityComparer

* Change tests location

* Add QnAMakerCardEqualityComparer class

Co-authored-by: Martin Battaglino <martinbatta32@gmail.com>

* Move location of QnAMakerTraceInfoTests

* Remove TestData

* Add testData

* Add QnAMakerTest class

* Add files into the TestData folder

* Change location of tests

* Add Mockito dependency

* Add more test to QnAMakerTests class

* Migrate more tests

* Remove TestData

* Add testData

* Add QnAMakerTraceInfoTests

* Add MyTurnContext class

* Change tests location

* Add MyTurnContext class

* Add returns in set and get Locale methods

* Fix consistency multi-line methods

* Add default inputHint

Co-authored-by: Martin Battaglino <martinbatta32@gmail.com>

* Add QnAMakerCardEqualityComparer

* Change tests location

* Add QnAMakerCardEqualityComparer class

Co-authored-by: Martin Battaglino <martinbatta32@gmail.com>

* Add private methods in QnAMakerTests

* Fix issues

* Add MockWebServer to tests

* replace ref to interceptHttp

* Add try/catch/finally

* Replace thenApply with thenAccept

* Add mocked OkHttpClient

* Fix errors

* Fix delta

* Remove merge files

* Fix QnAMakerTest

* Clean-up pom, remove QnAMakerDialogTest, update QnAMakerTests

Co-authored-by: Martin Battaglino <martinbatta32@gmail.com>

Co-authored-by: Franco Alvarez <51216149+fran893@users.noreply.github.com>

* Add QnAMakerRecognizer, QnAMakerRecognizerTests and fix issues

* Add QnAMakerRecognizer, tests and fix some issues

* Apply internal feedback

* Fix QnA Unit Tests

* Fix QnAMakerRecognizerTests unit tests

* Fix mock issues and internal issues

* Fix QnAMakerRecognizerTests unit tests

* Rollback unused changes

* Add body in http execution

* Fix tests execution adding the correct Test import

* Apply internal feedback

* Fix QnA unit tests

* Fix generate answer utils

* Fix errors

* Fix mock issues and internal issues

* Fix issues with the url

* Add remaining join

* Fix qnaMakerTestUnsuccessfulResponse test

* Refactor of QnAMakerTests

* Import correct json and fix string format

* Fix qnaMakerTraceActivity test

* Fix tests with request object

* Fix qnaMakerLowScoreVariation

* Fix qnaMakerTestThresholdInQueryOption test

* Fix telemetryOverride test

* Enable qnaMakerTestOptionsHydration failing test

* Fix qnaMakerTestOptionsHydration test

* Fix telemetry tests

* Fix disparity in GenerateAnswerUtils

* Fix remaining unit tests

* Change jupiter to junit

* Remove mockito-junit-jupiter dependency

* Fix checkstyle errors

* Apply internal feedback

Co-authored-by: Franco Alvarez <franco.alvarez@southworks.com>
Co-authored-by: Federico Bernal <64086728+FedericoBernal@users.noreply.github.com>

* Rollback id to Id

* Improve readFileContent method and remove comments

Co-authored-by: Franco Alvarez <franco.alvarez@southworks.com>
Co-authored-by: Federico Bernal <64086728+FedericoBernal@users.noreply.github.com>

* Apply requested feedback

* Remove I from ITelemetryQnAMaker IQnAMakerClient

* Remove kind property

* Drop unused constructor in QnAMakerDialog

* Remove resources/icon.png

* Replace getType with isType

* Replace == comparison

* Fix unchecked assignment warning in fillQnAEvent

* Add StringLiteralEquality

* Remove sourceFilePath and sourceLineNumber

* Use activity.getType in tests

* Remove unnecesary whitespace

Co-authored-by: Martin Battaglino <martinbatta32@gmail.com>

Co-authored-by: Franco Alvarez <51216149+fran893@users.noreply.github.com>
Co-authored-by: Franco Alvarez <franco.alvarez@southworks.com>
Co-authored-by: Federico Bernal <64086728+FedericoBernal@users.noreply.github.com>
2021-02-23 12:24:25 -06:00
tracyboehrer 8f7bdb6899
Switched to Jackson JSON for Teams sample #52 (#1015) 2021-02-22 14:03:36 -06:00
tracyboehrer 06e89b94ca
Switch to Jackson to correct JSON issue. (#1012) 2021-02-22 09:33:24 -06:00
tracyboehrer 51bbcd365c
Sample corrections (#1008) (#1009)
* add missing ConnectionName

* Fix for change in API signature.

Co-authored-by: Lee Parrish <30470292+LeeParrishMSFT@users.noreply.github.com>
2021-02-19 16:22:43 -06:00
tracyboehrer d936ed0e28
Added CertificateAppCredentials (untested) (#998) 2021-02-18 10:55:57 -06:00
tracyboehrer 46398f0ec8
Corrected getTeamsDetails HTTP method (main) (#1003)
* Corrected getTeamsDetails HTTP method (main)

* Removed unused import
2021-02-18 10:21:49 -06:00
tracyboehrer 896181fa34
Version bump (#1000) 2021-02-17 14:00:03 -06:00
tracyboehrer 71c5b29566
Fixed O365ConnectorCardHttpPOST setBody (#997)
Co-authored-by: Lee Parrish <30470292+LeeParrishMSFT@users.noreply.github.com>
2021-02-17 08:36:48 -06:00
Emilio Munoz bc2f483af8
Adding missing null check on TelemetryClient and RecognizerOptions (#996)
* Adding first Iteration of Luis Recognizer

* Adding tests, comments and fixing bugs

* Enabling live testing, commenting Dialog Recognizer dependency

* Removing spaces and fixing not implemented try catch

* Fixing linting errors

* Fixing style check errors

* Fixing style checks

* Adding package-info.java file

* Adding missing Doc on Constructor

* Adding missing javadoc at classes

* Adding test on send trace Activity

* Adding missing test

* Added Dialogs Recognizer

* Uncommented ExternalEntityRecognizer accessors

* Added missing Dialog.Recognizer.recognize method

* Adding test for DialogContext scenarios

* Adding missing javadoc

* Throwing Exception

* Fixing style

* Missing error message

* Adding missing null check on TelemetryClient and RecognizerOptions

Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>
2021-02-17 07:57:46 -06:00
tracyboehrer ca5d557525
Updated generator Echo and Empty bots (#981) 2021-02-12 14:44:52 -06:00
tracyboehrer 538a138695
Updated STATUS (#979)
* Updated package/sample status

* Udpated STATUS.md

* Updated STATUS.md

* Update STATUS.md

Update spacing.

Co-authored-by: Lee Parrish <30470292+LeeParrishMSFT@users.noreply.github.com>
2021-02-12 11:57:59 -06:00
Lee Parrish d3373692e3
Sample: 24.bot-authentication-msgraph (#977)
* MSGraph Auth Sample Bot

* Add missing TextPrompt

* minor updates

* Fix name and remove settings file.

Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>
2021-02-12 11:16:22 -06:00
Lee Parrish 6da532d374
Teams Auth Sample (#973) 2021-02-12 10:20:22 -06:00
tracyboehrer af273cb635
Implemented remaining SkillValidation methods and tests (#972) 2021-02-11 17:46:14 -06:00
Emilio Munoz c057023b61
Luis Recognizer package (#962)
* Adding first Iteration of Luis Recognizer

* Adding tests, comments and fixing bugs

* Enabling live testing, commenting Dialog Recognizer dependency

* Removing spaces and fixing not implemented try catch

* Fixing linting errors

* Fixing style check errors

* Fixing style checks

* Adding package-info.java file

* Adding missing Doc on Constructor

* Adding missing javadoc at classes

* Adding test on send trace Activity

* Adding missing test

* Added Dialogs Recognizer

* Uncommented ExternalEntityRecognizer accessors

* Added missing Dialog.Recognizer.recognize method

* Adding test for DialogContext scenarios

* Adding missing javadoc

* Throwing Exception

* Fixing style

* Missing error message

Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>
2021-02-11 12:35:46 -08:00
tracyboehrer 497c35ee55
Sample 19.custom-dialogs (#971) 2021-02-11 14:21:07 -06:00
tracyboehrer 12aa58d58c
Fixed bug with AppCredentials passed to adapter not being used. (#969) 2021-02-10 16:04:45 -06:00