VeeFriends.Character.Quotes
5.0.12
dotnet add package VeeFriends.Character.Quotes --version 5.0.12
NuGet\Install-Package VeeFriends.Character.Quotes -Version 5.0.12
<PackageReference Include="VeeFriends.Character.Quotes" Version="5.0.12" />
<PackageVersion Include="VeeFriends.Character.Quotes" Version="5.0.12" />
<PackageReference Include="VeeFriends.Character.Quotes" />
paket add VeeFriends.Character.Quotes --version 5.0.12
#r "nuget: VeeFriends.Character.Quotes, 5.0.12"
#:package VeeFriends.Character.Quotes@5.0.12
#addin nuget:?package=VeeFriends.Character.Quotes&version=5.0.12
#tool nuget:?package=VeeFriends.Character.Quotes&version=5.0.12
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
CharacterQuoteServiceandCharacterQuizService
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.Charactersfor 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 | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.2)
- Microsoft.Extensions.Options (>= 10.0.2)
- Microsoft.SemanticKernel.Connectors.OpenAI (>= 1.71.0)
- VeeFriends.Characters (>= 5.0.24)
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 |
|---|---|---|
| 5.0.12 | 1,232 | 3/21/2026 |
| 5.0.9 | 50,986 | 1/15/2025 |
| 5.0.8 | 641 | 1/9/2025 |
| 5.0.7 | 236 | 1/9/2025 |
| 5.0.6 | 173 | 1/9/2025 |
| 5.0.5 | 206 | 1/9/2025 |
| 5.0.4 | 211 | 1/9/2025 |
| 5.0.3 | 190 | 1/8/2025 |
| 5.0.2 | 153 | 1/8/2025 |
| 5.0.1 | 1,900 | 12/11/2024 |
| 4.1.53 | 223 | 12/11/2024 |
| 4.1.52 | 207 | 12/11/2024 |
| 4.1.51 | 217 | 12/11/2024 |
| 4.1.50 | 223 | 12/11/2024 |
| 4.1.49 | 212 | 12/11/2024 |
| 4.1.48 | 8,880 | 10/7/2024 |
| 4.1.47 | 259 | 10/3/2024 |
| 4.1.46 | 320 | 10/2/2024 |
| 4.1.45 | 207 | 10/2/2024 |
| 4.1.44 | 587 | 9/26/2024 |