pub enum FrameworkError {
Show 13 variants
Config(String),
Provider(String),
ProviderAuth {
provider: String,
message: String,
},
ProviderModel {
provider: String,
model: String,
message: String,
},
EmbeddingDimension {
expected: usize,
got: usize,
},
ToolExecution(String),
Agent(String),
Storage(String),
StorageSchema {
store: String,
message: String,
},
TrainingConfig {
parameter: String,
message: String,
},
PermissionDenied(String),
Serialization(Error),
Other(Error),
}Expand description
Core framework errors
Variants§
Config(String)
Configuration error.
Provider(String)
Provider error.
ProviderAuth
Provider authentication failure.
Fields
ProviderModel
Provider model error.
Fields
EmbeddingDimension
Embedding dimension mismatch between expected and actual vectors.
ToolExecution(String)
Tool execution error.
Agent(String)
Agent error.
Storage(String)
Storage error.
StorageSchema
Storage schema mismatch or migration error.
TrainingConfig
Training configuration error.
PermissionDenied(String)
Permission denied error.
Serialization(Error)
JSON serialization/deserialization error.
Other(Error)
Catch-all for other errors.
Implementations§
Source§impl FrameworkError
impl FrameworkError
Sourcepub fn provider_auth(
provider: impl Into<String>,
message: impl Into<String>,
) -> Self
pub fn provider_auth( provider: impl Into<String>, message: impl Into<String>, ) -> Self
Create a provider authentication error
Sourcepub fn provider_model(
provider: impl Into<String>,
model: impl Into<String>,
message: impl Into<String>,
) -> Self
pub fn provider_model( provider: impl Into<String>, model: impl Into<String>, message: impl Into<String>, ) -> Self
Create a provider model error
Sourcepub fn embedding_dimension(expected: usize, got: usize) -> Self
pub fn embedding_dimension(expected: usize, got: usize) -> Self
Create an embedding dimension mismatch error
Trait Implementations§
Source§impl Debug for FrameworkError
impl Debug for FrameworkError
Source§impl Display for FrameworkError
impl Display for FrameworkError
Source§impl Error for FrameworkError
impl Error for FrameworkError
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<Error> for FrameworkError
impl From<Error> for FrameworkError
Auto Trait Implementations§
impl Freeze for FrameworkError
impl !RefUnwindSafe for FrameworkError
impl Send for FrameworkError
impl Sync for FrameworkError
impl Unpin for FrameworkError
impl UnsafeUnpin for FrameworkError
impl !UnwindSafe for FrameworkError
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