Microsoft.Agents.AI.Hyperlight 1.24.0-preview.261006.1

Prefix Reserved
This is a prerelease version of Microsoft.Agents.AI.Hyperlight.
dotnet add package Microsoft.Agents.AI.Hyperlight --version 1.24.0-preview.261006.1
                    
NuGet\Install-Package Microsoft.Agents.AI.Hyperlight -Version 1.24.0-preview.261006.1
                    
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="Microsoft.Agents.AI.Hyperlight" Version="1.24.0-preview.261006.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Agents.AI.Hyperlight" Version="1.24.0-preview.261006.1" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Agents.AI.Hyperlight" />
                    
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 Microsoft.Agents.AI.Hyperlight --version 1.24.0-preview.261006.1
                    
#r "nuget: Microsoft.Agents.AI.Hyperlight, 1.24.0-preview.261006.1"
                    
#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 Microsoft.Agents.AI.Hyperlight@1.24.0-preview.261006.1
                    
#: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=Microsoft.Agents.AI.Hyperlight&version=1.24.0-preview.261006.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Agents.AI.Hyperlight&version=1.24.0-preview.261006.1&prerelease
                    
Install as a Cake Tool

Microsoft.Agents.AI.Hyperlight

First-class CodeAct support for the Microsoft Agent Framework, backed by the Hyperlight VM-isolated sandbox.

The package exposes two entry points:

  • HyperlightCodeActProvider — an AIContextProvider that injects an execute_code tool and CodeAct guidance into every agent invocation. Only one HyperlightCodeActProvider may be attached to a given agent; it enforces this through a fixed StateKeys value so ChatClientAgent's state-key uniqueness validation rejects duplicate registrations.
  • HyperlightExecuteCodeFunction — a standalone AIFunction for static/manual wiring when the sandbox configuration is fixed for the agent's lifetime.

Both surfaces support:

  • Provider-owned tools exposed inside the sandbox via call_tool(...) (multiple allowed).
  • Opt-in filesystem mounts and outbound network allow-list.
  • CodeActApprovalMode control: NeverRequire (default; approval propagates from tools wrapped in ApprovalRequiredAIFunction) and AlwaysRequire.
  • Snapshot/restore per run so the guest starts from a known clean state every invocation.

Requirements

  • The Hyperlight.HyperlightSandbox.Api NuGet package, published from the src/sdk/dotnet SDK in hyperlight-dev/hyperlight-sandbox (the .NET API was added in PR #46, now merged). Until the package is published to nuget.org the project restore will fail; this project is intentionally IsPackable=false in the meantime.
  • A Hyperlight Python guest module when using SandboxBackend.Wasm.

Network access and guest packages

HyperlightCodeActProviderOptions.AllowedDomains controls outbound requests from the sandbox. It does not install guest packages or expose host-installed dependencies to guest code.

CreateForWasm(modulePath) selects an existing .wasm or .aot guest module; it does not build a guest or install Python packages. The Agent Framework integration does not provide a custom guest build or package installation workflow. Package availability depends on the selected module and backend; the default JavaScript backend does not run Python code.

For operations requiring application dependencies or external APIs, register an AIFunction in Tools and invoke it from the guest with call_tool(...). Keep credentials and authorization in the host function. These functions run outside the guest, so AllowedDomains does not restrict their network requests; enforce any required destination policy in the host function.

Status

Preview. API may change until the underlying Hyperlight SDK reaches a stable release.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Microsoft.Agents.AI.Hyperlight:

Package Downloads
ProCode.Engine.Logic

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Microsoft.Agents.AI.Hyperlight:

Repository Stars
rwjdk/agent-framework-samples
Samples demonstrating the Microsoft Agent Framework in C#
Version Downloads Last Updated
1.24.0-preview.261006.1 160 10/7/2026
1.23.0-preview.260928.1 346 9/29/2026
1.22.0-preview.260918.1 655 9/18/2026
1.21.0-preview.260911.1 342 9/11/2026
1.20.0-preview.260831.1 326 8/31/2026
1.19.0-preview.260822.1 1,259 8/22/2026
1.18.0-preview.260818.1 181 8/18/2026
1.17.0-preview.260804.1 8,329 8/4/2026
1.16.0-preview.260730.1 595 7/30/2026
1.15.0-preview.260722.1 688 7/22/2026
1.14.0-preview.260721.1 160 7/21/2026
1.13.0-preview.260703.1 1,653 7/3/2026
1.12.0-preview.260629.1 150 6/30/2026
1.11.1-preview.260625.1 199 6/25/2026
1.11.0-preview.260623.1 342 6/23/2026
1.10.0-preview.260610.1 580 6/10/2026
1.9.0-preview.260603.1 407 6/3/2026
1.8.0-preview.260528.1 401 5/28/2026
1.7.0-preview.260526.1 211 5/26/2026
1.6.2-preview.260521.1 387 5/22/2026
Loading failed