Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,17 @@ print(result.stdout)

.NET SDK:

```bash
just wasm guest-build # build the guest module
just dotnet build # build the .NET SDK
```shell
dotnet add package Hyperlight.HyperlightSandbox.Api
dotnet add package Hyperlight.HyperlightSandbox.Guest.Python
Comment thread
jsturtevant marked this conversation as resolved.
```

```csharp
using HyperlightSandbox.Api;
using HyperlightSandbox.Guest.Python;

using var sandbox = new SandboxBuilder()
.WithModulePath("python-sandbox.aot")
.WithPythonModule()
.Build();

sandbox.RegisterTool<MathArgs, double>("add", args => args.a + args.b);
Expand Down