mirror of
https://github.com/0xMassi/webclaw.git
synced 2026-05-02 19:42:37 +02:00
chore: rebrand webclaw to noxa
This commit is contained in:
parent
a4c351d5ae
commit
8674b60b4e
86 changed files with 781 additions and 2121 deletions
18
crates/noxa-llm/src/error.rs
Normal file
18
crates/noxa-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