![]() |
VOOZH | about |
dotnet add package MeshWeaver.AI.AzureOpenAI --version 2.5.0
NuGet\Install-Package MeshWeaver.AI.AzureOpenAI -Version 2.5.0
<PackageReference Include="MeshWeaver.AI.AzureOpenAI" Version="2.5.0" />
<PackageVersion Include="MeshWeaver.AI.AzureOpenAI" Version="2.5.0" />Directory.Packages.props
<PackageReference Include="MeshWeaver.AI.AzureOpenAI" />Project file
paket add MeshWeaver.AI.AzureOpenAI --version 2.5.0
#r "nuget: MeshWeaver.AI.AzureOpenAI, 2.5.0"
#:package MeshWeaver.AI.AzureOpenAI@2.5.0
#addin nuget:?package=MeshWeaver.AI.AzureOpenAI&version=2.5.0Install as a Cake Addin
#tool nuget:?package=MeshWeaver.AI.AzureOpenAI&version=2.5.0Install as a Cake Tool
MeshWeaver.AI.AzureOpenAI provides Azure OpenAI integration for the MeshWeaver AI framework, enabling AI-powered agent chats using Azure OpenAI's ChatCompletionAgent. This library is designed for stateless chat completion scenarios without persistent assistant storage.
AIConfiguration for secure credential managementChatCompletionAgentChatFactory base classThis package is part of the MeshWeaver solution and should be referenced as a project dependency:
<ProjectReference Include="..\MeshWeaver.AI.AzureOpenAI\MeshWeaver.AI.AzureOpenAI.csproj" />
Add the following configuration to your appsettings.json:
{
"AI": {
"Url": "https://your-azure-openai-endpoint.openai.azure.com/",
"ApiKey": "your-api-key-here",
"Models": ["gpt-4", "gpt-35-turbo"]
}
}
In your Program.cs or service configuration:
using MeshWeaver.AI.AzureOpenAI;
// Configure AI credentials
builder.Services.Configure<AIConfiguration>(
builder.Configuration.GetSection("AI"));
// Add Azure OpenAI services
builder.Services.AddAzureOpenAI();
public class MyService
{
private readonly IAgentChatFactory _chatFactory;
public MyService(IAgentChatFactory chatFactory)
{
_chatFactory = chatFactory;
}
public async Task<IAgentChat> CreateChatAsync()
{
var agentChat = await _chatFactory.CreateAsync();
return agentChat;
}
}
Create custom agents by implementing IAgentDefinition:
public class MyCustomAgent : IAgentDefinition
{
public string Name => "MyAgent";
public string Description => "A custom AI agent for specific tasks";
public string Instructions => "You are a helpful assistant specialized in...";
}
ChatCompletionAgentChatFactory (MeshWeaver.AI)
└── AzureOpenAIChatCompletionAgentChatFactory (MeshWeaver.AI.AzureOpenAI)
AIConfiguration.ApiKey is properly configuredAIConfiguration.Url formatEnable detailed logging to troubleshoot issues:
builder.Services.AddLogging(logging =>
{
logging.AddConsole();
logging.SetMinimumLevel(LogLevel.Debug);
});
This project is part of the MeshWeaver ecosystem. Please follow the established patterns and conventions when contributing.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. 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. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-preview1 | 88 | 4/16/2026 |
| 2.5.0 | 186 | 11/3/2025 |
| 2.4.0 | 174 | 10/2/2025 |
| 2.3.0 | 261 | 8/4/2025 |
| 2.2.0 | 540 | 7/21/2025 |