WebReaper.AI.Http 11.1.0

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

WebReaper.AI.Http

An AOT-clean, OpenAI-compatible IChatClient (Microsoft.Extensions.AI) for WebReaper. Raw HttpClient plus System.Text.Json source generation, no provider SDK, so it composes into a Native-AOT binary such as the WebReaper CLI.

Point it at any OpenAI-compatible /chat/completions endpoint and hand it to WebReaper's WithLlmExtractor / WithLlmSchemaInferrer.

using WebReaper.AI.Http;
using WebReaper.Builders;

// OpenAI
var client = new OpenAiCompatibleChatClient(
    baseUrl: "https://api.openai.com/v1",
    model: "gpt-4o-mini",
    apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY"));

// or local Ollama (no key)
// var client = new OpenAiCompatibleChatClient("http://localhost:11434/v1", "llama3.2");

await ScraperEngineBuilder
    .Crawl("https://example.com")
    .AsMarkdown()
    .WithLlmExtractor(client)
    .BuildAsync();

Scope

JSON-mode chat completions, which is all the schema-free --prompt and inferred-schema --infer extraction paths need (ADR-0084). Tool calling (the agent and action-resolver path) throws NotSupportedException rather than silently dropping the tools; use a tool-calling-capable IChatClient for those.

Why it exists

Microsoft.Extensions.AI's own OpenAI client is not AOT-tested. This is the AOT-safe bring-your-own chat client the .NET ecosystem otherwise lacks, shipped under the WebReaper umbrella so the CLI can offer one-command AI extraction without leaving the Native-AOT story.

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 (1)

Showing the top 1 NuGet packages that depend on WebReaper.AI.Http:

Package Downloads
WebReaper.Mcp

MCP (Model Context Protocol) server satellite for WebReaper. Exposes scrape / map / extract as MCP tools over stdio for Cursor / Claude Desktop / Copilot Studio. Interop adapter; the primary agent surface remains the WebReaper CLI (ADR-0043). Satellite (ADR-0009); heavy MCP SDK deps quarantined; core stays AOT-clean.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.3.0 47 6/6/2026
11.2.0 49 6/4/2026
11.1.2 55 6/3/2026
11.1.1 93 5/30/2026
11.1.0 81 5/30/2026