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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Yandex.Alice.Sdk" Version="2.3.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Yandex.Alice.Sdk --version 2.3.1                
#r "nuget: Yandex.Alice.Sdk, 2.3.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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                

Yandex.Alice.SDK

.Net SDK for development of Yandex Alice skills using C# language.

test NuGet

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:

alice

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.3.1 695 7/2/2023
2.2.1 199 6/17/2023
2.1.1 876 11/9/2021
2.1.0 366 11/3/2021
2.0.2 598 2/9/2021
2.0.0 431 2/9/2021
1.0.7 589 7/23/2020
1.0.6 527 7/15/2020
1.0.4 539 7/1/2020
1.0.3 547 5/14/2020

Add start_account_linking directive