pub enum LlmJsonParseError {
RepairFailed(String),
DeserializationFailed {
details: String,
},
RetryExhausted {
attempts: usize,
},
}Expand description
Error types for LLM JSON parsing.
Variants§
RepairFailed(String)
The raw text could not be repaired into valid JSON.
DeserializationFailed
The repaired JSON could not be deserialized into the target type.
RetryExhausted
All retry attempts failed.
Trait Implementations§
Source§impl Debug for LlmJsonParseError
impl Debug for LlmJsonParseError
Source§impl Display for LlmJsonParseError
impl Display for LlmJsonParseError
Source§impl Error for LlmJsonParseError
impl Error for LlmJsonParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<LlmJsonParseError> for CoreError
impl From<LlmJsonParseError> for CoreError
Source§fn from(source: LlmJsonParseError) -> Self
fn from(source: LlmJsonParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LlmJsonParseError
impl RefUnwindSafe for LlmJsonParseError
impl Send for LlmJsonParseError
impl Sync for LlmJsonParseError
impl Unpin for LlmJsonParseError
impl UnsafeUnpin for LlmJsonParseError
impl UnwindSafe for LlmJsonParseError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more