LLMinstructPrompter 0.0.0.1-alpha

This is a prerelease version of LLMinstructPrompter.
dotnet add package LLMinstructPrompter --version 0.0.0.1-alpha                
NuGet\Install-Package LLMinstructPrompter -Version 0.0.0.1-alpha                
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="LLMinstructPrompter" Version="0.0.0.1-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LLMinstructPrompter --version 0.0.0.1-alpha                
#r "nuget: LLMinstructPrompter, 0.0.0.1-alpha"                
#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 LLMinstructPrompter as a Cake Addin
#addin nuget:?package=LLMinstructPrompter&version=0.0.0.1-alpha&prerelease

// Install LLMinstructPrompter as a Cake Tool
#tool nuget:?package=LLMinstructPrompter&version=0.0.0.1-alpha&prerelease                

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Code README</title> <style> body { font-family: Arial, sans-serif; line-height: 1.5; }

h1 {
  margin-top: 0;
}

h2 {
  margin-bottom: 0.5em;
}

pre {
  background-color: #f4f4f4;
  padding: 10px;
  overflow-x: auto;
}

code {
  font-family: Consolas, monospace;
}

</style> </head> <body> <h1>Code README</h1> <p>This package is contributed by Varun Setia</p> <h2>Table of Contents</h2> <ul> <li><a href="#singletaskrawoutputtest">SingleTaskRawOutputTest</a></li> <li><a href="#singletaskjsonoutputtest">SingleTaskJsonOutputTest</a></li> <li><a href="#singletaskcsvoutputtest">SingleTaskCsvOutputTest</a></li> <li><a href="#singletaskjsonlistoutputtest">SingleTaskJsonListOutputTest</a></li> <li><a href="#multipletasksjsonlistoutputtest">MultipleTasksJsonListOutputTest</a></li> <li><a href="#nosystemprompttest">NoSystemPromptTest</a></li> </ul>

<hr>

<h2 id="singletaskrawoutputtest">SingleTaskRawOutputTest</h2> <pre><code>public void SingleTaskRawOutputTest() { promptDesigns = new PromptDesigns(); var promptBuilder = promptDesigns.SetTask(new Abstract.Entities.PromptTask { Task = "Get sentiment from text 'I am happy'" }); promptBuilder.SetOutputUniqueness(Abstract.Entities.OutputRandomness.Low); promptDesigns.SetOutputFormat(Abstract.Entities.OutputType.Raw); var prompt = promptDesigns.GetPrompt(); Assert.IsNotNull(prompt); }</code></pre>

<h2 id="singletaskjsonoutputtest">SingleTaskJsonOutputTest</h2> <pre><code>public void SingleTaskJsonOutputTest() { promptDesigns = new PromptDesigns(); var promptBuilder = promptDesigns.SetTask(new Abstract.Entities.PromptTask { Task = "Get sentiment from text 'I am happy'" }); promptBuilder.SetOutputUniqueness(Abstract.Entities.OutputRandomness.Low); promptDesigns.SetOutputFormat(Abstract.Entities.OutputType.JSON); promptDesigns.OutputObject<SentimentTest>(); var prompt = promptDesigns.GetPrompt(); Assert.IsNotNull(prompt); }</code></pre>

<h2 id="singletaskcsvoutputtest">SingleTaskCsvOutputTest</h2> <pre><code>public void SingleTaskCsvOutputTest() { promptDesigns = new PromptDesigns(); var promptBuilder = promptDesigns.SetTask(new Abstract.Entities.PromptTask { Task = "Get words and count from text 'Coz I am happy happy happy, get along with me coz I am happy !!'" }); promptBuilder.SetOutputUniqueness(Abstract.Entities.OutputRandomness.Low); promptDesigns.SetOutputFormat(Abstract.Entities.OutputType.CSV); promptDesigns.OutputObject<WordCount>(); var prompt = promptDesigns.GetPrompt(); Assert.IsNotNull(prompt); }</code></pre>

<h2 id="singletaskjsonlistoutputtest">SingleTaskJsonListOutputTest</h2> <pre><code>public void SingleTaskJsonListOutputTest() { promptDesigns = new PromptDesigns(); var promptBuilder = promptDesigns.SetTask(new Abstract.Entities.PromptTask { Task = "Get words and count from text 'Coz I am happy happy happy, get along with me coz I am happy !!'" }); promptBuilder.SetOutputUniqueness(Abstract.Entities.OutputRandomness.Low); promptDesigns.SetOutputFormat(Abstract.Entities.OutputType.JSON); promptDesigns.OutputObject<List<WordCount>>(); var prompt = promptDesigns.GetPrompt(); Assert.IsNotNull(prompt); }</code></pre>

<h2 id="multipletasksjsonlistoutputtest">MultipleTasksJsonListOutputTest</h2> <pre><code>public void MultipleTasksJsonListOutputTest() { promptDesigns = new PromptDesigns(); var promptBuilder = promptDesigns.SetTasks( new Abstract.Entities.PromptTask { Task = "Write the sad version of 'Coz I am happy happy happy, get along with me coz I am happy !!'" }, new Abstract.Entities.PromptTask { Task = "Finally, Extract the count of each word", Order = 2 }); promptBuilder.SetOutputUniqueness(Abstract.Entities.OutputRandomness.Low); promptDesigns.SetOutputFormat(Abstract.Entities.OutputType.JSON); promptDesigns.OutputObject<List<WordCount>>(); var prompt = promptDesigns.GetPrompt(); Assert.IsNotNull(prompt); }</code></pre>

<h2 id="nosystemprompttest">NoSystemPromptTest</h2> <pre><code>public void NoSystemPromptTest() { promptDesigns = new PromptDesigns(); var promptBuilder = promptDesigns.SetTask(new Abstract.Entities.PromptTask { Task = "Write a poem" }).DiscardSystemPrompt(); var prompt = promptBuilder.GetPrompt(); Assert.IsNotNull(prompt); }</code></pre>

</body> </html>

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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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
0.0.0.1-alpha 95 6/11/2023