WebReaper.AI.Http
11.3.0
dotnet add package WebReaper.AI.Http --version 11.3.0
NuGet\Install-Package WebReaper.AI.Http -Version 11.3.0
<PackageReference Include="WebReaper.AI.Http" Version="11.3.0" />
<PackageVersion Include="WebReaper.AI.Http" Version="11.3.0" />
<PackageReference Include="WebReaper.AI.Http" />
paket add WebReaper.AI.Http --version 11.3.0
#r "nuget: WebReaper.AI.Http, 11.3.0"
#:package WebReaper.AI.Http@11.3.0
#addin nuget:?package=WebReaper.AI.Http&version=11.3.0
#tool nuget:?package=WebReaper.AI.Http&version=11.3.0
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 | Versions 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. |
-
net10.0
- Microsoft.Extensions.AI.Abstractions (>= 10.3.0)
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.