Yandex.Alice.Sdk
2.3.1
dotnet add package Yandex.Alice.Sdk --version 2.3.1
NuGet\Install-Package Yandex.Alice.Sdk -Version 2.3.1
<PackageReference Include="Yandex.Alice.Sdk" Version="2.3.1" />
paket add Yandex.Alice.Sdk --version 2.3.1
#r "nuget: Yandex.Alice.Sdk, 2.3.1"
// Install Yandex.Alice.Sdk as a Cake Addin #addin nuget:?package=Yandex.Alice.Sdk&version=2.3.1 // Install Yandex.Alice.Sdk as a Cake Tool #tool nuget:?package=Yandex.Alice.Sdk&version=2.3.1
.Net SDK for development of Yandex Alice skills using C# language.
It supports the following skill types:
Installation
Install NuGet package with SDK:
Install-Package Yandex.Alice.Sdk
General skills
This repository has a demo project written on ASP.NET Core Web Api, which demonstrates the usage of SDK.
Demo project skill was published in the Alice catalog:
In general, you would need to create a controller with the POST action method which receives an object of AliceRequest class as a parameter.
The method can return one of three response types according to Alice's protocol:
- AliceResponse - without images
- AliceImageResponse - with one image
- AliceGalleryResponse - with a gallery of several images
A simple example of the implementation of functionality is described above:
using Microsoft.AspNetCore.Mvc;
using Yandex.Alice.Sdk.Models;
[ApiController]
[Route("[controller]")]
public class AliceController : ControllerBase
{
[HttpPost]
[Route("/alice")]
public IActionResult Get(AliceRequest aliceRequest)
{
return Ok(new AliceResponse(aliceRequest, "Hello"));
}
}
More info you can find in the wiki
Smart home skills
For Smart home skills in addition to the server that receives requests from Alice, you would need an additional OAuth server. In this smart home demo project, both servers were combined in one for simplicity. This wiki page has a guide that you can use to quickly create a skill and test library.
Contributing
Please check out the Contributing guide for guidelines about how to start.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- JetBrains.Annotations (>= 2022.3.1)
- System.Text.Json (>= 4.7.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Add start_account_linking directive