pub enum StructuredOutputError {
SchemaError(String),
ParseError(String),
ProviderUnsupported(String),
LLMError(String),
StreamIncomplete(String),
}Expand description
Errors that can occur during structured output extraction.
Variants§
SchemaError(String)
The provided JSON schema is invalid or malformed.
ParseError(String)
The LLM response could not be parsed as the target type.
ProviderUnsupported(String)
The provider does not support the requested structured output method.
LLMError(String)
The LLM call itself failed.
StreamIncomplete(String)
The stream ended before a complete JSON object could be parsed.
Trait Implementations§
Source§impl Clone for StructuredOutputError
impl Clone for StructuredOutputError
Source§fn clone(&self) -> StructuredOutputError
fn clone(&self) -> StructuredOutputError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructuredOutputError
impl Debug for StructuredOutputError
Source§impl Display for StructuredOutputError
impl Display for StructuredOutputError
Source§impl Error for StructuredOutputError
impl Error for StructuredOutputError
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<StructuredOutputError> for CoreError
impl From<StructuredOutputError> for CoreError
Source§fn from(source: StructuredOutputError) -> Self
fn from(source: StructuredOutputError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StructuredOutputError
impl RefUnwindSafe for StructuredOutputError
impl Send for StructuredOutputError
impl Sync for StructuredOutputError
impl Unpin for StructuredOutputError
impl UnsafeUnpin for StructuredOutputError
impl UnwindSafe for StructuredOutputError
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