Luga 0.1.0
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 Luga --version 0.1.0
NuGet\Install-Package Luga -Version 0.1.0
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="Luga" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Luga --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Luga, 0.1.0"
#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 Luga as a Cake Addin #addin nuget:?package=Luga&version=0.1.0 // Install Luga as a Cake Tool #tool nuget:?package=Luga&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
LUGA - Language Understanding Generative Agents
A Generative AI Agent Management framework for .NET.
Installation
NuGet
dotnet add package Luga
Configuration
- Add your OpenAI API key and (optionally) organization ID in
appsettings.json
or use .NET user secrets:
{
"OpenAIServiceOptions": {
"ApiKey": "Your API key goes here",
"Organization": "Your Organization ID goes here (optional)"
}
}
For Azure OpenAI
{
"OpenAIServiceOptions": {
"ApiKey": "Your API key goes here",
"Organization": "Your Organization ID goes here",
"ResourceName": "Your Azure Resource Name goes here",
"DeploymentId": "Your Azure Deployment ID goes here"
}
}
Register AI Agents
Register the AI agents using the ConfigureLugaProviders
extension method:
services.ConfigureLugaProviders(Provider.OpenAi, configuration);
Inject Services
Inject the required services into your classes:
public class MyClass
{
private readonly IIntentClassifierAgent _intentClassifierAgent;
private readonly ITextExtractorAgent _htmlTextExtractorAgent;
public MyClass(IIntentClassifierAgent intentClassifierAgent, IHtmlTextExtractorAgent htmlTextExtractorAgent)
{
_intentClassifierAgent = intentClassifierAgent;
_htmlTextExtractorAgent = htmlTextExtractorAgent;
}
// Your methods here
}
Use AI Agents
Use the AI agents to perform tasks:
var intentResult = await _intentClassifierAgent.Ask("What is the weather like today?");
var extractedText = await _htmlTextExtractorAgent.Ask("<html><body><p>Hello, World!</p></body></html>");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Betalgo.OpenAI.GPT3 (>= 6.8.3)
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.2.0 | 197 | 5/1/2023 |
0.1.0 | 184 | 4/19/2023 |
0.1.0-alpha0006 | 132 | 5/1/2023 |