Enum BuildError
pub enum BuildError {
MissingState {
tool: String,
state: String,
},
DuplicateTool {
name: String,
},
ReservedArgument {
tool: String,
argument: String,
},
Event(DeclarationError),
}Expand description
Why LlmAgentBuilder::try_build refused to build an agent.
A mistake in how the agent is put together, found at startup.
Variants§
MissingState
A tool needs shared state the agent was not given.
Fields
tool: StringThe tool that declared the need (Tool::required_state).
DuplicateTool
Two tools have the same name, and the model could not tell them apart.
ReservedArgument
A tool’s own schema (a compiled tool’s: not one whose Tool::schema_is_foreign, such as an
MCP server’s) has a property called after_previous, which the loop reserves for the
order of the calls of a turn (AFTER_PREVIOUS) whenever more than
one call may run at once. Rename the property, or build the agent with max_parallel(1).
Event(DeclarationError)
A custom event is declared wrongly (ADR 0050, decision 6): a name that is not ns.name, a
name in a core namespace, two declarations of one name that differ, or a plugin subscription
that can never match. A binary exits 78 on it.
Trait Implementations§
§impl Classify for BuildError
impl Classify for BuildError
§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 Clone for BuildError
impl Clone for BuildError
§fn clone(&self) -> BuildError
fn clone(&self) -> BuildError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for BuildError
impl Debug for BuildError
§impl Display for BuildError
impl Display for BuildError
impl Eq for BuildError
§impl Error for BuildError
impl Error for BuildError
§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<DeclarationError> for BuildError
impl From<DeclarationError> for BuildError
§fn from(source: DeclarationError) -> BuildError
fn from(source: DeclarationError) -> BuildError
§impl PartialEq for BuildError
impl PartialEq for BuildError
impl StructuralPartialEq for BuildError
Auto Trait Implementations§
impl Freeze for BuildError
impl RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl UnsafeUnpin for BuildError
impl UnwindSafe for BuildError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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].