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()