llama_cpp_bindings/error/
marker_detection_error.rs1use std::string::FromUtf8Error;
2
3#[derive(Debug, thiserror::Error)]
4pub enum MarkerDetectionError {
5 #[error("ffi returned non-utf8 marker bytes: {0}")]
6 MarkerUtf8Error(#[from] FromUtf8Error),
7 #[error("not enough memory")]
8 NotEnoughMemory,
9 #[error("reasoning-marker detection failed: {message}")]
10 ReasoningMarkerDetectionFailed { message: String },
11 #[error("tool-call haystack computation failed: {message}")]
12 ToolCallHaystackComputationFailed { message: String },
13 #[error("tool-call synthetic-render diagnosis failed: {message}")]
14 ToolCallSyntheticRenderDiagnosisFailed { message: String },
15}