![]() |
VOOZH | about |
dotnet add package HexaEightGPTMiddleware --version 1.6.115
NuGet\Install-Package HexaEightGPTMiddleware -Version 1.6.115
<PackageReference Include="HexaEightGPTMiddleware" Version="1.6.115" />
<PackageVersion Include="HexaEightGPTMiddleware" Version="1.6.115" />Directory.Packages.props
<PackageReference Include="HexaEightGPTMiddleware" />Project file
paket add HexaEightGPTMiddleware --version 1.6.115
#r "nuget: HexaEightGPTMiddleware, 1.6.115"
#:package HexaEightGPTMiddleware@1.6.115
#addin nuget:?package=HexaEightGPTMiddleware&version=1.6.115Install as a Cake Addin
#tool nuget:?package=HexaEightGPTMiddleware&version=1.6.115Install as a Cake Tool
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.
// 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 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.6.115 | 117 | 1/17/2026 |
| 1.6.114 | 299 | 12/16/2025 |
| 1.6.113 | 224 | 11/9/2025 |
| 1.6.112 | 204 | 10/20/2025 |
| 1.6.107 | 235 | 6/29/2024 |
| 1.6.106 | 195 | 6/29/2024 |
| 1.6.105 | 180 | 6/28/2024 |
| 1.6.104 | 183 | 6/28/2024 |
| 1.6.103 | 178 | 6/27/2024 |
| 1.6.102 | 212 | 6/27/2024 |
| 1.6.101 | 179 | 6/27/2024 |
| 1.6.100 | 180 | 6/25/2024 |
| 1.6.99 | 181 | 6/25/2024 |
| 1.6.98 | 173 | 6/25/2024 |
| 1.6.97 | 183 | 6/25/2024 |
| 1.6.96 | 186 | 6/25/2024 |