VeeFriends.Character.Quotes
4.1.30
See the version list below for details.
dotnet add package VeeFriends.Character.Quotes --version 4.1.30
NuGet\Install-Package VeeFriends.Character.Quotes -Version 4.1.30
<PackageReference Include="VeeFriends.Character.Quotes" Version="4.1.30" />
paket add VeeFriends.Character.Quotes --version 4.1.30
#r "nuget: VeeFriends.Character.Quotes, 4.1.30"
// Install VeeFriends.Character.Quotes as a Cake Addin #addin nuget:?package=VeeFriends.Character.Quotes&version=4.1.30 // Install VeeFriends.Character.Quotes as a Cake Tool #tool nuget:?package=VeeFriends.Character.Quotes&version=4.1.30
VeeFriends.Character.Quotes
Generate quotes and quizzes for VeeFriends characters using AI.
Installation
$ dotnet add package VeeFriends.Character.Quotes
Usage
This package provides services for generating character-specific quotes and quizzes for VeeFriends characters using AI. It's designed to be used with your own OpenAI API key.
- Add the necessary services to your dependency injection container
- Configure the OpenAI API key
- Inject and use the
CharacterQuoteService
andCharacterQuizService
Setting up services
In your Startup.cs
or Program.cs
, add the following:
services.AddVeeFriendsCharacters();
services.AddCharacterQuoteService(options => options.ApiKey = "your-openai-api-key");
services.AddCharacterQuizService(options => options.ApiKey = "your-openai-api-key");
Generating a Quote
public class QuoteGenerator
{
private readonly CharacterQuoteService _quoteService;
public QuoteGenerator(CharacterQuoteService quoteService)
{
_quoteService = quoteService;
}
public async Task<string> GetQuoteOfTheDay(string characterName)
{
var quote = await _quoteService.GenerateMessageOfTheDay(characterName, CancellationToken.None);
return quote;
}
}
Generating a Quiz
public class QuizGenerator
{
private readonly CharacterQuizService _quizService;
public QuizGenerator(CharacterQuizService quizService)
{
_quizService = quizService;
}
public async Task<QuizAiResult> GenerateQuiz()
{
var quiz = await _quizService.GenerateQuestions(CancellationToken.None);
return quiz;
}
}
Models
The package uses the following main models:
public class QuizAiResult
{
public List<QuizQuestion> Quiz { get; set; }
}
public class QuizQuestion
{
public string Question { get; set; }
public List<QuizAnswer> Answers { get; set; }
}
public class QuizAnswer
{
public string Answer { get; set; }
public string Trait { get; set; }
}
Notes
- Ensure you have a valid OpenAI API key to use this package.
- The generated quotes and quizzes are based on AI and may require review for appropriateness and accuracy.
- This package depends on
VeeFriends.Characters
for character information.
Feel free to explore the other methods available in CharacterQuoteService
and CharacterQuizService
.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Product | Versions 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. |
-
net8.0
- Microsoft.Extensions.Caching.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.KernelMemory.Core (>= 0.73.240906.1)
- VeeFriends.Characters (>= 4.1.22)
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 |
---|---|---|
4.1.48 | 5,881 | 10/7/2024 |
4.1.47 | 128 | 10/3/2024 |
4.1.46 | 190 | 10/2/2024 |
4.1.45 | 85 | 10/2/2024 |
4.1.44 | 460 | 9/26/2024 |
4.1.43 | 581 | 9/20/2024 |
4.1.42 | 85 | 9/20/2024 |
4.1.41 | 74 | 9/20/2024 |
4.1.40 | 88 | 9/20/2024 |
4.1.39 | 80 | 9/20/2024 |
4.1.38 | 89 | 9/19/2024 |
4.1.37 | 84 | 9/19/2024 |
4.1.36 | 86 | 9/19/2024 |
4.1.35 | 81 | 9/19/2024 |
4.1.34 | 76 | 9/19/2024 |
4.1.33 | 83 | 9/19/2024 |
4.1.32 | 82 | 9/19/2024 |
4.1.31 | 124 | 9/19/2024 |
4.1.30 | 142 | 9/16/2024 |
4.1.29 | 91 | 9/16/2024 |
4.1.28 | 874 | 9/5/2024 |
4.1.27 | 403 | 9/4/2024 |
4.1.26 | 91 | 9/4/2024 |
4.1.25 | 91 | 9/4/2024 |
4.1.24 | 86 | 9/3/2024 |
4.1.23 | 134 | 9/3/2024 |
4.1.22 | 86 | 9/3/2024 |
4.1.21 | 91 | 9/3/2024 |
4.1.20 | 76 | 9/3/2024 |
4.1.19 | 405 | 8/26/2024 |
4.1.17 | 99 | 8/26/2024 |
4.1.16 | 98 | 8/26/2024 |
4.1.15 | 105 | 8/26/2024 |
4.1.14 | 88 | 8/26/2024 |
4.1.13 | 99 | 8/26/2024 |
4.1.12 | 104 | 8/26/2024 |
4.1.7 | 312 | 5/2/2024 |
4.1.6 | 514 | 3/19/2024 |
4.1.5 | 250 | 2/29/2024 |
4.1.4 | 101 | 2/29/2024 |
4.1.1 | 116 | 2/9/2024 |
4.0.16 | 114 | 2/9/2024 |
4.0.15 | 103 | 2/9/2024 |
4.0.14 | 109 | 2/9/2024 |
4.0.13 | 338 | 1/30/2024 |
4.0.12 | 105 | 1/26/2024 |
4.0.11 | 100 | 1/26/2024 |
4.0.10 | 117 | 1/25/2024 |
1.0.2 | 114 | 1/23/2024 |
1.0.1 | 386 | 12/4/2023 |
1.0.0 | 138 | 11/29/2023 |