Docs / SDK / Quickstart
SDK quickstart
Run the Scout engine in your own .NET process: create a notebook, ingest a loan package, run a recipe, read the report back. No Scout server to stand up.
- VisionFI.Scout
- embedded in your process
- Stable + Insiders
Before you start
-
A .NET 10 SDK
The package targets net10.0. .NET 9 and older won't resolve it.
-
Outbound HTTPS
To downloads.scoutnotebook.com, from developer machines and from CI. No credentials to store.
-
A Scout HQ token
Not needed to install. Needed to run. Your VisionFI account team issues it.
Commit a nuget.config
Put this file at your repository root, next to the .sln, and commit it. Every developer who clones the repo and every CI runner that builds it then resolves the package the same way.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="visionfi" value="https://downloads.scoutnotebook.com/dist/scout-main/nuget/index.json" />
</packageSources>
<packageSourceMapping>
<packageSource key="nuget.org">
<package pattern="*" />
</packageSource>
<packageSource key="visionfi">
<package pattern="VisionFI.*" />
</packageSource>
</packageSourceMapping>
</configuration>
It binds VisionFI.* to our feed and nothing else. That is the standard dependency-confusion mitigation. VisionFI.Scout is not published on nuget.org.
Add the package
From the project that needs it. NuGet resolves the current release from the feed, so there is no version to look up.
dotnet add package VisionFI.Scout
Run one loan package, start to finish
The whole flow is a handful of await lines. Arguments are plain C#. The SDK handles the marshalling into the native engine.
using VisionFI.Scout;
// Initialize once. Point at where data lives on disk.
await using var scout = await ScoutKit.InitAsync(new ScoutKitConfig
{
ConfigDir = "/data/scout/config", // catalog + settings
NotebooksDir = "/data/scout/notebooks", // the .scoutnb files
});
// Provision from Scout HQ. One call, once per install, and to refresh.
await scout.SyncAsync(hqToken);
// 1. A notebook is the unit of work: one loan file or package.
var meta = await scout.Notebooks.CreateAsync("United LOC");
var notebook = scout.Notebook(meta.Id);
// 2. Ingest: stage every document of the package.
foreach (var path in Directory.GetFiles("/loans/united-loc", "*.pdf"))
await notebook.StagedFiles.StageFileAsync(path);
// 3. Process: read, split and classify.
await notebook.ProcessAsync();
// 4. Run a recipe (a key from Catalog.ListRecipesAsync()).
var run = await notebook.Runs.RunRecipeAsync("loan-terms-summary");
// 5. Read the report back out.
var reports = await notebook.Artifacts.ListByTypeAsync("loan-terms-summary");
string? report = await notebook.Artifacts.Get(reports[^1].Id).ReadTextAsync();
Console.WriteLine(report);
Ingest must finish before the recipe runs. A recipe reads the classified documents, which only exist after processing completes. Awaiting each step makes this natural.
Confirm what you installed
One line, and it belongs in your startup logs permanently. It reports the package version, the channel it came from, and the exact engine commit bundled inside it. Send us that line with any bug report.
Console.WriteLine(VisionFI.Scout.BuildInfo.Describe());
Stable and Insiders
Two feeds, one package ID. Stable is what production builds against. Insiders is a nightly prerelease train for teams who want the engine as it lands.
| Channel | Cadence | How you get it |
|---|---|---|
| Stable | Its own cadence | dotnet add package VisionFI.Scout |
| Insiders | Nightly, 09:00 UTC | dotnet add package VisionFI.Scout --prerelease |
To use Insiders, add the second source and give it the same VisionFI.* mapping. A plain dotnet add package still resolves Stable; --prerelease is the opt-in.
<add key="visionfi-insiders" value="https://downloads.scoutnotebook.com/dist/scout-insiders/nuget/index.json" />
<packageSource key="visionfi-insiders">
<package pattern="VisionFI.*" />
</packageSource>
Pin an exact version in production
For anything you ship, pin. The package version is the version of the native engine inside it, so a floating range silently swaps the engine underneath your application, not just the managed wrapper around it.
<PackageReference Include="VisionFI.Scout" Version="x.y.z" />