pub enum LibsyError {
TargetNotFound {
target: String,
},
NoTargets,
AlgorithmError {
message: String,
},
MissingClient {
target: String,
},
Driver(DriverError),
AlgorithmTask {
source: JoinError,
},
MissingFinalResponse,
ClientCall {
target: String,
source: LlmClientError,
},
AllTargetsExcluded,
External {
operation: &'static str,
source: Box<dyn StdError + Send + Sync>,
},
}Expand description
Failures surfaced while selecting a route, driving an algorithm, or serving a model call.
Variants§
TargetNotFound
A named target was not present in the configured target set.
NoTargets
Routing was attempted without any configured targets.
AlgorithmError
An algorithm could not complete for an algorithm-specific reason.
MissingClient
A routed target had no default client for crate::Algorithm::run.
Driver(DriverError)
The type-erased offload driver could not complete an operation.
AlgorithmTask
The spawned algorithm task failed before returning normally.
Fields
source: JoinErrorTokio task failure, including panic and unexpected cancellation details.
MissingFinalResponse
An algorithm’s step stream ended without a terminal response.
ClientCall
A target’s protocol client failed while serving a routed request.
Fields
source: LlmClientErrorTyped error supplied by the protocol-owned client trait.
AllTargetsExcluded
Every target overflowed its context window.
External
A user extension or other foreign operation failed.
Implementations§
Source§impl LibsyError
impl LibsyError
Sourcepub fn client_call(target: impl Into<String>, source: LlmClientError) -> Self
pub fn client_call(target: impl Into<String>, source: LlmClientError) -> Self
Wrap an error returned by the protocol-owned client trait.
Trait Implementations§
Source§impl Debug for LibsyError
impl Debug for LibsyError
Source§impl Display for LibsyError
impl Display for LibsyError
Source§impl Error for LibsyError
impl Error for LibsyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()