Wickra.Copilot
0.1.0
See the version list below for details.
dotnet add package Wickra.Copilot --version 0.1.0
NuGet\Install-Package Wickra.Copilot -Version 0.1.0
<PackageReference Include="Wickra.Copilot" Version="0.1.0" />
<PackageVersion Include="Wickra.Copilot" Version="0.1.0" />
<PackageReference Include="Wickra.Copilot" />
paket add Wickra.Copilot --version 0.1.0
#r "nuget: Wickra.Copilot, 0.1.0"
#:package Wickra.Copilot@0.1.0
#addin nuget:?package=Wickra.Copilot&version=0.1.0
#tool nuget:?package=Wickra.Copilot&version=0.1.0
Wickra Copilot — .NET (C#)
.NET bindings for the wickra-copilot deterministic market-context core over its
C ABI hub, via LibraryImport P/Invoke. Build a Copilot from a spec JSON,
drive it with command JSON, read back the MarketContext — the same protocol as
every other binding. Only the deterministic core is exposed; the LLM adapter is
never reachable over the C ABI, so the network and API key stay off this surface.
Install
dotnet add package Wickra.Copilot
Usage
using System.Text.Json;
using Wickra.Copilot;
const string spec = "{\"symbols\":[\"BTCUSDT\"],\"lookback\":3,\"facts\":[\"price_move\"]}";
using var copilot = new Copilot(spec);
string build = JsonSerializer.Serialize(new
{
cmd = "build_context",
feeds = new Dictionary<string, object>
{
["BTCUSDT"] = new
{
symbol = "BTCUSDT",
candles = new[]
{
new { ts = 1, open = 100.0, high = 100.0, low = 100.0, close = 100.0, volume = 1.0 },
new { ts = 2, open = 97.0, high = 97.0, low = 97.0, close = 97.0, volume = 1.0 },
new { ts = 3, open = 94.0, high = 94.0, low = 94.0, close = 94.0, volume = 1.0 },
},
},
},
});
Console.WriteLine(copilot.Command(build));
Console.WriteLine(Copilot.Version());
API
| Member | Description |
|---|---|
new Copilot(specJson) |
Build a copilot from a spec JSON (ArgumentException on an invalid spec). |
copilot.Command(cmdJson) |
Apply a command JSON (set_spec, build_context, facts, query, reset, version) and return the response JSON. |
Copilot.Version() |
The library version. |
copilot.Dispose() |
Free the native handle. |
Domain errors (a bad spec, an unknown command) come back in-band as
{"ok":false,"error":...}; only unusable arguments and caught panics are
exceptions.
| Product | Versions 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 was computed. 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 was computed. 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. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.