Skip to content

.NET SDK reference

Package identity and language-specific details for DotCraft.Sdk. For how-to, start with the Quickstart.

Package

PackageDotCraft.Sdk (NuGet)
Target frameworknet10.0
SerializationSystem.Text.Json, camelCase web defaults (DotCraftJson.Options)
bash
dotnet add package DotCraft.Sdk

Namespaces

NamespacePublic surface
DotCraft.Sdk.AppServerDotCraftClient, DotCraftThread, DotCraftRunEvent/DotCraftRunResult, options, thread/turn/model wrappers, dynamic tool models, typed errors.
DotCraft.Sdk.AppBindingAppBindingHandoff, DotCraftAppBindingClient, AppBindingErrorCodes.
DotCraft.Sdk.HubHubClient, Hub DTOs, HubClientException.
DotCraft.Sdk.WireIJsonRpcTransport, DotCraftWireClient, stdio/WebSocket transports, JsonRpcException.

Connection

DotCraftClient.ConnectLocalAsync (Hub-managed), ConnectRemoteAsync (known WebSocket), and ConnectAsync (custom IJsonRpcTransport, for tests and embedded hosts). Approval and user-input handlers, and capability flags, are set on DotCraftClientOptions.

Validation

powershell
cd sdk/dotnet
dotnet test .\DotCraft.Sdk.sln
dotnet pack .\src\DotCraft.Sdk\DotCraft.Sdk.csproj -c Release

See also

Apache License 2.0