mirror of
https://github.com/0xMassi/webclaw.git
synced 2026-06-30 03:49:37 +02:00
Initial release: webclaw v0.1.0 — web content extraction for LLMs
CLI + MCP server for extracting clean, structured content from any URL. 6 Rust crates, 10 MCP tools, TLS fingerprinting, 5 output formats. MIT Licensed | https://webclaw.io
This commit is contained in:
commit
c99ec684fa
79 changed files with 24074 additions and 0 deletions
18
crates/webclaw-llm/src/error.rs
Normal file
18
crates/webclaw-llm/src/error.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/// LLM-specific errors. Kept flat — one enum covers transport, provider, and parsing failures.
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum LlmError {
|
||||
#[error("HTTP error: {0}")]
|
||||
Http(#[from] reqwest::Error),
|
||||
|
||||
#[error("no providers available")]
|
||||
NoProviders,
|
||||
|
||||
#[error("all providers failed: {0}")]
|
||||
AllProvidersFailed(String),
|
||||
|
||||
#[error("invalid JSON response: {0}")]
|
||||
InvalidJson(String),
|
||||
|
||||
#[error("provider error: {0}")]
|
||||
ProviderError(String),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue