AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube 0.0.5-preview

This is a prerelease version of AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube --version 0.0.5-preview                
NuGet\Install-Package AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube -Version 0.0.5-preview                
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="AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube" Version="0.0.5-preview" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube --version 0.0.5-preview                
#r "nuget: AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube, 0.0.5-preview"                
#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 AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube as a Cake Addin
#addin nuget:?package=AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube&version=0.0.5-preview&prerelease

// Install AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube as a Cake Tool
#tool nuget:?package=AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube&version=0.0.5-preview&prerelease                

Azure AI Community GitHub

The AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube This component offers a streamlined solution for conducting YouTube video searches, allowing users to specify keywords and seamlessly integrate YouTube video data into their projects.

Building a YouTube Video Connector

In this guide, we will walk you through the process of building a plugin to search for YouTube videos and retrieve video details .

Prerequisites

Install AzureAI.Community.Microsoft.Semantic.Kernel.PlugIn.Web.YouTube package from nuget server

Before you begin building the plugin, make sure you have the following prerequisites in place:

YouTube Data API Key: You'll need an API key from the YouTube Data API to access YouTube's data. You can obtain one by following the API key setup instructions on the YouTube API Documentation.

Plugin Building Steps

Create an Instance of YouTubeConnector

The YouTubeConnector class is responsible for conducting the search for YouTube videos. You need to create an instance of this class by providing your YouTube API key

Here's an example code snippet:


 var youTubeConnector = new YouTubeConnector("YouTube-Key");

Importing a Skill into the Kernel

To import a skill into the kernel, you can use the following C# code snippet:

 var youtubeSkill = kernel.ImportSkill(new WebSearchEngineSkill(youTubeConnector), nameof(YouTubeConnector));

Running a Skill within the Kernel

To execute a skill within the kernel, you can use the following C# code snippet:

var result = await kernel.RunAsync("Bot composer", youtubeSkill["search"]);

Output

Console.WriteLine(result);

YouTubeConnector offers robust support for conducting searches based on YouTube channels. This functionality allows users to efficiently retrieve and analyze content associated with specific YouTube channels.

When initializing the YouTubeConnector, simply supply the channel ID.

Here's an example code snippet:


 var youTubeConnector = new YouTubeConnector("YouTube-Key","youTube-ChannelId");

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
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
1.0.0-beta1 336 10/10/2023
0.0.5-preview 92 10/6/2023
0.0.4-preview 84 10/5/2023
0.0.3-preview 81 10/5/2023