pub enum SettingsError {
Show 17 variants
ParseError(String),
InvalidModel {
agent: String,
model: String,
error: String,
},
MissingField {
agent: String,
field: String,
},
EmptyAgentName {
index: usize,
},
ReservedAgentName {
name: String,
},
DuplicateAgentName {
name: String,
},
NoInvocationSurface {
agent: String,
},
AgentPromptSource {
agent: String,
source: PromptSourceError,
},
PromptSource(PromptSourceError),
NoPrompts {
agent: String,
},
InvalidMcpConfigPath {
path: String,
},
IoError(String),
AgentNotFound {
name: String,
},
EmptyAgents,
InvalidAgentSelector {
name: String,
},
NonUserInvocableAgentSelector {
name: String,
},
DuplicatePromptName {
name: String,
},
}Expand description
Errors that can occur during settings loading and agent resolution.
Variants§
ParseError(String)
The settings file exists but could not be parsed.
InvalidModel
An agent entry has an invalid model string.
MissingField
An agent entry is missing required fields.
EmptyAgentName
An agent entry has an empty name.
ReservedAgentName
An agent entry uses a reserved name.
DuplicateAgentName
Duplicate agent names.
NoInvocationSurface
An agent has no invocation surface enabled.
AgentPromptSource
A prompt source on a specific agent failed validation.
PromptSource(PromptSourceError)
A prompt source failed validation outside an agent context.
NoPrompts
An agent has no prompts after inheritance.
InvalidMcpConfigPath
An MCP config path does not exist or is invalid.
IoError(String)
I/O error while reading files.
AgentNotFound
An agent was not found in the catalog.
EmptyAgents
The authored config contains no agents.
InvalidAgentSelector
The configured agent selector did not match an agent.
NonUserInvocableAgentSelector
The configured agent selector matched an agent that users cannot invoke.
DuplicatePromptName
Duplicate prompt names in the catalog.
Trait Implementations§
Source§impl Debug for SettingsError
impl Debug for SettingsError
Source§impl Display for SettingsError
impl Display for SettingsError
Source§impl Error for SettingsError
impl Error for SettingsError
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()
Source§impl From<PromptSourceError> for SettingsError
impl From<PromptSourceError> for SettingsError
Source§fn from(source: PromptSourceError) -> Self
fn from(source: PromptSourceError) -> Self
Auto Trait Implementations§
impl Freeze for SettingsError
impl RefUnwindSafe for SettingsError
impl Send for SettingsError
impl Sync for SettingsError
impl Unpin for SettingsError
impl UnsafeUnpin for SettingsError
impl UnwindSafe for SettingsError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
fn into_option(self) -> Option<T>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.