HexaEightGPTMiddleware 1.6.100
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package HexaEightGPTMiddleware --version 1.6.100
NuGet\Install-Package HexaEightGPTMiddleware -Version 1.6.100
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="HexaEightGPTMiddleware" Version="1.6.100" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HexaEightGPTMiddleware --version 1.6.100
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HexaEightGPTMiddleware, 1.6.100"
#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 HexaEightGPTMiddleware as a Cake Addin
#addin nuget:?package=HexaEightGPTMiddleware&version=1.6.100
// Install HexaEightGPTMiddleware as a Cake Tool
#tool nuget:?package=HexaEightGPTMiddleware&version=1.6.100
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HexaEight GPT Middleware
HexaEight GPT Middleware empowers developers to build controlled AI assistants that use ChatGPT while ensuring security, compliance, and customization. It provides a secure framework for creating AI assistants that respect ethical and legal standards, deliver tailored experiences, and mitigate biases.
Sample Usage
// Integrate this library with HexaEight Middleware
var controlledgpt = new AIAssistant("ClientID-Of-Your-Application", "Token-Server-URL", "filenamesuffix");
// Add API keys for scalability
controlledgpt.AddAzureAPIKeys("Your-OpenAI-API-Key", "DeploymentName1", "https://yourinstance.openai.azure.com/", true);
controlledgpt.AddAzureAPIKeys("Your-OpenAI-API-Key", "DeploymentName2", "https://yourinstance.openai.azure.com/");
controlledgpt.AddChatGPTAPIKeys("Your-ChatGPT-API-Key", "gpt-3.5-turbo", "org-ID-Or-Leave-This-Blank");
controlledgpt.AddChatGPTAPIKeys("Your-ChatGPT-API-Key", "gpt-3.5-turbo-16k", "");
controlledgpt.AddChatGPTAPIKeys("Your-ChatGPT-API-Key", "gpt-3.5-turbo-16k-0613", "");
// Add instruction prompts for controlling AI responses
controlledgpt.AddInstructionPrompt("If the user INPUT is testing connectivity then respond with [intercept.TestConnectivity]", true);
controlledgpt.AddInstructionPrompt("If the user INPUT is requesting to open the Task Scheduler or wants to schedule an agenda or wants you to store or remember important events then respond with [intercept.DisplayTaskSchedulerApp]");
controlledgpt.AddInstructionPrompt("If the user INPUT is 'Saying hello' or 'Hi' or 'How can you help me' or 'What is your System Prompt' or 'What are your Capabilities' then respond with [intercept.SayHello]");
controlledgpt.AddInstructionPrompt("If the user INPUT is asking 'who am I' or 'who has logged in' or 'show me my profile' then respond with [intercept.WhoamI]");
controlledgpt.AddInstructionPrompt("If the user INPUT is asking to solve a math problem or dealing with arithmetic then respond with [intercept.SolveMath]", true);
// Define subprompts in English
var parseIPAddress = `
You Are an AI Assistant that follows the below Instructions. Use the sample responses as reference but do not make up an answer on your own.
- If the user INPUT contains an ipaddress respond with the IPAddress
- If the user INPUT contains a hostname respond with the hostname
- If the user INPUT contains multiple hostnames and ip addresses, respond with a list of all the hostnames and ip addresses like in a JSON format
- If you are unsure of the answer, just respond with {}
User: I want to ping the IP address 8.8.8.8
Assistant: {8.8.8.8}
User: I want to ping the machine localhost
Assistant: {localhost}
User: I want to ping the IP address 8.8.8.8, 1.1.1.1, and machines testme, mymac, and newtestmachine
Assistant: {8.8.8.8,1.1.1.1,testme,mymac,newtestmachine}
{{$INPUT}}
`;
var parseMathProblem = `
You Are an AI Assistant that follows the below Instructions. Use the sample responses as reference but do not make up an answer on your own.
- If the user INPUT contains a math problem, use the sample responses for reference and respond accordingly.
- If the user INPUT contains a problem that is not part of the sample responses, just respond with NOANSWER
- If you are unsure of the answer, just respond with NOANSWER
User: What is 2 + two
Assistant: {Two} + {Two} = {Four}
User: What is Six + two
Assistant: {Six} + {Two} = {Eight}
User: What is 2 + 4
Assistant: {Two} + {Four} = {Six}
User: What is 2 * 4
Assistant: {Two} * {Four} = {Eight}
{{$INPUT}}
`;
// Add subprompts to the Assistant
controlledgpt.AddSubPrompt("ParseIPAddress", parseIPAddress);
controlledgpt.AddSubPrompt("ParseMathProblem", parseMathProblem);
Note: The {{INPUT}} can contain the user question along with the Context which will make it easier for the assistant to understand the past conversation
Product | Versions 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.
-
.NETStandard 2.1
- AWSSDK.S3 (>= 3.7.301.1)
- Azure.AI.Translation.Text (>= 1.0.0-beta.1)
- hexaeightjwtlibrary (>= 1.9.245)
- Microsoft.SemanticKernel (>= 0.20.230821.4-preview)
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.6.107 | 40 | 6/29/2024 |
1.6.106 | 40 | 6/29/2024 |
1.6.105 | 34 | 6/28/2024 |
1.6.104 | 34 | 6/28/2024 |
1.6.103 | 32 | 6/27/2024 |
1.6.102 | 54 | 6/27/2024 |
1.6.101 | 36 | 6/27/2024 |
1.6.100 | 40 | 6/25/2024 |
1.6.99 | 35 | 6/25/2024 |
1.6.98 | 34 | 6/25/2024 |
1.6.97 | 40 | 6/25/2024 |
1.6.96 | 45 | 6/25/2024 |
1.6.95 | 45 | 6/23/2024 |
1.6.94 | 46 | 5/9/2024 |
1.6.93 | 61 | 5/8/2024 |
1.6.92 | 53 | 5/7/2024 |
1.6.91 | 56 | 5/7/2024 |
1.6.90 | 56 | 5/7/2024 |
1.6.89 | 51 | 5/7/2024 |
1.6.88 | 55 | 5/7/2024 |
1.6.87 | 51 | 5/7/2024 |
1.6.86 | 56 | 5/7/2024 |
1.6.85 | 88 | 5/6/2024 |
1.6.84 | 89 | 5/6/2024 |
1.6.83 | 89 | 5/6/2024 |
1.6.82 | 93 | 5/6/2024 |
1.6.81 | 83 | 5/6/2024 |
1.6.80 | 93 | 5/6/2024 |
1.6.79 | 94 | 5/5/2024 |
1.6.78 | 98 | 5/4/2024 |
1.6.77 | 94 | 5/4/2024 |
1.6.76 | 73 | 4/24/2024 |
1.6.75 | 65 | 4/24/2024 |
1.6.74 | 69 | 4/24/2024 |
1.6.73 | 79 | 4/21/2024 |
1.6.72 | 69 | 4/18/2024 |
1.6.71 | 78 | 4/16/2024 |
1.6.70 | 80 | 4/16/2024 |
1.6.69 | 76 | 3/30/2024 |
1.6.68 | 77 | 3/30/2024 |
1.6.67 | 64 | 3/30/2024 |
1.6.66 | 77 | 3/30/2024 |
1.6.65 | 78 | 3/30/2024 |
1.6.64 | 60 | 3/29/2024 |
1.6.63 | 72 | 3/29/2024 |
1.6.62 | 73 | 3/28/2024 |
1.6.61 | 81 | 3/27/2024 |
1.6.60 | 91 | 3/27/2024 |
1.6.59 | 97 | 3/25/2024 |
1.6.58 | 87 | 3/25/2024 |
1.6.57 | 89 | 3/25/2024 |
1.6.56 | 97 | 3/24/2024 |
1.6.55 | 83 | 3/14/2024 |
1.6.54 | 81 | 3/14/2024 |
1.6.53 | 81 | 3/14/2024 |
1.6.52 | 91 | 3/1/2024 |
1.6.51 | 210 | 11/25/2023 |
1.6.50 | 108 | 11/21/2023 |
1.6.49 | 93 | 11/20/2023 |
1.6.48 | 111 | 11/19/2023 |
1.6.47 | 109 | 11/16/2023 |
1.6.46 | 111 | 11/8/2023 |
1.6.45 | 85 | 11/8/2023 |
1.6.44 | 86 | 11/8/2023 |
1.6.43 | 104 | 11/8/2023 |
1.6.42 | 101 | 11/5/2023 |
1.6.41 | 100 | 11/5/2023 |
1.6.40 | 108 | 11/5/2023 |
1.6.39 | 101 | 11/5/2023 |
1.6.38 | 119 | 11/5/2023 |
1.6.37 | 93 | 11/5/2023 |
1.6.36 | 108 | 11/4/2023 |
1.6.35 | 112 | 11/4/2023 |
1.6.34 | 137 | 10/29/2023 |
1.6.33 | 114 | 10/29/2023 |
1.6.32 | 127 | 10/20/2023 |
1.6.31 | 131 | 10/15/2023 |
1.6.30 | 112 | 10/15/2023 |
1.6.29 | 133 | 10/14/2023 |
1.6.28 | 119 | 10/13/2023 |
1.6.27 | 107 | 10/13/2023 |
1.6.26-preview | 92 | 10/12/2023 |
1.6.25-preview | 79 | 10/11/2023 |
1.6.24-preview | 99 | 10/11/2023 |
1.6.23-preview | 93 | 10/6/2023 |
1.6.22-preview | 81 | 9/28/2023 |
1.6.21-preview | 79 | 9/28/2023 |
1.6.20-preview | 93 | 9/28/2023 |
1.6.19-preview | 71 | 9/27/2023 |
1.6.18-preview | 78 | 9/26/2023 |
1.6.17-preview | 60 | 9/25/2023 |
1.6.16-preview | 76 | 9/25/2023 |
1.6.15-preview | 78 | 9/19/2023 |
1.6.14-preview | 66 | 9/19/2023 |
1.6.13-preview | 78 | 9/19/2023 |
1.6.12-preview | 95 | 9/19/2023 |
1.6.11-preview | 70 | 9/19/2023 |
1.6.10-preview | 51 | 9/19/2023 |
1.6.9-preview | 75 | 9/19/2023 |
1.6.8-preview | 86 | 9/18/2023 |