VOOZH about

URL: https://www.nuget.org/packages/Azure.AI.AgentServer.AgentFramework/

⇱ NuGet Gallery | Azure.AI.AgentServer.AgentFramework 1.0.0-beta.11




👁 Image
Azure.AI.AgentServer.AgentFramework 1.0.0-beta.11

Prefix Reserved
This is a prerelease version of Azure.AI.AgentServer.AgentFramework.
dotnet add package Azure.AI.AgentServer.AgentFramework --version 1.0.0-beta.11
 
 
NuGet\Install-Package Azure.AI.AgentServer.AgentFramework -Version 1.0.0-beta.11
 
 
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="Azure.AI.AgentServer.AgentFramework" Version="1.0.0-beta.11" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Azure.AI.AgentServer.AgentFramework" Version="1.0.0-beta.11" />
 
Directory.Packages.props
<PackageReference Include="Azure.AI.AgentServer.AgentFramework" />
 
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 Azure.AI.AgentServer.AgentFramework --version 1.0.0-beta.11
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Azure.AI.AgentServer.AgentFramework, 1.0.0-beta.11"
 
 
#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 Azure.AI.AgentServer.AgentFramework@1.0.0-beta.11
 
 
#: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=Azure.AI.AgentServer.AgentFramework&version=1.0.0-beta.11&prerelease
 
Install as a Cake Addin
#tool nuget:?package=Azure.AI.AgentServer.AgentFramework&version=1.0.0-beta.11&prerelease
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Azure AI.AgentServer.AgentFramework client library for .NET

With hosted agents developers can deploy existing agents — whether built with supported agent frameworks or custom code — into Microsoft AI Foundry with minimal effort.

Getting started

Install the package

dotnet add package Azure.AI.AgentServer.AgentFramework --prerelease

Key concepts

Azure AI Agent Server wraps your Agent-framework agent, and host it on the cloud.

You can talk to your agent using Azure.AI.Projects sdk.

Examples

using System.ComponentModel;
using Azure.AI.AgentServer.AgentFramework.Extensions;
using Azure.AI.OpenAI;
using Azure.Identity;
using Microsoft.Agents.AI;
using Microsoft.Extensions.AI;

var endpoint = Environment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT") ??
 throw new InvalidOperationException("AZURE_OPENAI_ENDPOINT is not set.");
var deploymentName = Environment.GetEnvironmentVariable("AZURE_OPENAI_DEPLOYMENT_NAME") ?? "gpt-4o-mini";

[Description("Get the weather for a given location.")]
static string GetWeather([Description("The location to get the weather for.")] string location)
 => $"The weather in {location} is cloudy with a high of 15°C.";

var chatClient = new AzureOpenAIClient(
 new Uri(endpoint),
 new DefaultAzureCredential())
 .GetChatClient(deploymentName)
 .AsIChatClient()
 .AsBuilder()
 .UseOpenTelemetry(sourceName: "Agents")
 .Build();

var agent = new ChatClientAgent(chatClient,
 instructions: "You are a helpful assistant, you can help the user with weather information.",
 tools: [AIFunctionFactory.Create(GetWeather)])
 .AsBuilder()
 .UseOpenTelemetry(sourceName: "Agents")
 .Build();

// Run Agent Server
await agent.RunAIAgentAsync(telemetrySourceName: "Agents");

Troubleshooting

First run your agent with Azure.AI.AgentServer locally.

If it works on local by failed on cloud. Check your logs in the application insight connected to your Azure AI Foundry Project.

Reporting issues

To report an issue with the client library, or request additional features, please open a GitHub issue here. Mention the package name "Azure.AI.AgentServer" in the title or content.

Contributing

See the Azure SDK CONTRIBUTING.md for details on building, testing, and contributing to this library.

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact with any additional questions or comments.

Unit Tests

 # x64 architecture
 dotnet test Azure.AI.AgentServer.AgentFramework/tests/Unit.Tests/Azure.AI.AgentServer.AgentFramework.Unit.Tests.csproj
 # arm64 architecture
 dotnet test Azure.AI.AgentServer.AgentFramework/tests/Unit.Tests/Azure.AI.AgentServer.AgentFramework.Unit.Tests.csproj --settings Azure.AI.AgentServer.AgentFramework/tests/Unit.Tests/test.runsettings
Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  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 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. 
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.

Version Downloads Last Updated
1.0.0-beta.11 23,201 3/13/2026
1.0.0-beta.10 922 3/11/2026
1.0.0-beta.9 12,654 3/4/2026
1.0.0-beta.8 13,695 2/12/2026
1.0.0-beta.7 245 2/11/2026
1.0.0-beta.6 12,818 1/23/2026
1.0.0-beta.5 31,138 12/7/2025
1.0.0-beta.4 16,290 11/11/2025
1.0.0-beta.3 300 11/11/2025
1.0.0-beta.2 284 11/11/2025
1.0.0-beta.1 335 11/9/2025