ExceptionAInalyzer 3.0.2

dotnet add package ExceptionAInalyzer --version 3.0.2
                    
NuGet\Install-Package ExceptionAInalyzer -Version 3.0.2
                    
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="ExceptionAInalyzer" Version="3.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ExceptionAInalyzer" Version="3.0.2" />
                    
Directory.Packages.props
<PackageReference Include="ExceptionAInalyzer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ExceptionAInalyzer --version 3.0.2
                    
#r "nuget: ExceptionAInalyzer, 3.0.2"
                    
#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.
#:package ExceptionAInalyzer@3.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ExceptionAInalyzer&version=3.0.2
                    
Install as a Cake Addin
#tool nuget:?package=ExceptionAInalyzer&version=3.0.2
                    
Install as a Cake Tool

ExceptionAInalyzer: Error analysis with AI support 🚀

Downloads Pipeline status GitHub

Logo ExceptionAnalyzer is a C# library that utilizes the OpenAI API to analyze, interpret, and provide useful information from complex data such as error stack traces. It offers actionable insights to both users and developers, assisting in troubleshooting and error resolution by processing and presenting relevant details in a clear, concise, and user-friendly manner.

Dive into the era of AI-supported error handling with ExceptionAInalyzer. An innovation geared towards simplifying software development processes.

🌟 Overview

In the age of modern software development, the importance of efficient bug fixing cannot be overstated. But, what if AI could make this process even more streamlined? That's where ExceptionAInalyzer steps in. By harnessing the power of OpenAI's GPT models, ExceptionAInalyzer analyzes exceptions, provides detailed analysis, user-friendly messages, and solution proposals.

📜 Error Diagnosis in Software Development

Software developers know the challenges of error diagnosis. Whether it's interpreting error messages or analyzing stack traces, the process can be tedious. ExceptionAInalyzer aims to bridge the gap between technical precision and general understanding. Powered by GPT-4, ExceptionAInalyzer can provide insights like an experienced developer or a support team member, thanks to the vast data it has been trained on.

🤖 Features

  • Analyze stack traces of exceptions and identify root causes of errors with AI support using OpenAI's GPT model
  • Generate a detailed error analysis, highlighting possible causes and affected components
  • Craft user-friendly messages to help non-technical users understand errors without overwhelming them with technical jargon
  • Provide technical descriptions of errors for software developers, including information about affected classes, methods, and line numbers in the code
  • Suggest one or more potential solutions to fix the error based on the conducted analysis

⚙️ Installation

Include the ExceptionAInalyzer project in your solution and add a reference to it in your main project.

📊 Usage

To use the ExceptionAnalyzer, you will need an API key from OpenAI. Use the SetApiKey Methode in ExceptionService.

using ExceptionAInalyzer;
using ExceptionAInalyzer.Models;

To analyze an exception, call the GetAnalyzedException extension method on an instance of an exception:

try
{
    // Your code that may throw an exception
}
catch (Exception ex)
{
    AnalyzedException<Exception> analyzedException = ex.GetAnalyzedException();
    Console.WriteLine(analyzedException.UserMessage);
    Console.WriteLine(analyzedException.DeveloperDetails);
}

The GetAnalyzedException method returns an instance of AnalyzedException<T>, where T is the type of the exception. The returned object contains the following properties:

  • ErrorAnalysis: A detailed analysis of the error, including possible causes and affected components
  • UserMessage: An easy-to-understand message for the user, providing an overview of the occurred error without being too technical
  • DeveloperDetails: A technical description of the error for software developers, including affected classes, methods, and line numbers in the code
  • Solutions: One or more possible solution suggestions to fix the error based on the analysis

⚠️ Limitations

Connection and response times are vital parameters to consider when using the application. Although the primary focus is on improving the software development process, these are essential aspects to keep in mind.

🎉 Conclusion

ExceptionAInalyzer is a step towards the future, making error diagnosis easier for both developers and end-users. By intelligently incorporating AI into the software development process, it's revolutionizing the way we approach bug fixing.

📦 Dependencies

  • Newtonsoft.Json
  • OpenAI_API
  • JetBrains.Annotations

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

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.  net9.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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.