![]() |
VOOZH | about |
dotnet add package OpenHub.Agents.Abstractions --version 0.1.9
NuGet\Install-Package OpenHub.Agents.Abstractions -Version 0.1.9
<PackageReference Include="OpenHub.Agents.Abstractions" Version="0.1.9" />
<PackageVersion Include="OpenHub.Agents.Abstractions" Version="0.1.9" />Directory.Packages.props
<PackageReference Include="OpenHub.Agents.Abstractions" />Project file
paket add OpenHub.Agents.Abstractions --version 0.1.9
#r "nuget: OpenHub.Agents.Abstractions, 0.1.9"
#:package OpenHub.Agents.Abstractions@0.1.9
#addin nuget:?package=OpenHub.Agents.Abstractions&version=0.1.9Install as a Cake Addin
#tool nuget:?package=OpenHub.Agents.Abstractions&version=0.1.9Install as a Cake Tool
| | |
OpenHub.Agents is a task-oriented abstraction layer built on top of the Microsoft Agents SDK and the GitHub Copilot SDK. It wraps different AI backends behind a unified ITaskAgent API so callers can create tasks and consume streaming updates in one consistent way.
ITaskAgent abstraction for task creation and streaming subscriptionsnetstandard2.0, netstandard2.1, net8.0, net9.0, and net10.0Directory.Packages.propsdotnet add package OpenHub.Agents.Abstractions
dotnet add package OpenHub.Agents.AIAgent
dotnet add package OpenHub.Agents.GitHubCopilot
Install only the packages you need:
OpenHub.Agents.Abstractions for contracts and modelsOpenHub.Agents.AIAgent when you want to adapt Microsoft.Agents.AI.AIAgentOpenHub.Agents.GitHubCopilot when you want GitHub Copilot integration| Project | Purpose |
|---|---|
src/OpenHub.Agents.Abstractions |
Core task-agent contracts and event models |
src/OpenHub.Agents.AIAgent |
Adapter from Microsoft.Agents.AI.AIAgent to ITaskAgent |
src/OpenHub.Agents.GitHubCopilot |
Adapters for shared-session and per-task GitHub Copilot execution |
samples/OpenHub.Agents.Sample.Console |
Console sample covering OpenAI + GitHub Copilot flows |
tests/OpenHub.Agents.Tests |
xUnit test suite |
| Package | Purpose | Repository |
|---|---|---|
| GitHub.Copilot.SDK | Native .NET SDK used to create, start, and manage GitHub Copilot sessions. | github/copilot-sdk |
| Microsoft.Agents.AI | Main Microsoft Agents SDK package used to represent and run AIAgent pipelines. |
microsoft/agents |
| Microsoft.Agents.AI.Abstractions | Shared abstractions from the Microsoft Agents SDK used by the contract layer. | microsoft/agents |
| Microsoft.Agents.AI.GitHub.Copilot | Microsoft Agents integration package for GitHub Copilot-related capabilities. | microsoft/agents |
| Microsoft.Agents.AI.OpenAI | OpenAI adapter package used by the sample application. | microsoft/agents |
| Microsoft.Bcl.AsyncInterfaces | Compatibility package for async interfaces on older target frameworks. | dotnet/runtime |
| Microsoft.Extensions.AI.Abstractions | Shared AI content abstractions such as ChatMessage, UsageContent, and tool-call content types. |
dotnet/extensions |
| Microsoft.Extensions.DependencyInjection.Abstractions | Dependency injection abstractions used by the AIAgent integration layer. | dotnet/runtime |
| Microsoft.Extensions.Logging.Abstractions | Logging abstractions used by the AIAgent integration layer. | dotnet/runtime |
| System.Reactive | Rx.NET implementation used for observable task and event streams. | dotnet/reactive |
| Package | Purpose | Repository |
|---|---|---|
| coverlet.collector | Code coverage collector for test runs. | coverlet-coverage/coverlet |
| Microsoft.NET.Test.Sdk | Test host and discovery infrastructure for dotnet test. |
microsoft/vstest |
| xunit | Unit testing framework used by the repository. | xunit/xunit |
| xunit.runner.visualstudio | Visual Studio and dotnet test runner integration for xUnit. |
xunit/xunit |
dotnet build OpenHub.Agents.slnx
dotnet test tests\OpenHub.Agents.Tests\OpenHub.Agents.Tests.csproj
AIAgentITaskAgent taskAgent = chatClient
.AsAIAgent(options)
.AsTaskAgent();
CreateTaskResponse response = await taskAgent.CreateTaskAsync(new("Summarize this repo."));
using IDisposable contentSubscription = response.Subscriber.TaskContentChunk.Subscribe(chunk =>
{
Console.Write(chunk.Content);
});
await response.Subscriber.WaitForCompletionAsync();
await using CopilotClient copilotClient = new();
await copilotClient.StartAsync();
SessionConfig sessionConfig = new()
{
Streaming = true,
Model = "claude-sonnet-4.6",
OnPermissionRequest = PermissionHandler.ApproveAll
};
ITaskAgent factoryAgent = copilotClient.AsTaskAgent(sessionConfig);
GitHub Copilot can be used in two ways:
CopilotSession.AsTaskAgent(...): reuse one session and preserve conversation stateCopilotClient.AsTaskAgent(...): create a fresh session per taskCreateTaskResponse response = await taskAgent.CreateTaskAsync(
new("Can you turn that into a checklist?"),
[
new TaskHistoryMessage(ChatRole.User, "Summarize this repo."),
new TaskHistoryMessage(ChatRole.Assistant, "It is a .NET task-agent adapter library.")
]);
For GitHub Copilot adapters, explicit history is serialized into a structured prompt because the current SDK does not expose direct arbitrary-turn injection for a fresh session. The original role strings are preserved in that prompt.
OpenHub.Agents.GitHubCopilot currently depends on preview package Microsoft.Agents.AI.GitHub.Copilot.Directory.Packages.props.Directory.Build.props and .editorconfig.| 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 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 is compatible. 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 | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. 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. |
Showing the top 2 NuGet packages that depend on OpenHub.Agents.Abstractions:
| Package | Downloads |
|---|---|
|
OpenHub.Agents.AIAgent
Adapter that wraps Microsoft.Agents.AI.AIAgent as an OpenHub.Agents ITaskAgent. |
|
|
OpenHub.Agents.GitHubCopilot
GitHub Copilot adapters for OpenHub.Agents with shared-session and per-task session modes. |
This package is not used by any popular GitHub repositories.