Enum AssemblyError
pub enum AssemblyError {
Show 40 variants
Manifest(Error),
DuplicateTool {
tool: String,
},
UnknownTool {
origin: Origin,
tool: String,
suggestion: Option<String>,
available: Vec<String>,
},
UnknownPlugin {
origin: Origin,
plugin: String,
suggestion: Option<String>,
available: Vec<String>,
},
UnknownRetryTool {
origin: Origin,
tool: String,
suggestion: Option<String>,
available: Vec<String>,
},
InvalidRetry {
origin: Origin,
tool: String,
reason: String,
},
NoToolMatches {
origin: Origin,
pattern: String,
available: Vec<String>,
},
Template {
origin: Origin,
line: u32,
problem: TemplateProblem,
},
UnknownVar {
origin: Origin,
line: u32,
var: String,
suggestion: Option<String>,
declared: Vec<String>,
},
UnknownVarValue {
origin: Origin,
var: String,
suggestion: Option<String>,
declared: Vec<String>,
},
UnusedVar {
origin: Origin,
var: String,
},
UnsetVar {
origin: Origin,
var: String,
},
UnknownAgent {
agent: String,
suggestion: Option<String>,
known: Vec<String>,
},
ModelAlias {
origin: Origin,
alias: String,
problem: AliasProblem,
},
InvalidReasoningEffort {
origin: Origin,
source: NotAnEffort,
},
UnknownModelPreset {
origin: Origin,
preset: String,
suggestion: Option<String>,
known: Vec<String>,
},
ReasoningEffort {
origin: Origin,
effort: String,
set_by: EffortSource,
model: String,
suggestion: Option<String>,
allowed: Vec<String>,
},
OutputCap {
origin: Origin,
set_by: CapSource,
cap: u32,
limit: u32,
model: String,
},
Build {
origin: Origin,
source: BuildError,
},
UnknownSkill {
origin: Origin,
field: SkillField,
skill: String,
suggestion: Option<String>,
available: Vec<String>,
},
PreloadNotSelected {
origin: Origin,
skill: String,
selected: Vec<String>,
},
SkillFilesUnavailable {
origin: Origin,
skill: String,
file: String,
},
SkillTooLarge {
origin: Origin,
skill: String,
bytes: u64,
limit: u64,
},
ReservedToolName {
origin: Origin,
tool: String,
},
SubagentToolClash {
origin: Origin,
parent: String,
tool: String,
clash: ToolClash,
},
GroupName {
origin: Origin,
group: String,
reason: &'static str,
},
SearchableGroup {
origin: Origin,
group: String,
},
GroupOverlap {
origin: Origin,
tool: String,
first: String,
second: String,
},
ReservedLoaderName {
origin: Origin,
tool: String,
},
RemoteAuth {
origin: Origin,
var: String,
problem: RemoteAuthProblem,
},
RemoteUrl {
origin: Origin,
url: String,
problem: RemoteUrlProblem,
},
RemoteNotEnabled {
origin: Origin,
},
McpNotConnected {
origin: Origin,
servers: Vec<String>,
},
McpChanged {
origin: Origin,
},
McpForeignTool {
origin: Origin,
tool: String,
servers: Vec<String>,
},
McpToolClash {
origin: Origin,
tool: String,
},
McpUnknownAgent {
agent: String,
suggestion: Option<String>,
known: Vec<String>,
},
Mcp {
origin: Origin,
class: ErrorClass,
source: Box<dyn Error + Send + Sync>,
},
NotOneAgent {
root: PathBuf,
found: Vec<String>,
},
MissingCardDescription {
origin: Origin,
},
}Expand description
Variants§
Manifest(Error)
The manifest could not be read: an embedded manifest that does not decode, or a source that could not be loaded.
DuplicateTool
Two registered tools have one name, so tools: could not tell them apart.
UnknownTool
tools: names a tool nobody registered.
Fields
UnknownPlugin
plugins: names a plugin the deployment did not register (ADR 0050, slice H6): the agent
does not start.
Fields
UnknownRetryTool
retry: names a tool the agent does not have (ADR 0061).
Fields
InvalidRetry
A retry: entry that is not a policy, in a manifest the loader did not check: one built in
code, or embedded by another version (the loader refuses such an entry in a file).
Fields
NoToolMatches
A tools: pattern (linear__*) matches no registered tool.
Fields
Template
A {{ in the prompt that is not a placeholder.
Fields
problem: TemplateProblemWhat is wrong.
UnknownVar
The prompt uses a placeholder the agent does not declare under vars.
Fields
UnknownVarValue
The code supplied a value for a var the agent does not declare.
Fields
UnusedVar
A var is declared and the prompt never uses it.
UnsetVar
A var the prompt uses has no value: it is declared with an empty default (vars: { repo: }) and the code did not supply one.
UnknownAgent
Values were supplied for an agent the definition does not contain.
Fields
ModelAlias
A model alias was refused.
Fields
problem: AliasProblemWhy it was refused.
InvalidReasoningEffort
The agent’s reasoning_effort is not one of the seven levels (ADR 0063).
Fields
source: NotAnEffortWhat is wrong, naming the word and the seven levels.
UnknownModelPreset
The agent’s model_preset names a preset the deployment’s model profiles do not declare
(ADR 0064).
Fields
ReasoningEffort
A reasoning effort the agent resolves to is not one of the levels of its model’s profile
(ADR 0063, decision 4): its own reasoning_effort, a preset its model_preset names, or
the model profile’s (its own value or its base preset’s).
Fields
set_by: EffortSourceWhere it was set.
OutputCap
A preset’s output cap is above the maximum the model documents for one request (ADR 0064, decision 2): a preset is the deployment’s promise, so it is refused rather than clamped.
Fields
set_by: CapSourceWhere it was set.
Build
LlmAgent refused to be built: a tool needs state the
composition root did not give (BoundDef::state).
UnknownSkill
skills: or preload_skills: names a skill the agent does not have. An agent’s skills
are the ones under its own skills/; a subagent inherits none.
Fields
field: SkillFieldThe key that names it.
PreloadNotSelected
preload_skills: names a skill that skills: does not select.
Fields
A selected skill bundles a file whose bytes were not supplied: the manifest was made
without its source. An embedded agent, AgentDef::from_source
and AgentDef::resources_from supply them.
SkillTooLarge
A skill bundles more than SKILL_RESOURCE_LIMIT
bytes: they are held in memory, so the build script refuses it too.
Fields
ReservedToolName
A tool the agent gets from its own definition has a name a registered tool already has: the
skills’ load_skill and read_skill_file, a group’s load__group__<name> loader, or the
reserved load__ prefix.
SubagentToolClash
A subagent is called as a tool named after it, and its parent already has a tool of that name.
Fields
clash: ToolClashWhat it collides with.
GroupName
A group’s name or keywords do not fit, or two groups have one name (ADR 0066).
Fields
SearchableGroup
A searchable group is not built yet (ADR 0066, slice S2).
GroupOverlap
A tool belongs to two groups. A load must append it once, from one group, and the refusal that names the group would be ambiguous.
Fields
ReservedLoaderName
A tool name starts with the loaders’ reserved prefix (load__). The loaders are own tools
named load__group__<name>, and an MCP tool is <server>__<tool>, so the names would
collide.
RemoteAuth
A remote subagent’s auth: bearer:VAR names an environment variable that cannot give a
token. The token is read at AgentDef::bind, and a remote
subagent with no usable credential is refused (fail closed) rather than called without.
Fields
problem: RemoteAuthProblemWhat is wrong with it.
RemoteUrl
A remote subagent’s a2a: URL cannot be used.
Fields
problem: RemoteUrlProblemWhy.
RemoteNotEnabled
A subagent file has a2a:, which makes it a remote subagent, and this build has no A2A
client: adam-assembly was built without its feature remote (on by default). Refused at
AgentDef::bind before any secret is read, so the agent never
starts without a tool its files promise (fail closed).
McpNotConnected
An agent’s mcp.json lists MCP servers and nothing was connected for it: the tools of those
servers would be missing, and an agent must not start without tools its files promise (fail
closed).
Fields
McpChanged
The servers were connected from an mcp.json that is not the one the agent has now.
McpForeignTool
A tool given for an agent with AgentDef::mcp_tools is not
named after one of the servers of the agent’s own mcp.json.
Fields
McpToolClash
An MCP tool has the name of a registered tool, so tools: could not tell them apart.
McpUnknownAgent
AgentDef::mcp_tools names an agent the definition does not
contain.
Fields
Mcp
The MCP servers of an agent could not be connected. Only
AgentDef::connect_mcp (feature mcp) makes it, but the
variant is always there, so that the feature adds no variant to this exhaustive enum and a
match that compiles with the feature compiles without it.
Fields
class: ErrorClassThe class of the client’s error, kept here because source is opaque: a server that is
down is [ErrorClass::Transient], the rest of what the client refuses is
[ErrorClass::Invalid].
NotOneAgent
A folder that was to hold one agent holds none, or several
(AgentFolder::load): a process serves one agent.
Fields
MissingCardDescription
The A2A card needs a description and the agent has none.
Trait Implementations§
§impl Classify for Error
impl Classify for Error
§fn retry_after(&self) -> Option<Duration>
fn retry_after(&self) -> Option<Duration>
§fn is_retryable(&self) -> bool
fn is_retryable(&self) -> bool
class; never hand-written.§impl Error for Error
impl Error for Error
§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()
§impl From<Error> for ReloadError
impl From<Error> for ReloadError
§fn from(source: Error) -> ReloadError
fn from(source: Error) -> ReloadError
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].