TreeWeaver.Client 4.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package TreeWeaver.Client --version 4.1.2
                    
NuGet\Install-Package TreeWeaver.Client -Version 4.1.2
                    
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="TreeWeaver.Client" Version="4.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TreeWeaver.Client" Version="4.1.2" />
                    
Directory.Packages.props
<PackageReference Include="TreeWeaver.Client" />
                    
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 TreeWeaver.Client --version 4.1.2
                    
#r "nuget: TreeWeaver.Client, 4.1.2"
                    
#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 TreeWeaver.Client@4.1.2
                    
#: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=TreeWeaver.Client&version=4.1.2
                    
Install as a Cake Addin
#tool nuget:?package=TreeWeaver.Client&version=4.1.2
                    
Install as a Cake Tool

TreeWeaver.Client

The typed client for the TreeWeaver HTTP API. TreeWeaver is a server for hierarchical, deterministic retrieval over documents; you run the server and talk to it through this package. It depends only on the wire records (TreeWeaver.Contracts), never on the engine.

services.AddTreeWeaverClient(options =>
{
    options.BaseUrl = "https://treeweaver.internal:8080";
    options.ApiKey  = configuration["TreeWeaver:Client:ApiKey"]!;
});

public sealed class KnowledgeSearch(ITreeWeaverClient treeweaver)
{
    public Task<RetrieveQueryResponse> SearchAsync(string question, CancellationToken ct) =>
        treeweaver.RetrieveAsync(
            new RetrieveQueryRequest(
                Language: "en",
                Question: question,
                Select: new RetrieveSelect(TopK: 5),
                Assemble: new RetrieveAssemble(TokenBudget: 4000, Expand: true)),
            ct);
}
  • The key travels in the X-API-Key header. A key belongs to one tenant and carries roles (Read, Write, Admin); the tenant of a request is the tenant of its key.
  • A service key — a key the operator gave the role Service — names the tenant per call instead, so one backend serving several tenants holds one key. Say once where the tenant comes from with services.AddTreeWeaverActingTenant(scope => …), and every call made in a scope acts for that scope's tenant.
  • ITreeWeaverClient offers retrieval and answering directly and the rest of the surface through its sub-clients (Documents, Tags, Categories, Tenants, …).
  • The client carries no timeout of its own: an ingest or a streamed answer may run for minutes, and the cancellation token every method takes is how you bound it.

The server ships as the container image treeweaverdev/treeweaver; TreeWeaver.Aspire.Hosting adds it to an Aspire AppHost.

Product Compatible and additional computed target framework versions.
.NET 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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.3.0 90 11/8/2026
5.2.0 136 11/5/2026
5.1.0 118 11/5/2026
5.0.0 155 10/30/2026
4.4.0 548 10/21/2026
4.3.1 288 10/14/2026
4.3.0 195 10/12/2026
4.2.0 117 10/11/2026
4.1.2 105 10/11/2026
4.1.1 108 10/10/2026